K8SPSMDB-1444 Don't create keyfile secret when x509 auth is used#2391
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the operator test fixtures/manifests to reflect conditional keyFile mounting based on KeyFileAuthEnabled() (e.g., prefer/require TLS using x509 cluster auth vs. allowTLS/disabled requiring keyFile), and adjusts unit tests for an updated mongosContainer signature.
Changes:
- Update
mongosContainerunit test invocation to include the newmountKeyFileparameter. - Update numerous expected StatefulSet YAML fixtures (unit-test
testdataand e2ecompare/) to remove the keyfile secret volume/volumeMount where keyFile auth is not expected. - Add new e2e PITR physical backup/restore config files.
Reviewed changes
Copilot reviewed 285 out of 287 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/psmdb/mongos_test.go | Updates unit test to match mongosContainer(..., mountKeyFile bool) signature. |
| pkg/controller/perconaservermongodb/testdata/reconcile-statefulset/rs0-nv.yaml | Updates expected StatefulSet testdata (keyfile mount/volume removed). |
| pkg/controller/perconaservermongodb/testdata/reconcile-statefulset/rs0-mongod.yaml | Updates expected StatefulSet testdata (keyfile mount/volume removed). |
| pkg/controller/perconaservermongodb/testdata/reconcile-statefulset/rs0-logrotate.yaml | Updates expected StatefulSet testdata (keyfile mount/volume removed). |
| pkg/controller/perconaservermongodb/testdata/reconcile-statefulset/rs0-hidden.yaml | Updates expected StatefulSet testdata (keyfile mount/volume removed). |
| pkg/controller/perconaservermongodb/testdata/reconcile-statefulset/rs0-arbiter.yaml | Updates expected StatefulSet testdata (keyfile mount/volume removed). |
| pkg/controller/perconaservermongodb/testdata/reconcile-statefulset/cfg-nv.yaml | Updates expected StatefulSet testdata (keyfile mount/volume removed). |
| pkg/controller/perconaservermongodb/testdata/reconcile-statefulset/cfg-mongod.yaml | Updates expected StatefulSet testdata (keyfile mount/volume removed). |
| pkg/controller/perconaservermongodb/testdata/reconcile-statefulset/cfg-hidden.yaml | Updates expected StatefulSet testdata (keyfile mount/volume removed). |
| pkg/controller/perconaservermongodb/testdata/reconcile-statefulset/cfg-arbiter.yaml | Updates expected StatefulSet testdata (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-unreachable-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-unreachable-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-recommended-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-recommended-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-major-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-major-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-latest-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-latest-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-exact-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_version-service-exact-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/version-service/compare/statefulset_minimal-cluster-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/upgrade-consistency/compare/statefulset_some-name-rs0-1230.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/upgrade-consistency/compare/statefulset_some-name-rs0-1230-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/upgrade-consistency-sharded-tls/compare/statefulset_some-name-rs0-1230.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/upgrade-consistency-sharded-tls/compare/statefulset_some-name-rs0-1230-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/upgrade-consistency-sharded-tls/compare/statefulset_some-name-cfg-1230.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/upgrade-consistency-sharded-tls/compare/statefulset_some-name-cfg-1230-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/unsafe-psa/compare/statefulset_unsafe-psa-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/unsafe-psa/compare/statefulset_unsafe-psa-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-rs0-tls-disabled.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-rs0-tls-disabled-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-mongos-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-mongos-tls-disabled.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-mongos-tls-disabled-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-cfg-tls-disabled.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-cfg-tls-disabled-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/storage/compare/statefulset_hostpath-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/storage/compare/statefulset_hostpath-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/storage/compare/statefulset_emptydir-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/storage/compare/statefulset_emptydir-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/smart-update/compare/statefulset_smart-update-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/smart-update/compare/statefulset_smart-update-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/smart-update/compare/statefulset_smart-update-rs0-arbiter.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/smart-update/compare/statefulset_smart-update-rs0-arbiter-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/service-per-pod/compare/statefulset_node-port-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/service-per-pod/compare/statefulset_node-port-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/service-per-pod/compare/statefulset_local-balancer-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/service-per-pod/compare/statefulset_local-balancer-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/service-per-pod/compare/statefulset_cluster-ip-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/service-per-pod/compare/statefulset_cluster-ip-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/security-context/compare/statefulset_sec-context-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/security-context/compare/statefulset_sec-context-rs0-changed.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/scheduled-backup/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/scheduled-backup/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/rs-shard-migration/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/rs-shard-migration/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pvc-resize/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pvc-resize/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pvc-auto-resize/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pvc-auto-resize/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/conf/restore-physical.yaml | Adds sharded PITR physical restore example config. |
| e2e-tests/pitr-sharded/conf/backup-aws-s3-physical.yml | Adds sharded physical backup example config. |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-rs2.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-rs2-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-rs2-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-rs1.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-rs1-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-rs1-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-rs0-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-mongos-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-sharded/compare/statefulset_some-name-cfg-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/conf/restore-physical.yaml | Adds PITR physical restore example config. |
| e2e-tests/pitr-physical/conf/backup-aws-s3.yml | Adds PITR physical backup template config. |
| e2e-tests/pitr-physical/compare/statefulset_some-name-rs2.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-rs2-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-rs2-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-rs1.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-rs1-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-rs1-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-rs0-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical/compare/statefulset_some-name-cfg-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-rs2.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-rs2-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-rs2-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-rs1.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-rs1-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-rs1-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-rs0-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/pitr-physical-backup-source/compare/statefulset_some-name-cfg-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/one-pod/compare/statefulset_one-pod-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/one-pod/compare/statefulset_one-pod-rs0-secret.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/one-pod/compare/statefulset_one-pod-rs0-secret-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/one-pod/compare/statefulset_one-pod-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/non-voting-and-hidden/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/non-voting-and-hidden/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/non-voting-and-hidden/compare/statefulset_some-name-rs0-nv.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/non-voting-and-hidden/compare/statefulset_some-name-rs0-nv-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/non-voting-and-hidden/compare/statefulset_some-name-rs0-hidden.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/non-voting-and-hidden/compare/statefulset_some-name-rs0-hidden-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/non-voting-and-hidden/compare/statefulset_nonvoting-rs0-nv.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-pmm3/compare/statefulset_monitoring-pmm3-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-pmm3/compare/statefulset_monitoring-pmm3-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-pmm3/compare/statefulset_monitoring-pmm3-rs0-no-pmm.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-pmm3/compare/statefulset_monitoring-pmm3-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-pmm3/compare/statefulset_monitoring-pmm3-mongos-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-pmm3/compare/statefulset_monitoring-pmm3-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-pmm3/compare/statefulset_monitoring-pmm3-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-2-0/compare/statefulset_monitoring-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-2-0/compare/statefulset_monitoring-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-2-0/compare/statefulset_monitoring-rs0-no-pmm.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-2-0/compare/statefulset_monitoring-rs0-no-pmm-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-2-0/compare/statefulset_monitoring-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-2-0/compare/statefulset_monitoring-mongos-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-2-0/compare/statefulset_monitoring-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/monitoring-2-0/compare/statefulset_monitoring-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/liveness/compare/statefulset_liveness-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/liveness/compare/statefulset_liveness-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/liveness/compare/statefulset_liveness-rs0-changed.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/liveness/compare/statefulset_liveness-rs0-changed-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-requests-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-requests-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-requests-rs0-increased.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-requests-rs0-increased-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-requests-no-limits-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-requests-no-limits-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-requests-no-limits-rs0-increased.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-requests-no-limits-rs0-increased-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-limits-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-limits-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-limits-rs0-increased.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/limits/compare/statefulset_no-limits-rs0-increased-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/init-deploy/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/init-deploy/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/init-deploy/compare/statefulset_another-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/init-deploy/compare/statefulset_another-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/init-deploy/compare/statefulset_another-name-rs0-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-rs0-sharding-enabled.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-rs0-sharding-enabled-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-rs0-sharding-disabled.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-rs0-sharding-disabled-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-rs0-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-mongos-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-mongos-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/expose-sharded/compare/statefulset_some-name-cfg-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs2.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs2-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs1.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs1-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-rs0-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos-secret.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos-secret-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-mongos-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-sharded/compare/statefulset_some-name-cfg-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-parallel/compare/statefulset_some-name-rs0_restore_sharded.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-parallel/compare/statefulset_some-name-rs0_restore_sharded-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-minio/compare/statefulset_some-name-rs0_restore_sharded.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-minio/compare/statefulset_some-name-rs0_restore_sharded-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-minio-native/compare/statefulset_some-name-rs0_restore_sharded.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-gcp-native/compare/statefulset_some-name-rs0_restore_sharded.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-azure/compare/statefulset_some-name-rs0_restore_sharded.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-azure/compare/statefulset_some-name-rs0_restore_sharded-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-aws/compare/statefulset_some-name-rs0_restore_sharded.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-sharded-aws/compare/statefulset_some-name-rs0_restore_sharded-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-minio/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-minio/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-minio/compare/statefulset_some-name-rs0_restore-arbiter-nv.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-minio-native/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-minio-native/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-minio-native-tls/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-minio-native-tls/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-gcp-s3/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-gcp-s3/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-gcp-native/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-gcp-native/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-azure/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-azure/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-aws/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-physical-aws/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-logical-minio-native-tls/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-logical-minio-native-tls/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-sharded-minio/compare/statefulset_some-name-rs0_restore_sharded.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-sharded-azure/compare/statefulset_some-name-rs0_restore_sharded.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-sharded-aws/compare/statefulset_some-name-rs0_restore_sharded.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-minio/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-minio/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-gcp-s3/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-gcp-s3/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-gcp-native/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-gcp-native/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-azure/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-azure/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-aws/compare/statefulset_some-name-rs0_restore.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-incremental-aws/compare/statefulset_some-name-rs0_restore-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-fs/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-eks-credentials/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/demand-backup-eks-credentials-irsa/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/default-cr/compare/statefulset_my-cluster-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/default-cr/compare/statefulset_my-cluster-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/default-cr/compare/statefulset_my-cluster-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/default-cr/compare/statefulset_my-cluster-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/default-cr/compare/statefulset_minimal-cluster-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/default-cr/compare/statefulset_minimal-cluster-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/default-cr/compare/statefulset_minimal-cluster-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/default-cr/compare/statefulset_minimal-cluster-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/data-at-rest-encryption/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/data-at-rest-encryption/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/data-at-rest-encryption/compare/statefulset_some-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/data-at-rest-encryption/compare/statefulset_some-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-users-roles-sharded/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-users-roles-sharded/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-users-roles-sharded/compare/statefulset_some-name-rs0-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-users-roles-sharded/compare/statefulset_some-name-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-users-roles-sharded/compare/statefulset_some-name-mongos-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-users-roles-sharded/compare/statefulset_some-name-mongos-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-users-roles-sharded/compare/statefulset_some-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-users-roles-sharded/compare/statefulset_some-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-users-roles-sharded/compare/statefulset_some-name-cfg-4-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-tls/compare/statefulset_some-name-rs0.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-tls/compare/statefulset_some-name-rs0-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-tls/compare/statefulset_some-name-mongos.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-tls/compare/statefulset_some-name-mongos-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-tls/compare/statefulset_some-name-cfg.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/custom-tls/compare/statefulset_some-name-cfg-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/arbiter/compare/statefulset_arbiter-rs0-arbiter.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/arbiter/compare/statefulset_arbiter-rs0-arbiter-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/arbiter/compare/statefulset_arbiter-clusterip-rs0-arbiter.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
| e2e-tests/arbiter/compare/statefulset_arbiter-clusterip-rs0-arbiter-oc.yml | Updates expected e2e StatefulSet manifest (keyfile mount/volume removed). |
Comments suppressed due to low confidence (12)
e2e-tests/init-deploy/compare/statefulset_another-name-rs0.yml:302
- This StatefulSet still references
/etc/mongodb-secrets/mongodb-keyin args, but theanother-name-mongodb-keyfilesecret volume was removed from the pod spec. Re-add the keyfile secret volume when using--clusterAuthMode=keyFile.
e2e-tests/init-deploy/compare/statefulset_another-name-rs0-oc.yml:248 - The keyfile secret volume (
another-name-mongodb-keyfile) was removed even though the container still uses--keyFile=/etc/mongodb-secrets/mongodb-key. Re-add the secret volume so the keyfile is present in the filesystem.
e2e-tests/init-deploy/compare/statefulset_another-name-rs0-4-oc.yml:299 - The pod spec removed the
another-name-mongodb-keyfilesecret volume, but the container still references/etc/mongodb-secrets/mongodb-key. Re-add the keyfile secret volume for keyFile auth.
e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0.yml:182 - The pod spec removed the
mydb-custom-mongodb-keyfilesecret volume even though the container still references/etc/mongodb-secrets/mongodb-key. Re-add the keyfile secret volume when keyFile auth is enabled.
e2e-tests/serviceless-external-nodes/compare/statefulset_mydb-rs0-oc.yml:180 - The keyfile secret volume (
mydb-custom-mongodb-keyfile) is missing fromspec.volumeswhile the container still references/etc/mongodb-secrets/mongodb-key. Re-add the secret volume for keyFile auth.
e2e-tests/version-service/compare/statefulset_minimal-cluster-rs0.yml:171 - The keyfile secret volume (
minimal-cluster-mongodb-keyfile) was removed fromspec.volumeseven though the container still references/etc/mongodb-secrets/mongodb-key. Re-add the keyfile secret volume for keyFile auth.
e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-rs0-tls-disabled.yml:167 - The
some-name-mongodb-keyfilesecret volume was removed even though the container still references/etc/mongodb-secrets/mongodb-key. Re-add the keyfile secret volume for keyFile auth.
e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-rs0-tls-disabled-oc.yml:165 - The pod spec is missing the
some-name-mongodb-keyfilesecret volume while the container still references/etc/mongodb-secrets/mongodb-key. Re-add the keyfile secret volume for keyFile auth.
e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-cfg-tls-disabled.yml:166 - The
some-name-mongodb-keyfilesecret volume is missing fromspec.volumeswhile the container still references/etc/mongodb-secrets/mongodb-key. Re-add the keyfile secret volume for keyFile auth.
e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-cfg-tls-disabled-oc.yml:164 - The
some-name-mongodb-keyfilesecret volume was removed even though the container still references/etc/mongodb-secrets/mongodb-key. Re-add the keyfile secret volume for keyFile auth.
e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-mongos-tls-disabled.yml:153 - The pod spec removed the
some-name-mongodb-keyfilesecret volume even though mongos still references/etc/mongodb-secrets/mongodb-key. Re-add the keyfile secret volume when keyFile auth is enabled.
e2e-tests/tls-issue-cert-manager/compare/statefulset_some-name-mongos-tls-disabled-oc.yml:151 - The
some-name-mongodb-keyfilesecret volume was removed even though mongos still references/etc/mongodb-secrets/mongodb-key. Re-add the keyfile secret volume for keyFile auth.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: another-name-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: another-name-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: another-name-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: mydb-custom-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: mydb-custom-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: some-name-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: some-name-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: some-name-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: some-name-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| pitr: | ||
| pitrType: latest | ||
| backupSource: |
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: some-name-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl | ||
| readOnly: true |
| volumes: | ||
| - name: some-name-mongodb-keyfile | ||
| secret: | ||
| defaultMode: 288 | ||
| optional: false | ||
| secretName: some-name-mongodb-keyfile | ||
| - emptyDir: {} | ||
| name: bin |
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: mydb-custom-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl | ||
| readOnly: true |
| volumes: | ||
| - name: mydb-custom-mongodb-keyfile | ||
| secret: | ||
| defaultMode: 288 | ||
| optional: false | ||
| secretName: mydb-custom-mongodb-keyfile | ||
| - emptyDir: {} | ||
| name: bin |
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: another-name-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl | ||
| readOnly: true |
| volumes: | ||
| - name: another-name-mongodb-keyfile | ||
| secret: | ||
| defaultMode: 288 | ||
| optional: false | ||
| secretName: another-name-mongodb-keyfile | ||
| - emptyDir: {} | ||
| name: bin |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 299 out of 299 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
e2e-tests/version-service/compare/statefulset_minimal-cluster-rs0.yml:171
- The keyfile secret volume was removed from
spec.template.spec.volumes, but this manifest still references the keyfile in mongod args. Re-add the secret volume (or update args to stop using keyFile auth) so the pod spec is consistent.
| volumeMounts: | ||
| - mountPath: /data/db | ||
| name: mongod-data | ||
| - mountPath: /etc/mongodb-secrets | ||
| name: minimal-cluster-mongodb-keyfile | ||
| readOnly: true | ||
| - mountPath: /etc/mongodb-ssl | ||
| name: ssl |
| if cr.TLSEnabled() { | ||
| return cr.Spec.TLS == nil || cr.Spec.TLS.Mode == TLSModeAllow | ||
| } |
| func TestKeyFileAuthEnabled(t *testing.T) { | ||
| tests := map[string]struct { | ||
| cr *PerconaServerMongoDB | ||
| expected bool | ||
| }{ | ||
| "crVersion < 1.23 always true regardless of TLS mode": { | ||
| cr: &PerconaServerMongoDB{ | ||
| Spec: PerconaServerMongoDBSpec{ | ||
| CRVersion: "1.22.0", | ||
| TLS: &TLSSpec{Mode: TLSModePrefer}, | ||
| Secrets: &SecretsSpec{}, | ||
| }, | ||
| }, | ||
| expected: true, | ||
| }, | ||
| "preferTLS → false": { | ||
| cr: &PerconaServerMongoDB{ | ||
| Spec: PerconaServerMongoDBSpec{ | ||
| CRVersion: version.Version(), | ||
| TLS: &TLSSpec{Mode: TLSModePrefer}, | ||
| Secrets: &SecretsSpec{}, | ||
| }, | ||
| }, | ||
| expected: false, | ||
| }, | ||
| "requireTLS → false": { | ||
| cr: &PerconaServerMongoDB{ | ||
| Spec: PerconaServerMongoDBSpec{ | ||
| CRVersion: version.Version(), | ||
| TLS: &TLSSpec{Mode: TLSModeRequire}, | ||
| Secrets: &SecretsSpec{}, | ||
| }, | ||
| }, | ||
| expected: false, | ||
| }, | ||
| "allowTLS → true": { | ||
| cr: &PerconaServerMongoDB{ | ||
| Spec: PerconaServerMongoDBSpec{ | ||
| CRVersion: version.Version(), | ||
| TLS: &TLSSpec{Mode: TLSModeAllow}, | ||
| Secrets: &SecretsSpec{}, | ||
| }, | ||
| }, | ||
| expected: true, | ||
| }, | ||
| "TLS disabled + unsafe → true": { | ||
| cr: &PerconaServerMongoDB{ | ||
| Spec: PerconaServerMongoDBSpec{ | ||
| CRVersion: version.Version(), | ||
| TLS: &TLSSpec{Mode: TLSModeDisabled}, | ||
| Unsafe: UnsafeFlags{TLS: true}, | ||
| Secrets: &SecretsSpec{}, | ||
| }, | ||
| }, | ||
| expected: true, | ||
| }, | ||
| "InternalKey explicitly set → true": { | ||
| cr: &PerconaServerMongoDB{ | ||
| Spec: PerconaServerMongoDBSpec{ | ||
| CRVersion: version.Version(), | ||
| TLS: &TLSSpec{Mode: TLSModePrefer}, | ||
| Secrets: &SecretsSpec{InternalKey: "my-custom-keyfile"}, | ||
| }, | ||
| }, | ||
| expected: true, | ||
| }, | ||
| } | ||
|
|
||
| for name, tt := range tests { | ||
| t.Run(name, func(t *testing.T) { | ||
| assert.Equal(t, tt.expected, tt.cr.KeyFileAuthEnabled()) | ||
| }) | ||
| } | ||
| } |
| container, err := mongosContainer(cr, false, []string{"cfg-0.test-cr-cfg.test-ns.svc.cluster.local:27017"}, cr.KeyFileAuthEnabled()) | ||
| assert.NoError(t, err) | ||
|
|
||
| // Basic container fields |
| type StatefulSpecSecretParams struct { | ||
| UsersSecret *corev1.Secret | ||
| SSLSecret *corev1.Secret | ||
| UsersSecret *corev1.Secret | ||
| SSLSecret *corev1.Secret | ||
| KeyfileExists bool | ||
| } |
| if cr.TLSEnabled() { | ||
| return cr.Spec.TLS == nil || cr.Spec.TLS.Mode == TLSModeAllow | ||
| } | ||
| return cr.UnsafeTLSDisabled() |
| func (cr *PerconaServerMongoDB) KeyFileAuthEnabled() bool { | ||
| if cr.CompareVersion("1.23.0") < 0 { | ||
| return true | ||
| } | ||
| if cr.Spec.Secrets.InternalKey != "" { | ||
| return true | ||
| } | ||
| if cr.TLSEnabled() { | ||
| return cr.Spec.TLS == nil || cr.Spec.TLS.Mode == TLSModeAllow | ||
| } | ||
| return cr.UnsafeTLSDisabled() |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 232 out of 232 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
e2e-tests/version-service/compare/statefulset_minimal-cluster-rs0.yml:135
- This StatefulSet still runs mongod with keyFile auth (
--clusterAuthMode=keyFileand--keyFile=/etc/mongodb-secrets/mongodb-key), but the/etc/mongodb-secretsvolumeMount was removed. Without re-adding the mount, mongod will fail to start because the keyfile path won’t exist.
e2e-tests/version-service/compare/statefulset_minimal-cluster-rs0.yml:169 - The keyFile volume definition was removed from the pod spec, but the container still references it via a volumeMount and mongod is configured with
--keyFile=/etc/mongodb-secrets/mongodb-key. Re-add theminimal-cluster-mongodb-keyfilesecret volume so the pod spec is valid.
| // keyFile auth is required when: | ||
| // - spec.secrets.keyFile is explicitly set (operator-managed override) | ||
| // - tls.mode is "allowTLS" – connections may be plain, x509 is unreliable | ||
| // - TLS is disabled (mode: disabled + unsafe.tls: true) | ||
| // | ||
| // For the default "preferTLS" and for "requireTLS", MongoDB uses | ||
| // --clusterAuthMode=x509 and no keyfile is needed. | ||
|
|
||
| func (cr *PerconaServerMongoDB) KeyFileAuthEnabled() bool { | ||
| if cr.CompareVersion("1.23.0") < 0 { | ||
| return true | ||
| } |
commit: cbf9fce |
CHANGE DESCRIPTION
Problem:
When MongoDB is configured with tls.mode: preferTLS or tls.mode: requireTLS, internal cluster authentication is handled via x509 certificates. In this scenario, the keyfile secret is unnecessary — the operator was still unconditionally creating the mongodb-keyfile secret and mounting it into every pod, even when it was never used.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Introduced a KeyFileAuthEnabled() method on PerconaServerMongoDB that determines whether keyfile-based internal cluster authentication is actually needed
CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
compare/*-oc.yml)?Config/Logging/Testability