Skip to content

Commit 29c7ecd

Browse files
authored
Merge pull request #15 from HomeDevopsLab/fix-default-namespace
fix: hardcoded value replaced with dynamic variable
2 parents 200c507 + 89a6228 commit 29c7ecd

6 files changed

Lines changed: 13 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [2.6.1] - 2025-02-15
4+
5+
### Fixed
6+
7+
- Namespace value is dynamically parsed from HelmRelease
8+
39
## [2.6.0] - 2024-10-19
410

511
### Changed

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 2.6.0
18+
version: 2.6.1
1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to
2121
# follow Semantic Versioning. They should reflect the version the application is using.

chart/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ .Release.Name }}
5-
namespace: default
5+
namespace: {{ .Release.Namespace }}
66
spec:
77
{{- if not .Values.autoscaling.enabled }}
88
replicas: {{ .Values.replicaCount }}

chart/templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apiVersion: networking.k8s.io/v1
77
kind: Ingress
88
metadata:
99
name: {{ $ReleaseName }}
10-
namespace: default
10+
namespace: {{ $.Release.Namespace }}
1111
{{- if $.Values.ingress.ssl }}
1212
annotations:
1313
kubernetes.io/ingress.class: traefik

chart/templates/pvc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: v1
44
kind: PersistentVolumeClaim
55
metadata:
66
name: {{ .Release.Name }}-pvc
7-
namespace: default
7+
namespace: {{ .Release.Namespace }}
88
spec:
99
persistentVolumeReclaimPolicy: Recycle
1010
accessModes:
@@ -14,4 +14,4 @@ spec:
1414
requests:
1515
storage: {{ .Values.volumes.type.pvc.size }}
1616
{{- end }}
17-
{{- end }}
17+
{{- end }}

chart/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: "{{ $.Release.Name }}-{{ .name }}"
9-
namespace: default
9+
namespace: {{ $.Release.Namespace }}
1010
spec:
1111
type: {{ .type }}
1212
{{- if .loadBalancerIP }}
@@ -20,4 +20,4 @@ spec:
2020
selector:
2121
app.kubernetes.io/app: {{ $.Release.Name }}
2222
{{- end }}
23-
{{- end }}
23+
{{- end }}

0 commit comments

Comments
 (0)