Skip to content

Commit

Permalink
Helm Chart - Fix missing namespace attributes on resources (#1013)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
Arkaniad authored Feb 17, 2025
1 parent 9c1aa89 commit 3ec1fa6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/1013.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +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.
2 changes: 1 addition & 1 deletion helm/hookshot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.15
version: 0.1.16
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
1 change: 1 addition & 0 deletions helm/hookshot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "hookshot.fullname" . }}
namespace: {{ template "hookshot.namespace" . }}
labels:
{{- include "hookshot.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions helm/hookshot/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "hookshot.fullname" . }}
namespace: {{ template "hookshot.namespace" . }}
labels:
{{- include "hookshot.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions helm/hookshot/templates/ingress-appservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}-appservice
namespace: {{ template "hookshot.namespace" . }}
labels:
{{- include "hookshot.labels" . | nindent 4 }}
{{- with .Values.ingress.appservice.annotations }}
Expand Down
1 change: 1 addition & 0 deletions helm/hookshot/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ template "hookshot.namespace" . }}
labels:
{{- include "hookshot.labels" . | nindent 4 }}
{{- with .Values.ingress.webhook.annotations }}
Expand Down
1 change: 1 addition & 0 deletions helm/hookshot/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "hookshot.fullname" . }}
namespace: {{ template "hookshot.namespace" . }}
{{- with .Values.service.annotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions helm/hookshot/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "hookshot.serviceAccountName" . }}
namespace: {{ template "hookshot.namespace" . }}
labels:
{{- include "hookshot.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down

0 comments on commit 3ec1fa6

Please sign in to comment.