Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement mounting user certificates and keys #125

Merged
merged 13 commits into from
Apr 11, 2024
Prev Previous commit
Next Next commit
fix
Kirill-Garbar committed Apr 9, 2024
commit e00851ea07e90878a72d514bb013b0b68e591497
5 changes: 2 additions & 3 deletions internal/controller/factory/statefulset.go
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@ func CreateOrUpdateStatefulSet(
func generateVolumes(cluster *etcdaenixiov1alpha1.EtcdCluster) []corev1.Volume {
volumes := []corev1.Volume{}

dataVolumeSource := corev1.VolumeSource{}
var dataVolumeSource corev1.VolumeSource

if cluster.Spec.Storage.EmptyDir != nil {
dataVolumeSource = corev1.VolumeSource{EmptyDir: cluster.Spec.Storage.EmptyDir}
@@ -292,10 +292,9 @@ func generateEtcdArgs(cluster *etcdaenixiov1alpha1.EtcdCluster) []string {
"--key-file=/etc/etcd/pki/server/cert/tls.key",
"--client-cert-auth=false",
}
serverProtocol = "https"
}

serverProtocol = "https"

args = append(args, []string{
"--name=$(POD_NAME)",
"--listen-metrics-urls=http://0.0.0.0:2381",