Commit Graph

9 Commits

Author SHA1 Message Date
Carlos Rodríguez Hernández
a5e4bd0e35 Replace VMware by Broadcom copyright text (#25306)
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
2024-04-25 12:44:38 +02:00
Cyril Jouve
73945fedfa [bitnami/common] new macro to checksum config resources (#19261)
* [bitnami/common] new macro to checksum resources

The pattern to rollout workloads on config change, described in
[helm docs](https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments),
has the issue that it will trigger a reload of the pods when the chart version
change, even it the pod template and configmap data are not changed.

This happens because the version of the chart is included in "helm.sh/chart"
in metadata.labels (printf "%s-%s" .Chart.Name .Chart.Version) of the configmap
and the checksum is done on the whole file.

This new macro calculates the checksum by omitting metadata.

It works only if there is a single resource in the file (limitation of
fromYaml)

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>

* [bitnami/common] new macro to checksum resources

The pattern to rollout workloads on config change, described in
[helm docs](https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments),
has the issue that it will trigger a reload of the pods when the chart version
change, even it the pod template and configmap data are not changed.

This happens because the version of the chart is included in "helm.sh/chart"
in metadata.labels (printf "%s-%s" .Chart.Name .Chart.Version) of the configmap
and the checksum is done on the whole file.

This new macro calculates the checksum by omitting metadata.

It works only if there is a single resource in the file (limitation of
fromYaml)

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>

---------

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>
2023-09-22 10:57:11 +02:00
Felipe V.C. Serafim
da68be8e95 Add copyright header (#17300)
* Add copyright header

Signed-off-by: sfelipe <sfelipe@vmware.com>

* Remove copyright from vib runtime_parameters files

Signed-off-by: sfelipe <sfelipe@vmware.com>

* Add copyright header for pinniped-auth.sh

Signed-off-by: sfelipe <sfelipe@vmware.com>

* Update templates copyright header format

Signed-off-by: sfelipe <sfelipe@vmware.com>

---------

Signed-off-by: sfelipe <sfelipe@vmware.com>
2023-06-26 10:28:56 +02:00
Cyril Jouve
35b84e8ba2 [bitnami/common] resolve namespace using common.names.namespace macro (#13481)
Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>
2022-12-12 11:00:35 +01:00
Andrew Horvath
ca8d5886a1 [bitnami/common] use -d flag for base64 (#10491)
* fix #10486

Signed-off-by: Andrew Horvath <ah@ak3.io>

* Update Chart.yaml

Signed-off-by: Carlos Rodriguez Hernandez <carlosrh@vmware.com>

Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
2022-05-30 19:20:18 +02:00
Arthur Busser
d27fb5e0b3 fix(common): quote namespace name (#5363) 2021-02-03 09:27:33 +01:00
Francisco de Paz Galán
240dc1bea8 [bitnami/*] POC Lookup function implementation (#4831)
* [bitnami/*] POC Implement lookup function

Signed-off-by: fdepaz <fdepaz@bitnami.com>

* Improve secure password generation

* Bump minor version

* Apply suggested changes

* Restore password validation

* Fix lint issue

* Add password validation to common

* Fix regexp

* Add subchart support
2021-01-13 16:10:48 +01:00
Juan Ariza Toledano
1eb44366a7 [bitnami/common] Add statefulset capabilities and prepare MariaDB passwords validation for new format (#3859) 2020-10-02 12:36:40 +02:00
Daniel Arteaga
5a5807c1b1 Add common helpers to check secrets when upgrade (#3150) 2020-08-04 16:56:40 +02:00