@@ -16,9 +16,6 @@ limitations under the License.
1616
1717package secret
1818
19- // Purpose is the name to append to the secret generated for a cluster.
20- type Purpose string
21-
2219const (
2320 // KubeconfigDataName is the key used to store a Kubeconfig in the secret's data field.
2421 KubeconfigDataName = "value"
@@ -28,24 +25,29 @@ const (
2825
2926 // TLSCrtDataName is the key used to store a TLS certificate in the secret's data field.
3027 TLSCrtDataName = "tls.crt"
28+ )
3129
30+ // Purpose is the name to append to the secret generated for a cluster.
31+ type Purpose string
32+
33+ const (
3234 // Kubeconfig is the secret name suffix storing the Cluster Kubeconfig.
3335 Kubeconfig = Purpose ("kubeconfig" )
3436
3537 // ClusterCA is the secret name suffix for APIServer CA.
3638 ClusterCA = Purpose ("ca" )
3739
3840 // EtcdCA is the secret name suffix for the Etcd CA.
39- EtcdCA Purpose = "etcd"
41+ EtcdCA = Purpose ( "etcd" )
4042
4143 // ServiceAccount is the secret name suffix for the Service Account keys.
42- ServiceAccount Purpose = "sa"
44+ ServiceAccount = Purpose ( "sa" )
4345
4446 // FrontProxyCA is the secret name suffix for Front Proxy CA.
45- FrontProxyCA Purpose = "proxy"
47+ FrontProxyCA = Purpose ( "proxy" )
4648
4749 // 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" )
4951)
5052
5153var (
0 commit comments