Skip to content

Conversation

@gkech
Copy link
Contributor

@gkech gkech commented Dec 15, 2025

K8SPSMDB-1359 Powered by Pull Request Badge

CHANGE DESCRIPTION

Problem:

The operator does not respect the configuration of the authentication when we pass it as conf, since it is hardcoding the option on the container arguments.

We need to be able to configure the --auth option through the following configuration.

security:
  authorization: "disabled"

Cause:
Short explanation of the root cause of the issue if applicable.

Solution:

properly handle the provided configuration so that the --auth option is controlled. Also update the unit and e2e tests so that we can ensure that everything is working without problems.

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 Dec 15, 2025
@pull-request-size pull-request-size bot added size/L 100-499 lines and removed size/M 30-99 lines labels Dec 16, 2025
@github-actions github-actions bot added the tests label Dec 16, 2025
@pull-request-size pull-request-size bot added size/XL 500-999 lines and removed size/L 100-499 lines labels Dec 17, 2025
@github-actions github-actions bot added the tests label Dec 17, 2025
kubectl_bin delete psmdb-backup --all

destroy "$namespace"
desc 'test passed' No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
desc 'test passed'
desc 'test passed'

@JNKPercona
Copy link
Collaborator

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

commit: 3fd2715
image: perconalab/percona-server-mongodb-operator:PR-2144-3fd2715e

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

Labels

size/XL 500-999 lines tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants