diff --git a/charts/aws-pca-issuer/Chart.yaml b/charts/aws-pca-issuer/Chart.yaml index fed7da83..5ea58fa0 100644 --- a/charts/aws-pca-issuer/Chart.yaml +++ b/charts/aws-pca-issuer/Chart.yaml @@ -3,4 +3,4 @@ name: aws-privateca-issuer description: An addon for cert-manager to sign certificates using AWS PCA type: application version: v1.2.5 -appVersion: v1.2.5 +appVersion: v1.2.6 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..3d9c75eb 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 }} @@ -132,7 +132,7 @@ roleRef: subjects: - kind: ServiceAccount name: {{ include "aws-privateca-issuer.serviceAccountName" . }} - namespace: {{ .Release.Namespace }} + namespace: {{ default .Release.Namespace .Values.namespace }} --- {{- end }} {{- if .Values.approverRole.enabled -}} 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..f749e0de 100644 --- a/charts/aws-pca-issuer/values.yaml +++ b/charts/aws-pca-issuer/values.yaml @@ -14,6 +14,9 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +# if namespace is not set the .Release.Namespace will be used as default. +namespace: "" + revisionHistoryLimit: 10 serviceAccount: