@@ -16,9 +16,6 @@ limitations under the License.
16
16
17
17
package secret
18
18
19
- // Purpose is the name to append to the secret generated for a cluster.
20
- type Purpose string
21
-
22
19
const (
23
20
// KubeconfigDataName is the key used to store a Kubeconfig in the secret's data field.
24
21
KubeconfigDataName = "value"
@@ -28,24 +25,29 @@ const (
28
25
29
26
// TLSCrtDataName is the key used to store a TLS certificate in the secret's data field.
30
27
TLSCrtDataName = "tls.crt"
28
+ )
31
29
30
+ // Purpose is the name to append to the secret generated for a cluster.
31
+ type Purpose string
32
+
33
+ const (
32
34
// Kubeconfig is the secret name suffix storing the Cluster Kubeconfig.
33
35
Kubeconfig = Purpose ("kubeconfig" )
34
36
35
37
// ClusterCA is the secret name suffix for APIServer CA.
36
38
ClusterCA = Purpose ("ca" )
37
39
38
40
// EtcdCA is the secret name suffix for the Etcd CA.
39
- EtcdCA Purpose = "etcd"
41
+ EtcdCA = Purpose ( "etcd" )
40
42
41
43
// ServiceAccount is the secret name suffix for the Service Account keys.
42
- ServiceAccount Purpose = "sa"
44
+ ServiceAccount = Purpose ( "sa" )
43
45
44
46
// FrontProxyCA is the secret name suffix for Front Proxy CA.
45
- FrontProxyCA Purpose = "proxy"
47
+ FrontProxyCA = Purpose ( "proxy" )
46
48
47
49
// APIServerEtcdClient is the secret name of user-supplied secret containing the apiserver-etcd-client key/cert.
48
- APIServerEtcdClient Purpose = "apiserver-etcd-client"
50
+ APIServerEtcdClient = Purpose ( "apiserver-etcd-client" )
49
51
)
50
52
51
53
var (
0 commit comments