* Support overriding mysql init db configmap by parent chart.
Signed-off-by: Yi Siqi <yisq@me.com>
* bump version
Signed-off-by: Yi Siqi <yisq@me.com>
* bump version
Signed-off-by: Yi Siqi <yisq@me.com>
* Prevent introduction of leading newline character in predefined `auth.password` and `auth.replicationPassword`
Introducing change: 7238fbe138
*Issue*
Leading newline character added to predefined `auth.password` and `auth.replicationPassword`.
*Reproduction*
Reproduced by predefined values for `auth.password` and `auth.replicationPassword` and visible in container logs with `image.debug: true`:
`helm install my-release bitnami/mysql --set auth.password=9fXymk61OT,auth.replicationPassword=E6dMqifzrh,auth.username=my_user,image.debug=true`
Log file:
```
mysql 01:31:24.36 DEBUG ==> Configuring root user credentials
mysql 01:31:24.37 DEBUG ==> Executing SQL command:
-- create admin user
create user 'root'@'%' identified by "wf3vWj0zlO";
grant all on *.* to 'root'@'%' with grant option;
flush privileges;
mysql 01:31:24.53 DEBUG ==> removing the unknown user
mysql 01:31:24.54 DEBUG ==> Executing SQL command:
select Host from user where User='';
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql 01:31:24.56 DEBUG ==> creating database user \'my_user\'
mysql 01:31:24.57 DEBUG ==> Executing SQL command:
create user if not exists 'my_user'@'%' identified by "
9fXymk61OT";
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql 01:31:24.65 DEBUG ==> Removing all other hosts for the user
mysql 01:31:24.68 DEBUG ==> Executing SQL command:
select Host from user where User='my_user' and Host!='%';
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql 01:31:24.71 DEBUG ==> Creating database my_user
mysql 01:31:24.72 DEBUG ==> Executing SQL command:
create database if not exists `my_database` ;
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql 01:31:24.86 DEBUG ==> Providing privileges to username my_user on database my_database
mysql 01:31:24.90 DEBUG ==> Executing SQL command:
grant all on `my_database`.* to 'my_user'@'%';
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql 01:31:25.08 INFO ==> Configuring replication in master node
mysql 01:31:25.11 DEBUG ==> Configure replication user credentials
mysql 01:31:25.20 DEBUG ==> Executing SQL command:
create user 'replicator'@'%' identified with 'mysql_native_password' by "
E6dMqifzrh";
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql 01:31:25.43 DEBUG ==> Executing SQL command:
grant REPLICATION SLAVE on *.* to 'replicator'@'%' with grant option;
flush privileges;
```
* [bitnami/mysql] bump chart version
* [bitnami/several] Change pullPolicy for bitnami-shell image
* Add rolling tag check in the NOTES.txt
* Fix non-standard names
* Use macro when defined
* Update Chart.yaml
* Fix typo
* Rebase master
* Fix typo in statefulset
* Include lifecycle in the if statement
* Include metrics container
* Update README
* Rebase master
* Rebase master
* Rebase master
* Add diagnostic mode to etcd
* Add diagnostic mode to fluentd
* Add diagnostic mode to grafana-tempo
* Add diagnostic mode to haproxy
* Rebase master
* Fix values location and README
* Add diagnostic mode to the scaffolding
* Add diagnostic mode to kafka
* Add diagnostic mode to kong
* Fix linter in ejbca
* Add diagnostic mode to logstash
* Add diagnostic mode to mariadb
* Add diagnostic mode to mongodb-sharded
* Fix BITNAMI_DEBUG in galera
* Add diagnostic mode to mysql
* Add diagnostic mode to nats
* Add diagnostic mode to postgresql
* Add diagnostic mode to rabbitmq
* Add diagnostic mode to redis-cluster
* Add diagnostic mode to spark
* Add diagnostic mode to wordpress
* Add diagnostic mode to zookeeper
* Fix/Add BITNAMI_DEBUG in kong, nats, and spark
* Update READMEs
* Unify 'Please be patient...' sentence in NOTES
* Bump galera version
* [bitnami/mysql] add networkpolicy for primary (#6720)
* [bitnami/mysql] genericise networkpolicy (#6720)
so it applies to both primary and secondary
* [bitnami/mysql] bump chart version (#6720)
Remove the service-specific primary and seconday annotations from the
headless Service resources used by the StatefulSets. This retains the
common annotations.
This allows for use of things like external-dns on the primary and
secondary Service resources. Fixes#6576
Signed-off-by: Chris Gianelloni <cgianelloni@applause.com>
* Update NOTES.txt
* Add namespace to helm upgrade command and unify format --namespace vs -n
Co-authored-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
* fix bug chart never use existed secret
If we use values.yaml/values-production.yaml as a config template and enable existingSecret, it will not work because wrong condition in secrets.yaml
* bump version to 6.13.1
* Merge master and update chart version
* [bitnami/mysql] Update components versions
Signed-off-by: Bitnami Containers <containers@bitnami.com>
Co-authored-by: Marcos Bjoerkelund <marcos@bitnami.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
* Fix for initContainer volume-permissions
The initContainer fails if existing volume claim is provided and volume permission is enabled, as volumeMounts name is not found.
* Updated volumeMount name with "data"
To maintain sync in volumeMount Name across the template, changing the specs.volumes[].name and volumeMounts[].name to "data" .
* Added same fix for slave-statefulset.yaml
* Bumped the chart version to 6.9.1
* Updates to mysql chart to have equivalent init script support to mariadb chart
* Updated README with new init script variables
Co-authored-by: Marcos Bjoerkelund <marcosbc@users.noreply.github.com>