Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetEtcdPodSpec (0.28 sec)

  1. cmd/kubeadm/app/phases/etcd/local.go

    		return err
    	}
    
    	return nil
    }
    
    // GetEtcdPodSpec returns the etcd static Pod actualized to the context of the current configuration
    // NB. GetEtcdPodSpec methods holds the information about how kubeadm creates etcd static pod manifests.
    func GetEtcdPodSpec(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmapi.APIEndpoint, nodeName string, initialCluster []etcdutil.Member) v1.Pod {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 14:07:27 UTC 2024
    - 13.8K bytes
    - Viewed (1)
  2. cmd/kubeadm/app/phases/etcd/local_test.go

    				ExtraEnvs: []kubeadmapi.EnvVar{
    					{
    						EnvVar: v1.EnvVar{Name: "Foo", Value: "Bar"},
    					},
    				},
    			},
    		},
    	}
    	endpoint := &kubeadmapi.APIEndpoint{}
    
    	// Executes GetEtcdPodSpec
    	spec := GetEtcdPodSpec(cfg, endpoint, "", []etcdutil.Member{})
    
    	// Assert each specs refers to the right pod
    	if spec.Spec.Containers[0].Name != kubeadmconstants.Etcd {
    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