Skip to content

Commit 3ec1fa6

Browse files
authored
Helm Chart - Fix missing namespace attributes on resources (#1013)
* Add missing namespace attribute to resources Signed-off-by: Rhea Danzey <[email protected]> * Bump chart version to 0.1.16 Signed-off-by: Rhea Danzey <[email protected]> * Add changelog entry Signed-off-by: Rhea Danzey <[email protected]> --------- Signed-off-by: Rhea Danzey <[email protected]>
1 parent 9c1aa89 commit 3ec1fa6

File tree

8 files changed

+8
-1
lines changed

8 files changed

+8
-1
lines changed

changelog.d/1013.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed Helm chart templates missing `namespace:` in resource metadata, causing some resources to appear in different namespaces under certain circumstances, specifically deployment scenarios using ArgoCD-deployed Helmfile with a release namespace set for Hookshot differently than the ArgoCD Application's namespace. Most other Helm deployment methods should continue to work as expected with your existing configuration, as the inferred namespace would have resulted in proper resource placement without this change.

helm/hookshot/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.1.15
17+
version: 0.1.16
1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
2020
# follow Semantic Versioning. They should reflect the version the application is using.

helm/hookshot/templates/deployment.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: apps/v1
33
kind: Deployment
44
metadata:
55
name: {{ include "hookshot.fullname" . }}
6+
namespace: {{ template "hookshot.namespace" . }}
67
labels:
78
{{- include "hookshot.labels" . | nindent 4 }}
89
spec:

helm/hookshot/templates/hpa.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apiVersion: autoscaling/v2beta1
44
kind: HorizontalPodAutoscaler
55
metadata:
66
name: {{ include "hookshot.fullname" . }}
7+
namespace: {{ template "hookshot.namespace" . }}
78
labels:
89
{{- include "hookshot.labels" . | nindent 4 }}
910
spec:

helm/hookshot/templates/ingress-appservice.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ apiVersion: extensions/v1beta1
1717
kind: Ingress
1818
metadata:
1919
name: {{ $fullName }}-appservice
20+
namespace: {{ template "hookshot.namespace" . }}
2021
labels:
2122
{{- include "hookshot.labels" . | nindent 4 }}
2223
{{- with .Values.ingress.appservice.annotations }}

helm/hookshot/templates/ingress.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ apiVersion: extensions/v1beta1
1717
kind: Ingress
1818
metadata:
1919
name: {{ $fullName }}
20+
namespace: {{ template "hookshot.namespace" . }}
2021
labels:
2122
{{- include "hookshot.labels" . | nindent 4 }}
2223
{{- with .Values.ingress.webhook.annotations }}

helm/hookshot/templates/service.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: v1
33
kind: Service
44
metadata:
55
name: {{ include "hookshot.fullname" . }}
6+
namespace: {{ template "hookshot.namespace" . }}
67
{{- with .Values.service.annotations }}
78
annotations:
89
{{ toYaml . | indent 4 }}

helm/hookshot/templates/serviceaccount.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apiVersion: v1
33
kind: ServiceAccount
44
metadata:
55
name: {{ include "hookshot.serviceAccountName" . }}
6+
namespace: {{ template "hookshot.namespace" . }}
67
labels:
78
{{- include "hookshot.labels" . | nindent 4 }}
89
{{- with .Values.serviceAccount.annotations }}

0 commit comments

Comments
 (0)