Skip to content

Commit 053a866

Browse files
committed
fix: hpa created in default namespace (fixes #111)
1 parent ab431e8 commit 053a866

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

templates/hpa.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ apiVersion: autoscaling/v2
55
kind: HorizontalPodAutoscaler
66
metadata:
77
name: {{ template "docker-registry.fullname" . }}
8+
namespace: {{ .Values.namespace | default .Release.Namespace }}
89
labels:
910
app: {{ template "docker-registry.name" . }}
1011
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}

templates/hpaV1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ apiVersion: autoscaling/v1
55
kind: HorizontalPodAutoscaler
66
metadata:
77
name: {{ template "docker-registry.fullname" . }}
8+
namespace: {{ .Values.namespace | default .Release.Namespace }}
89
labels:
910
app: {{ template "docker-registry.name" . }}
1011
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}

0 commit comments

Comments
 (0)