In Kubernetes v1.26, the secret data can't be created as plain text
Error from server (BadRequest): error when creating "STDIN": Secret in version "v1" cannot be handled as a Secret: illegal base64 data at input byte <n>
the operator seems to add a '/n' at the end of the connection string, resulting in the following error
Defaulted container "mattermost" out of: mattermost, init-check-database (init)
Error: failed to load configuration: failed to initialize: failed to create Configurations table: parse "postgres://user:super_secret_password@my-database.cluster-abcd.us-east-1.rds.amazonaws.com:5432/mattermost?connect_timeout=10\n": net/url: invalid control character in URL
Summary
In Kubernetes v1.26, the secret data can't be created as plain text
And in base64, as the documentation suggests
the operator seems to add a '/n' at the end of the connection string, resulting in the following error