diff --git a/charts/aws-pca-issuer/templates/deployment.yaml b/charts/aws-pca-issuer/templates/deployment.yaml index fedd1d62..00ac2201 100644 --- a/charts/aws-pca-issuer/templates/deployment.yaml +++ b/charts/aws-pca-issuer/templates/deployment.yaml @@ -2,7 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "aws-privateca-issuer.fullname" . }} - namespace: {{ .Release.Namespace }} + namespace: {{ default .Release.Namespace .Values.namespace }} labels: {{- include "aws-privateca-issuer.labels" . | nindent 4 }} spec: diff --git a/charts/aws-pca-issuer/templates/hpa.yaml b/charts/aws-pca-issuer/templates/hpa.yaml index 46f54793..2c88409a 100644 --- a/charts/aws-pca-issuer/templates/hpa.yaml +++ b/charts/aws-pca-issuer/templates/hpa.yaml @@ -3,7 +3,7 @@ apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: {{ include "aws-privateca-issuer.fullname" . }} - namespace: {{ .Release.Namespace }} + namespace: {{ default .Release.Namespace .Values.namespace }} labels: {{- include "aws-privateca-issuer.labels" . | nindent 4 }} spec: diff --git a/charts/aws-pca-issuer/templates/pdb.yaml b/charts/aws-pca-issuer/templates/pdb.yaml index 7171452d..f1178b33 100644 --- a/charts/aws-pca-issuer/templates/pdb.yaml +++ b/charts/aws-pca-issuer/templates/pdb.yaml @@ -3,7 +3,7 @@ apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "aws-privateca-issuer.fullname" . }} - namespace: {{ .Release.Namespace }} + namespace: {{ default .Release.Namespace .Values.namespace }} labels: {{- include "aws-privateca-issuer.labels" . | nindent 4 }} spec: diff --git a/charts/aws-pca-issuer/templates/rbac.yaml b/charts/aws-pca-issuer/templates/rbac.yaml index 3e6094c2..8bb82a47 100644 --- a/charts/aws-pca-issuer/templates/rbac.yaml +++ b/charts/aws-pca-issuer/templates/rbac.yaml @@ -3,7 +3,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "aws-privateca-issuer.serviceAccountName" . }} - namespace: {{ .Release.Namespace }} + namespace: {{ default .Release.Namespace .Values.namespace }} labels: {{- include "aws-privateca-issuer.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }} diff --git a/charts/aws-pca-issuer/templates/service-monitor.yaml b/charts/aws-pca-issuer/templates/service-monitor.yaml index 21141326..083fe69b 100644 --- a/charts/aws-pca-issuer/templates/service-monitor.yaml +++ b/charts/aws-pca-issuer/templates/service-monitor.yaml @@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ include "aws-privateca-issuer.fullname" . }} - namespace: {{ .Release.Namespace }} + namespace: {{ default .Release.Namespace .Values.namespace }} labels: {{- include "aws-privateca-issuer.labels" . | nindent 4 }} {{- with .Values.serviceMonitor.annotations }} diff --git a/charts/aws-pca-issuer/templates/service.yaml b/charts/aws-pca-issuer/templates/service.yaml index 2716139d..b02e2a2b 100644 --- a/charts/aws-pca-issuer/templates/service.yaml +++ b/charts/aws-pca-issuer/templates/service.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Service metadata: name: {{ include "aws-privateca-issuer.fullname" . }} - namespace: {{ .Release.Namespace }} + namespace: {{ default .Release.Namespace .Values.namespace }} labels: {{- include "aws-privateca-issuer.labels" . | nindent 4 }} spec: diff --git a/charts/aws-pca-issuer/values.yaml b/charts/aws-pca-issuer/values.yaml index 91e6baa0..49588852 100644 --- a/charts/aws-pca-issuer/values.yaml +++ b/charts/aws-pca-issuer/values.yaml @@ -13,6 +13,7 @@ disableApprovedCheck: false imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +namespace: "" revisionHistoryLimit: 10