Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getKubeConfigSpecs (0.23 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)
Back to top