You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do to encounter the bug?
I changed the connectionStringSecretName for the same user which created a new connectionStringSecret for the same password. The old connectionsStringSecret is not deleted.
Steps to reproduce the behavior:
Apply the following configuration to create a user with connectionStringSecret named con-str-1:
It can be observed below that new-name has been created in addition to con-str-1.
$ kubectl get secrets -n mongodb
NAME TYPE DATA AGE
new-name Opaque 4 3s
my-scram-scram-credentials Opaque 6 9h
my-user-password Opaque 1 9h
con-str-1 Opaque 4 8h
test-cluster-agent-password Opaque 1 8h
test-cluster-config Opaque 1 8h
test-cluster-keyfile Opaque 1 8h
Possible root cause and fix
We need some way of identifying a connectionStringSecret by the user it was created for.
A naive solution would be to include some information about the user in the secret metadata so that the operator can delete the old secret if it already exists for a user before creating a new one.
The text was updated successfully, but these errors were encountered:
What did you do to encounter the bug?
I changed the connectionStringSecretName for the same user which created a new connectionStringSecret for the same password. The old connectionsStringSecret is not deleted.
Steps to reproduce the behavior:
connectionStringSecret
namedcon-str-1
:connectionStringSecret
to anything else:What did you expect?
The operator should delete the old
connectionStringSecret
for the user if a new secret is created.What happened instead?
The operator creates a new secret with a new name but the old secret is not deleted.
Operator Information
0.7.4
4.4.0
Kubernetes Cluster Information
kubectl version --short --output=yaml
Additional context
It can be observed below that new-name has been created in addition to con-str-1.
Possible root cause and fix
We need some way of identifying a
connectionStringSecret
by the user it was created for.A naive solution would be to include some information about the user in the secret metadata so that the operator can delete the old secret if it already exists for a user before creating a new one.
The text was updated successfully, but these errors were encountered: