From 79d486bde6347ce66d52e2e668f4356c484943ba Mon Sep 17 00:00:00 2001 From: obaydullahmhs Date: Thu, 14 Nov 2024 14:36:45 +0600 Subject: [PATCH] Add RotateAuth Ops Request Specific Constants Signed-off-by: obaydullahmhs --- apis/kubedb/constants.go | 3 +++ apis/ops/v1alpha1/constant.go | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apis/kubedb/constants.go b/apis/kubedb/constants.go index 68ffd77733..cac9c28825 100644 --- a/apis/kubedb/constants.go +++ b/apis/kubedb/constants.go @@ -67,6 +67,9 @@ const ( EtcdKey = "etcd" + "." + GroupName ProxySQLKey = "proxysql" + "." + GroupName + // Auth related constants + BasicAuthActiveFromAnnotation = "basic-auth-active-from" + // =========================== Elasticsearch Constants ============================ ElasticsearchRestPort = 9200 ElasticsearchRestPortName = "http" diff --git a/apis/ops/v1alpha1/constant.go b/apis/ops/v1alpha1/constant.go index db24040d8b..e3646eb9ca 100644 --- a/apis/ops/v1alpha1/constant.go +++ b/apis/ops/v1alpha1/constant.go @@ -103,8 +103,13 @@ const ( // RotateAuth const ( - RotateAuth = "RotateAuth" - UpdateCredential = "UpdateCredential" + RotateAuth = "RotateAuth" + UpdateCredential = "UpdateCredential" + BasicAuthPreviousUsernameKey = "username.prev" + BasicAuthPreviousPasswordKey = "password.prev" + BasicAuthNextUsernameKey = "username.next" + BasicAuthNextPasswordKey = "password.next" + SecretAlreadyUpdatedAnnotation = "secret-already-updated" ) // Restart