Skip to content

Commit

Permalink
added default namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Vara <[email protected]>
  • Loading branch information
andres-vara committed Sep 23, 2023
1 parent bfa944c commit 55b0483
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/aws-pca-issuer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-pca-issuer/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-pca-issuer/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-pca-issuer/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-pca-issuer/templates/service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/aws-pca-issuer/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions charts/aws-pca-issuer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ disableApprovedCheck: false
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
namespace: ""

revisionHistoryLimit: 10

Expand Down

0 comments on commit 55b0483

Please sign in to comment.