Comments (5)
That's expected. Since the password from the first deployment is stored in the volume and volumes are not recreated during upgrades, you need to follow those instructions to use the already set password.
from charts.
But the correct working password is already stored in the secret, why do I need to specify it as a plaintext in the values.yaml
again? Why the chart can't just get it from the secret directly?
This problem persists even if I specify the secret for passwords explicitly like:
auth:
existingSecret: "db-credentials"
from charts.
Hi @MurzNN
We already have mechanisms in place to detect there's an existing secret and reuse its data thanks to the use of the common.secrets.passwords.manage
helper, see:
You can reproduce it following these steps:
- Install the chart setting a custom password for
auth.rootPassword
:
helm install mariadb oci://registry-1.docker.io/bitnamicharts/mariadb \
--set auth.rootPassword=some-secret-password \
--version 14.1.4
- Ensure the password has been properly set:
$ kubectl get secret mariadb -o jsonpath='{.data.mariadb-root-password}' | base64 --decode
some-secret-password
- Upgrade the release without providing any password and double-check the secret data didn't change:
$ helm upgrade mariadb oci://registry-1.docker.io/bitnamicharts/mariadb --version 14.1.4
Pulled: registry-1.docker.io/bitnamicharts/mariadb:14.1.4
Digest: sha256:e8997dd398073d025d5ab076b89ca16e3f2eb08ad4c13d5ddd49ad795fc74c32
Release "mariadb" has been upgraded. Happy Helming!
NAME: mariadb
(...)
$ kubectl get secret mariadb -o jsonpath='{.data.mariadb-root-password}' | base64 --decode
some-secret-password
from charts.
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
from charts.
Yeah, all works well, sorry for bothering! The problem was that the secret file was created after the helm upgrade happened, because of this it was not detected and asked to specify the rootPassword.
After fixing the pipeline - all starts working well!
from charts.
Related Issues (20)
- [bitnami/rabbitmq-cluster-operator] RabbitMQ cluster operator roles are overridden by custom rules HOT 5
- [bitnami/logstash] plugin install behind a proxy HOT 6
- [bitnami/kafka] About Kafka Helm Chart Nodeport HOT 3
- [bitnami/grafana-loki] helm install my-grafana-loki bitnami/grafana-loki --version 2.13.0 Error: INSTALLATION FAILED: failed to fetch https://charts.bitnami.com/bitnami/grafana-loki-2.13.0.tgz : 403 Forbidden HOT 1
- [bitnami/rabbitmq] StatefulSet PVC template does not set common labels HOT 3
- [bitnami/minio] Install fails if Prometheus is not installed and ServiceMonitor is enabled HOT 4
- bitnami/nginx helm templating error HOT 1
- [bitnami/airflow] Unable to Access Python Virtual Environment After Git Sync / Airflow HOT 1
- [bitnami/mogodb] svc binding picks up metrics password for defined user HOT 1
- [bitnami/memcached] Autoscaling ends in ContainerCreation/Termination loop for replicas
- [bitnami/postgresql] fails to start with openshift HOT 2
- [bitnami/wordpress] Injecting extra config into wp-config.php HOT 5
- enableS3 value missing from values.yaml & README HOT 1
- [bitnami/nginx] Duplicate .spec.automountServiceAccountToken field in Pod template of NGINX deployment HOT 4
- [bitnami/milvus] panic: parse bool useIAM:strconv.ParseBool: parsing "<nil>": invalid syntax HOT 3
- mkdir: cannot create directory '/bitnami/<chart>/data': Permission denied HOT 4
- Clickhouse not starting when overriding namespace HOT 2
- [bitnami/postgresql-ha] watchdog capabilities
- Why not use `docker.io/bitnamicharts` for OCI chart HOT 2
- [bitnami/joomla] website maintenance mode breaks readiness probe HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.