diff --git a/charts/matrix-stack/templates/deployment-markers/job.yaml b/charts/matrix-stack/templates/deployment-markers/job.yaml index 964cedbc..702527c5 100644 --- a/charts/matrix-stack/templates/deployment-markers/job.yaml +++ b/charts/matrix-stack/templates/deployment-markers/job.yaml @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ range $step := list "pre" "post" -}} {{- with $.Values.deploymentMarkers -}} -{{- if and .enabled (include "element-io.deployment-markers.markers" (dict "root" $ "context" (dict "step" $step))) }} +{{- if and .enabled (include "element-io.deployment-markers.markers" (dict "root" $)) }} apiVersion: batch/v1 kind: Job metadata: diff --git a/charts/matrix-stack/templates/deployment-markers/role.yaml b/charts/matrix-stack/templates/deployment-markers/role.yaml index 7c000823..91e5f0e5 100644 --- a/charts/matrix-stack/templates/deployment-markers/role.yaml +++ b/charts/matrix-stack/templates/deployment-markers/role.yaml @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only */ -}} {{ range $step := list "pre" "post" -}} {{- with $.Values.deploymentMarkers -}} -{{- if and .enabled .rbac.create (include "element-io.deployment-markers.markers" (dict "root" $ "context" (dict "step" $step))) }} +{{- if and .enabled .rbac.create (include "element-io.deployment-markers.markers" (dict "root" $)) }} apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: diff --git a/charts/matrix-stack/templates/deployment-markers/rolebinding.yaml b/charts/matrix-stack/templates/deployment-markers/rolebinding.yaml index 58eb5df2..445fae16 100644 --- a/charts/matrix-stack/templates/deployment-markers/rolebinding.yaml +++ b/charts/matrix-stack/templates/deployment-markers/rolebinding.yaml @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ range $step := list "pre" "post" -}} {{- with $.Values.deploymentMarkers -}} -{{- if and .enabled .rbac.create (include "element-io.deployment-markers.markers" (dict "root" $ "context" (dict "step" $step))) }} +{{- if and .enabled .rbac.create (include "element-io.deployment-markers.markers" (dict "root" $)) }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/charts/matrix-stack/templates/deployment-markers/serviceaccount.yaml b/charts/matrix-stack/templates/deployment-markers/serviceaccount.yaml index de481af7..fa4dc5d1 100644 --- a/charts/matrix-stack/templates/deployment-markers/serviceaccount.yaml +++ b/charts/matrix-stack/templates/deployment-markers/serviceaccount.yaml @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ range $step := list "pre" "post" -}} {{- with $.Values.deploymentMarkers -}} {{- if .enabled -}} -{{- if and .enabled (include "element-io.deployment-markers.markers" (dict "root" $ "context" (dict "step" $step))) -}} +{{- if and .enabled (include "element-io.deployment-markers.markers" (dict "root" $)) -}} {{- include "element-io.ess-library.serviceAccount" (dict "root" $ "context" (dict "componentValues" . "nameSuffix" (printf "deployment-markers-%s" $step) "extraAnnotations" (dict "helm.sh/hook" (printf "%s-install,%s-upgrade" $step $step) "helm.sh/hook-weight" "-20"))) }} {{- end }} ---