From 5ca6211409ceee9321e78142adb59a8ab2493308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Harper?= Date: Tue, 16 Jul 2024 16:11:37 -0400 Subject: [PATCH] chore: remove remaining MongoDB secrets --- internal/kubernetes/createSecret.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/internal/kubernetes/createSecret.go b/internal/kubernetes/createSecret.go index 2b61320..e29bd98 100644 --- a/internal/kubernetes/createSecret.go +++ b/internal/kubernetes/createSecret.go @@ -28,20 +28,12 @@ func random(seq int) string { // CreateK8sSecret func CreateK8sSecret(clientset *kubernetes.Clientset, o *CreateK8sSecretCmdOptions) error { - - initialPassword := random(12) k1AccessToken := random(20) secret := &v1.Secret{ ObjectMeta: metav1.ObjectMeta{Name: o.Name, Namespace: o.Namespace}, Data: map[string][]byte{ - "mongodb-passwords": []byte(initialPassword), - "mongodb-root-password": []byte(initialPassword), - "mongodb-metrics-password": []byte(initialPassword), - "mongodb-replica-set-key": []byte(initialPassword), - "MONGO_INITDB_ROOT_PASSWORD": []byte(initialPassword), - "MONGO_INITDB_ROOT_USERNAME": []byte("root"), - "K1_ACCESS_TOKEN": []byte(k1AccessToken), + "K1_ACCESS_TOKEN": []byte(k1AccessToken), }, }