Skip to content

Conversation

@alex1989hu
Copy link

@alex1989hu alex1989hu commented Jun 5, 2025

CHANGE DESCRIPTION

Problem:
#1960

Cause:
This is the current logic of the code.

Solution:
Make sure that secrets specified in the manifest are preserved and not overwritten by the operator.

Closes #1960

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?
  • Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported MongoDB version?
  • Does the change support oldest and newest supported Kubernetes version?

@pull-request-size pull-request-size bot added the size/M 30-99 lines label Jun 5, 2025
@CLAassistant
Copy link

CLAassistant commented Jun 5, 2025

CLA assistant check
All committers have signed the CLA.

@gkech gkech added the community label Jun 5, 2025
@alex1989hu
Copy link
Author

Before fixing unit test and E2E failures I'd like to discuss the approach. Please see the comment here #1960 (comment)

@pull-request-size pull-request-size bot added size/L 100-499 lines and removed size/M 30-99 lines labels Jun 6, 2025
@hors
Copy link
Collaborator

hors commented Jun 21, 2025

Before fixing unit test and E2E failures I'd like to discuss the approach. Please see the comment here #1960 (comment)

Hi @alex1989hu,
Thanks for your contribution! Due to team vacations, we’re currently experiencing some delays in reviewing PRs. We’ll review your suggestion and provide feedback within a week. Appreciate your patience!

@egegunes egegunes assigned gkech and unassigned egegunes Jun 30, 2025
@egegunes
Copy link
Contributor

@gkech could you please check this?

@egegunes
Copy link
Contributor

@gkech please check this when you have the chance

Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
@alex1989hu alex1989hu force-pushed the feat/ensure-secret-existence branch from f6beb26 to 5b0cc66 Compare December 4, 2025 18:29
@JNKPercona
Copy link
Collaborator

Test Name Result Time
arbiter passed 00:12:20
balancer passed 00:20:10
cross-site-sharded passed 00:19:51
custom-replset-name passed 00:10:40
custom-tls passed 00:15:27
custom-users-roles passed 00:11:58
custom-users-roles-sharded passed 00:12:18
data-at-rest-encryption passed 00:13:33
data-sharded passed 00:24:04
demand-backup passed 00:17:32
demand-backup-eks-credentials-irsa passed 00:00:09
demand-backup-fs passed 00:26:52
demand-backup-if-unhealthy passed 00:08:27
demand-backup-incremental passed 00:48:56
demand-backup-incremental-sharded failure 00:14:21
demand-backup-physical-parallel passed 00:08:52
demand-backup-physical-aws passed 00:12:39
demand-backup-physical-azure passed 00:12:48
demand-backup-physical-gcp-s3 passed 00:12:23
demand-backup-physical-gcp-native passed 00:12:38
demand-backup-physical-minio failure 00:05:56
demand-backup-physical-sharded-parallel passed 00:10:58
demand-backup-physical-sharded-aws passed 00:18:31
demand-backup-physical-sharded-azure passed 00:18:23
demand-backup-physical-sharded-gcp-native passed 00:18:15
demand-backup-physical-sharded-minio passed 00:17:46
demand-backup-sharded passed 00:25:49
expose-sharded failure 00:33:17
finalizer passed 00:10:28
ignore-labels-annotations failure 01:30:14
init-deploy failure 00:04:02
ldap passed 00:09:30
ldap-tls passed 00:13:23
limits failure 01:30:09
liveness passed 00:08:57
mongod-major-upgrade passed 00:12:44
mongod-major-upgrade-sharded passed 00:23:55
monitoring-2-0 passed 00:25:44
monitoring-pmm3 passed 00:26:30
multi-cluster-service passed 00:13:17
multi-storage passed 00:19:12
non-voting-and-hidden passed 00:17:23
one-pod failure 00:03:56
operator-self-healing-chaos passed 00:15:12
pitr passed 00:32:38
pitr-physical passed 01:03:45
pitr-sharded passed 00:21:50
pitr-to-new-cluster passed 00:26:27
pitr-physical-backup-source passed 00:54:02
preinit-updates failure 00:53:32
pvc-resize passed 00:14:17
recover-no-primary passed 00:28:59
replset-overrides passed 00:16:20
rs-shard-migration passed 00:14:01
scaling passed 00:11:37
scheduled-backup passed 00:18:15
security-context passed 00:07:19
self-healing-chaos passed 00:16:11
service-per-pod passed 00:19:51
serviceless-external-nodes passed 00:07:54
smart-update passed 00:08:19
split-horizon passed 00:08:29
stable-resource-version failure 00:53:32
storage passed 00:07:53
tls-issue-cert-manager passed 00:30:04
upgrade passed 00:10:25
upgrade-consistency passed 00:06:52
upgrade-consistency-sharded-tls failure 00:53:32
upgrade-sharded passed 00:19:59
upgrade-partial-backup passed 00:16:40
users failure 00:01:56
version-service passed 00:25:38
Summary Value
Tests Run 72/72
Job Duration 04:21:45
Total Test Time 25:00:21

commit: 5b0cc66
image: perconalab/percona-server-mongodb-operator:PR-1961-5b0cc669

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Defined secrets should be treated as existing secrets

6 participants