Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getKubeConfigSpecs (0.47 sec)

  1. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    				// Executes getKubeConfigSpecs
    				specs, err := getKubeConfigSpecs(cfg)
    				if err != nil {
    					t.Fatal("getKubeConfigSpecs failed!")
    				}
    
    				var spec *kubeConfigSpec
    				var ok bool
    
    				// 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)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    			return err
    		}
    	}
    
    	return nil
    }
    
    // getKubeConfigSpecs returns all KubeConfigSpecs actualized to the context of the current InitConfiguration
    // NB. this method holds the information about how kubeadm creates kubeconfig files.
    func getKubeConfigSpecs(cfg *kubeadmapi.InitConfiguration) (map[string]*kubeConfigSpec, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/etcd/local_test.go

    	// Executes GetEtcdPodSpec
    	spec := GetEtcdPodSpec(cfg, endpoint, "", []etcdutil.Member{})
    
    	// Assert each specs refers to the right pod
    	if spec.Spec.Containers[0].Name != kubeadmconstants.Etcd {
    		t.Errorf("getKubeConfigSpecs spec for etcd contains pod %s, expects %s", spec.Spec.Containers[0].Name, kubeadmconstants.Etcd)
    	}
    	env := []v1.EnvVar{{Name: "Foo", Value: "Bar"}}
    	if !reflect.DeepEqual(spec.Spec.Containers[0].Env, env) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 14:07:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/controlplane/manifests_test.go

    			// assert the spec for the staticPodName exists
    			if spec, ok := specs[tc.staticPodName]; ok {
    				// Assert each specs refers to the right pod
    				if spec.Spec.Containers[0].Name != tc.staticPodName {
    					t.Errorf("getKubeConfigSpecs spec for %s contains pod %s, expects %s", tc.staticPodName, spec.Spec.Containers[0].Name, tc.staticPodName)
    				}
    				if tc.env != nil {
    					if !reflect.DeepEqual(spec.Spec.Containers[0].Env, tc.env) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 14:43:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
Back to top