Hello there,
We are trying to deploy PerconaServerMongDB (percona-server-mongodb-4.0) in the GKE environment. We do need to deploy it using a custom mongo internal authentication key. Following this documentation (Application and system users - Percona Operator for MongoDB) seems you can “overwrite” the default random key generated by specifying a pre-existing secret as follows (as we did with users):
spec:
secrets:
users: percona-server-mongodb-users
key: percona-server-mongodb-keyfile
However, when applying this .yaml, we got the following error:
Warning ReconciliationFailed 20s (x4 over 2m42s) kustomize-controller PerconaServerMongoDB/databases-legacy/mongo-4-0-legacy-percona dry-run failed: failed to create typed patch object: .spec.secrets.key: field not declared in schema
In fact, it seems attribute “key” is not defined in the template percona-server-mongodb-operator/deploy/crd.yaml at v1.13.0 · percona/percona-server-mongodb-operator · GitHub
More context:
- Percona Operator version is 1.13, but we are setting it up as an unmanaged cluster.
- May PerconaServerMongDB 4.0 is a little bit old. However, using newer versions, we get the same error.
Is the documentation misleading? Is this feature not yet implemented? Are we not implementing it correctly?