// CertificatesToFiles writes Certificates to files
CertificatesToFiles writes Certificates to files
// CertificatesToFiles writes Certificates to files
func CertificatesToFiles(input Certificates) []v1alpha2.Files {
	return []v1alpha2.Files{
		{
			Path:        "/etc/kubernetes/pki/ca.crt",
			Owner:       rootOwnerValue,
			Permissions: "0640",
			Content:     string(input.ClusterCA.Cert),
		},
		{
			Path:        "/etc/kubernetes/pki/ca.key",
			Owner:       rootOwnerValue,
			Permissions: "0600",
			Content:     string(input.ClusterCA.Key),
		},
		{
			Path:        "/etc/kubernetes/pki/etcd/ca.crt",
			Owner:       rootOwnerValue,
			Permissions: "0640",
			Content:     string(input.EtcdCA.Cert),
		},
		{
			Path:        "/etc/kubernetes/pki/etcd/ca.key",
			Owner:       rootOwnerValue,
			Permissions: "0600",
			Content:     string(input.EtcdCA.Key),
		},
		{
			Path:        "/etc/kubernetes/pki/front-proxy-ca.crt",
			Owner:       rootOwnerValue,
			Permissions: "0640",
			Content:     string(input.FrontProxyCA.Cert),
		},
		{
			Path:        "/etc/kubernetes/pki/front-proxy-ca.key",
			Owner:       rootOwnerValue,
			Permissions: "0600",
			Content:     string(input.FrontProxyCA.Key),
		},
		{
			Path:        "/etc/kubernetes/pki/sa.pub",
			Owner:       rootOwnerValue,
			Permissions: "0640",
			Content:     string(input.ServiceAccount.Cert),
		},
		{
			Path:        "/etc/kubernetes/pki/sa.key",
			Owner:       rootOwnerValue,
			Permissions: "0600",
			Content:     string(input.ServiceAccount.Key),
		},
	}
}
func CertificatesToFiles ( input Certificates ) [ ] v1alpha2 . Files { return [ ] v1alpha2 . Files { { Path : " " , Owner : rootOwnerValue , Permissions : " " , Content : string ( input . ClusterCA . Cert ) , } , { Path : " " , Owner : rootOwnerValue , Permissions : " " , Content : string ( input . ClusterCA . Key ) , } , { Path : " " , Owner : rootOwnerValue , Permissions : " " , Content : string ( input . EtcdCA . Cert ) , } , { Path : " " , Owner : rootOwnerValue , Permissions : " " , Content : string ( input . EtcdCA . Key ) , } , { Path : " " , Owner : rootOwnerValue , Permissions : " " , Content : string ( input . FrontProxyCA . Cert ) , } , { Path : " " , Owner : rootOwnerValue , Permissions : " " , Content : string ( input . FrontProxyCA . Key ) , } , { Path : " " , Owner : rootOwnerValue , Permissions : " " , Content : string ( input . ServiceAccount . Cert ) , } , { Path : " " , Owner : rootOwnerValue , Permissions : " " , Content : string ( input . ServiceAccount . Key ) , } , } }
CertificatesToFiles writes Certificates to files
CertificatesToFiles writes Certificates to files