diff --git a/.vib/ghost/goss/goss.yaml b/.vib/ghost/goss/goss.yaml index 40a497413f..66354b3bda 100644 --- a/.vib/ghost/goss/goss.yaml +++ b/.vib/ghost/goss/goss.yaml @@ -19,7 +19,7 @@ command: # or the one randomly defined by openshift (larger values). Otherwise, the chart is still using the default value. exec: if [ $(id -u) -lt {{ $uid }} ] || [ $(id -G | awk '{print $2}') -lt {{ $gid }} ]; then exit 1; fi exit-status: 0 - {{ if .Vars.serviceAccount.automountServiceAccountToken }} + {{ if .Vars.automountServiceAccountToken }} check-sa: exec: cat /var/run/secrets/kubernetes.io/serviceaccount/token | cut -d '.' -f 2 | xargs -I '{}' echo '{}====' | fold -w 4 | sed '$ d' | tr -d '\n' | base64 -d exit-status: 0 diff --git a/.vib/ghost/runtime-parameters.yaml b/.vib/ghost/runtime-parameters.yaml index 5869139f3e..a4c370f09c 100644 --- a/.vib/ghost/runtime-parameters.yaml +++ b/.vib/ghost/runtime-parameters.yaml @@ -23,4 +23,4 @@ mysql: password: bitnami_test_password serviceAccount: create: true - automountServiceAccountToken: true \ No newline at end of file +automountServiceAccountToken: true \ No newline at end of file diff --git a/bitnami/ghost/Chart.yaml b/bitnami/ghost/Chart.yaml index faa0be6754..81c3927c49 100644 --- a/bitnami/ghost/Chart.yaml +++ b/bitnami/ghost/Chart.yaml @@ -40,4 +40,4 @@ maintainers: name: ghost sources: - https://github.com/bitnami/charts/tree/main/bitnami/ghost -version: 19.7.2 +version: 19.8.0 diff --git a/bitnami/ghost/README.md b/bitnami/ghost/README.md index a0869007c3..cfcbf36be0 100644 --- a/bitnami/ghost/README.md +++ b/bitnami/ghost/README.md @@ -127,6 +127,7 @@ The command removes all the Kubernetes components associated with the chart and | `priorityClassName` | Ghost pod priority class name | `""` | | `schedulerName` | Name of the k8s scheduler (other than default) | `""` | | `topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `[]` | +| `automountServiceAccountToken` | Mount Service Account token in pod | `false` | | `hostAliases` | Ghost pod host aliases | `[]` | | `extraVolumes` | Optionally specify extra list of additional volumes for Ghost pods | `[]` | | `extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for Ghost container(s) | `[]` | diff --git a/bitnami/ghost/templates/deployment.yaml b/bitnami/ghost/templates/deployment.yaml index 1aaa06a8f9..6c54ca6441 100644 --- a/bitnami/ghost/templates/deployment.yaml +++ b/bitnami/ghost/templates/deployment.yaml @@ -33,6 +33,7 @@ spec: {{- end }} spec: {{- include "ghost.imagePullSecrets" . | nindent 6 }} + automountServiceAccountToken: {{ .Values.automountServiceAccountToken }} {{- if .Values.hostAliases }} hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }} {{- end }} diff --git a/bitnami/ghost/values.yaml b/bitnami/ghost/values.yaml index 021575a1bf..97a0877f08 100644 --- a/bitnami/ghost/values.yaml +++ b/bitnami/ghost/values.yaml @@ -199,6 +199,9 @@ schedulerName: "" ## The value is evaluated as a template ## topologySpreadConstraints: [] +## @param automountServiceAccountToken Mount Service Account token in pod +## +automountServiceAccountToken: false ## @param hostAliases Ghost pod host aliases ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ ##