Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getAPIServerCommand (0.47 sec)

  1. cmd/kubeadm/app/phases/controlplane/manifests.go

    	}
    
    	return nil
    }
    
    // getAPIServerCommand builds the right API server command from the given config object and version
    func getAPIServerCommand(cfg *kubeadmapi.ClusterConfiguration, localAPIEndpoint *kubeadmapi.APIEndpoint) []string {
    	defaultArguments := []kubeadmapi.Arg{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 14:43:47 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/controlplane/manifests_test.go

    				"--etcd-keyfile=" + filepath.Join(testCertsDir, "apiserver-etcd-client.key"),
    			},
    		},
    	}
    
    	for _, rt := range tests {
    		t.Run(rt.name, func(t *testing.T) {
    			actual := getAPIServerCommand(rt.cfg, rt.endpoint)
    			sort.Strings(actual)
    			sort.Strings(rt.expected)
    			if !reflect.DeepEqual(actual, rt.expected) {
    				errorDiffArguments(t, rt.name, actual, rt.expected)
    			}
    		})
    	}
    }
    
    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