- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 196 for KubeConfig (0.41 sec)
-
cni/pkg/install/kubeconfig.go
"istio.io/istio/pilot/pkg/model" "istio.io/istio/pkg/file" ) type kubeconfig struct { // The full kubeconfig Full string // Kubeconfig with confidential data redacted. Redacted string } func createKubeConfig(cfg *config.InstallConfig) (kubeconfig, error) { if len(cfg.K8sServiceHost) == 0 { return kubeconfig{}, fmt.Errorf("KUBERNETES_SERVICE_HOST not set. Is this not running within a pod?") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 17 21:52:29 UTC 2024 - 4.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/kubeconfig/kubeconfig.go
return config } // ClientSetFromFile returns a ready-to-use client from a kubeconfig file func ClientSetFromFile(path string) (clientset.Interface, error) { config, err := clientcmd.LoadFromFile(path) if err != nil { return nil, errors.Wrap(err, "failed to load admin kubeconfig") } return ToClientSet(config) } // ToClientSet converts a KubeConfig object to a client
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 21 10:21:33 UTC 2024 - 7.2K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/phases/init/kubeconfig.go
) // NewKubeConfigPhase creates a kubeadm workflow phase that creates all kubeconfig files necessary to establish the control plane and the admin kubeconfig file. func NewKubeConfigPhase() workflow.Phase { return workflow.Phase{ Name: "kubeconfig", Short: "Generate all kubeconfig files necessary to establish the control plane and the admin kubeconfig file", Long: cmdutil.MacroCommandLongDescription, Phases: []workflow.Phase{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 26 04:36:03 UTC 2023 - 6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/kubeconfig.go
# Output a kubeconfig file for an additional user named foo kubeadm kubeconfig user --client-name=foo # Output a kubeconfig file for an additional user named foo using a kubeadm config file bar kubeadm kubeconfig user --client-name=foo --config=bar `) ) // newCmdKubeConfigUtility returns main command for kubeconfig phase func newCmdKubeConfigUtility(out io.Writer) *cobra.Command { cmd := &cobra.Command{ Use: "kubeconfig",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 4.6K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
return err } fmt.Printf("[kubeconfig] Writing %q kubeconfig file\n", filename) err = kubeconfigutil.WriteToDisk(kubeConfigFilePath, config) return errors.Wrapf(err, "failed to save kubeconfig file %q on disk", kubeConfigFilePath) } // kubeadm doesn't validate the existing kubeconfig file more than this (kubeadm trusts the client certs to be valid)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:04:18 UTC 2024 - 27K bytes - Viewed (0) -
cni/pkg/install/testdata/kubeconfig-newhost
Ben Leggett <******@****.***> 1691716743 -0400
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Aug 11 01:19:03 UTC 2023 - 1.7K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter.go
// get current context if _, ok := kubeConfig.Contexts[kubeConfig.CurrentContext]; !ok { return nil, errors.Errorf("invalid kubeConfig file %s: missing context %s", rw.kubeConfigFilePath, kubeConfig.CurrentContext) } // get cluster info for current context and ensure a server certificate is embedded in it clusterName := kubeConfig.Contexts[kubeConfig.CurrentContext].Cluster
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 01 03:09:53 UTC 2024 - 8.4K bytes - Viewed (0) -
istioctl/pkg/cli/option.go
} func (r *RootFlags) configureDefaultNamespace() { configAccess := clientcmd.NewDefaultPathOptions() kubeconfig := *r.kubeconfig if kubeconfig != "" { // use specified kubeconfig file for the location of the // config to read configAccess.GlobalFile = kubeconfig } // gets existing kubeconfig or returns new empty config config, err := configAccess.GetStartingConfig() if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 18:01:27 UTC 2024 - 3.1K bytes - Viewed (0) -
cmd/kube-scheduler/app/options/options.go
kubeConfig.AcceptContentTypes = config.AcceptContentTypes kubeConfig.ContentType = config.ContentType kubeConfig.QPS = config.QPS kubeConfig.Burst = int(config.Burst) return kubeConfig, nil } // createClients creates a kube client and an event client from the given kubeConfig func createClients(kubeConfig *restclient.Config) (clientset.Interface, clientset.Interface, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 17 17:06:29 UTC 2024 - 13.3K bytes - Viewed (0) -
cmd/kubeadm/test/kubeconfig/util.go
limitations under the License. */ package kubeconfig import ( "crypto/x509" "encoding/pem" "testing" "time" clientcmdapi "k8s.io/client-go/tools/clientcmd/api" certstestutil "k8s.io/kubernetes/cmd/kubeadm/app/util/certs" ) // AssertKubeConfigCurrentCluster is a utility function for kubeadm testing that asserts if the CurrentCluster in // the given KubeConfig object contains refers to a specific cluster
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 4.9K bytes - Viewed (0)