Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for KubeConfigFile (0.34 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go

    		} else if !filepath.IsAbs(*c.ConnectionInfo.KubeConfigFile) {
    			allErrs = append(allErrs, field.Invalid(fldPath.Child("connectionInfo", "kubeConfigFile"), *c.ConnectionInfo.KubeConfigFile, "must be an absolute path"))
    		} else if info, err := os.Stat(*c.ConnectionInfo.KubeConfigFile); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/token.go

    			}
    
    			klog.V(1).Infoln("[token] getting Clientsets from kubeconfig file")
    			kubeConfigFile = cmdutil.GetKubeConfigPath(kubeConfigFile)
    			client, err := cmdutil.GetClientSet(kubeConfigFile, dryRun)
    			if err != nil {
    				return err
    			}
    
    			return RunCreateToken(out, client, cfgPath, cfg, printJoinCommand, certificateKey, kubeConfigFile)
    		},
    	}
    
    	options.AddConfigFlag(createCmd.Flags(), &cfgPath)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/controlplane/manifests.go

    	kubeconfigFile := filepath.Join(kubeadmconstants.KubernetesDir, kubeadmconstants.SchedulerKubeConfigFileName)
    	defaultArguments := []kubeadmapi.Arg{
    		{Name: "bind-address", Value: "127.0.0.1"},
    		{Name: "leader-elect", Value: "true"},
    		{Name: "kubeconfig", Value: kubeconfigFile},
    		{Name: "authentication-kubeconfig", Value: kubeconfigFile},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 14:43:47 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    				// assert the spec for the kubeConfigFile exists
    				if spec, ok = specs[assertion.kubeConfigFile]; !ok {
    					t.Errorf("getKubeConfigSpecs didn't create spec for %s ", assertion.kubeConfigFile)
    					return
    				}
    
    				// Assert clientName
    				if spec.ClientName != assertion.clientName {
    					t.Errorf("getKubeConfigSpecs for %s clientName is %s, expected %s", assertion.kubeConfigFile, spec.ClientName, assertion.clientName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/staticpod/utils_linux.go

    	kubeconfigFile := filepath.Join(kubeadmconstants.KubernetesDir, kubeadmconstants.ControllerManagerKubeConfigFileName)
    	if err := updatePathOwnerAndPermissions(kubeconfigFile, *runAsUser, *runAsGroup, 0600); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 14:41:12 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/options/generic.go

    	"k8s.io/kubernetes/cmd/kubeadm/app/features"
    )
    
    // AddKubeConfigFlag adds the --kubeconfig flag to the given flagset
    func AddKubeConfigFlag(fs *pflag.FlagSet, kubeConfigFile *string) {
    	fs.StringVar(kubeConfigFile, KubeconfigPath, *kubeConfigFile, "The kubeconfig file to use when talking to the cluster. If the flag is not set, a set of standard locations can be searched for an existing kubeconfig file.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/apis/apiserver/types.go

    	// Valid values:
    	// - KubeConfigFile: use the file specified in kubeConfigFile to locate the
    	//   server.
    	// - InClusterConfig: use the in-cluster configuration to call the
    	//   SubjectAccessReview API hosted by kube-apiserver. This mode is not
    	//   allowed for kube-apiserver.
    	Type string
    
    	// Path to KubeConfigFile for connection info
    	// Required, if connectionInfo.Type is KubeConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 00:57:24 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/config/cluster.go

    	// get nodes specific information as well
    	if !newControlPlane {
    		// gets the nodeRegistration for the current from the node object
    		kubeconfigFile := filepath.Join(kubeconfigDir, constants.KubeletKubeConfigFileName)
    		if err := GetNodeRegistration(kubeconfigFile, client, &initcfg.NodeRegistration); err != nil {
    			return nil, errors.Wrap(err, "failed to get node registration")
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    								Type: "KubeConfigFile",
    							},
    						},
    					},
    				},
    			},
    			expectedErrList: field.ErrorList{field.Required(field.NewPath("kubeConfigFile"), "")},
    			knownTypes:      sets.NewString(string("Webhook")),
    			repeatableTypes: sets.NewString(string("Webhook")),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  10. pkg/test/framework/components/istio/installer.go

    	return &installer{
    		ctx:       ctx,
    		workDir:   workDir,
    		manifests: make(map[string][]string),
    	}
    }
    
    func (i *installer) Install(c cluster.Cluster, args installArgs) error {
    	kubeConfigFile, err := kubeConfigFileForCluster(c)
    	if err != nil {
    		return err
    	}
    
    	iArgs := &mesh.InstallArgs{
    		InFilenames:   args.Files,
    		Set:           args.Set,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top