Skip to content

Commit

Permalink
fix: add missing namespace to static Helm templates
Browse files Browse the repository at this point in the history
Signed-off-by: Devon Crouse <devon.crouse@oracle.com>
  • Loading branch information
devoncrouse committed Feb 21, 2023
1 parent 6de3e59 commit c169cfb
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: gatekeeper-update-namespace-label
namespace: {{ .Release.Namespace | quote }}
labels:
app: '{{ template "gatekeeper.name" . }}'
chart: '{{ template "gatekeeper.name" . }}'
Expand Down Expand Up @@ -96,6 +97,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: gatekeeper-update-namespace-label
namespace: {{ .Release.Namespace | quote }}
labels:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: gatekeeper-update-namespace-label-post-upgrade
namespace: {{ .Release.Namespace | quote }}
labels:
app: '{{ template "gatekeeper.name" . }}'
chart: '{{ template "gatekeeper.name" . }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: gatekeeper-delete-webhook-configs
namespace: {{ .Release.Namespace | quote }}
labels:
app: '{{ template "gatekeeper.name" . }}'
chart: '{{ template "gatekeeper.name" . }}'
Expand Down Expand Up @@ -65,6 +66,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: gatekeeper-delete-webhook-configs
namespace: {{ .Release.Namespace | quote }}
labels:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: gatekeeper-update-namespace-label
namespace: {{ .Release.Namespace | quote }}
labels:
app: '{{ template "gatekeeper.name" . }}'
chart: '{{ template "gatekeeper.name" . }}'
Expand Down Expand Up @@ -96,6 +97,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: gatekeeper-update-namespace-label
namespace: {{ .Release.Namespace | quote }}
labels:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: gatekeeper-update-namespace-label-post-upgrade
namespace: {{ .Release.Namespace | quote }}
labels:
app: '{{ template "gatekeeper.name" . }}'
chart: '{{ template "gatekeeper.name" . }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job
metadata:
name: gatekeeper-delete-webhook-configs
namespace: {{ .Release.Namespace | quote }}
labels:
app: '{{ template "gatekeeper.name" . }}'
chart: '{{ template "gatekeeper.name" . }}'
Expand Down Expand Up @@ -65,6 +66,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: gatekeeper-delete-webhook-configs
namespace: {{ .Release.Namespace | quote }}
labels:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down

0 comments on commit c169cfb

Please sign in to comment.