MCPcopy
hub / github.com/kubernetes/client-go / createValidTestConfig

Function createValidTestConfig

tools/clientcmd/client_config_test.go:112–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112func createValidTestConfig() *clientcmdapi.Config {
113 const (
114 server = "https://anything.com:8080"
115 token = "the-token"
116 )
117
118 config := clientcmdapi.NewConfig()
119 config.Clusters["clean"] = &clientcmdapi.Cluster{
120 Server: server,
121 }
122 config.AuthInfos["clean"] = &clientcmdapi.AuthInfo{
123 Token: token,
124 }
125 config.Contexts["clean"] = &clientcmdapi.Context{
126 Cluster: "clean",
127 AuthInfo: "clean",
128 }
129 config.CurrentContext = "clean"
130
131 return config
132}
133
134func createCAValidTestConfig() *clientcmdapi.Config {
135

Callers 10

TestInClusterConfigFunction · 0.85
createCAValidTestConfigFunction · 0.85
TestMergeContextFunction · 0.85
TestModifyContextFunction · 0.85
TestCreateCleanFunction · 0.85
TestCreateCleanDefaultFunction · 0.85
TestCreateMissingContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected