Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Create chart name and version as used by the chart label.
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create namespace name using the value of the release object or custom override.
*/}}
{{- define "kubernetes-replicator.namespace" -}}
{{- default .Release.Namespace .Values.namespaceOverride -}}
{{- end -}}

{{/*
Common labels
*/}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "kubernetes-replicator.fullname" . }}
namespace: {{ include "kubernetes-replicator.namespace" . }}
labels:
{{- include "kubernetes-replicator.labels" . | nindent 4 }}
{{- if .Values.labels }}
Expand Down
3 changes: 2 additions & 1 deletion deploy/helm-chart/kubernetes-replicator/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "kubernetes-replicator.serviceAccountName" . }}
namespace: {{ include "kubernetes-replicator.namespace" . }}
labels:
{{- include "kubernetes-replicator.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down Expand Up @@ -71,5 +72,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ include "kubernetes-replicator.serviceAccountName" . }}
namespace: {{ .Release.Namespace | quote }}
namespace: {{ include "kubernetes-replicator.namespace" . }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: {{ include "kubernetes-replicator.fullname" . }}
namespace: {{ include "kubernetes-replicator.namespace" . }}
labels:
{{- include "kubernetes-replicator.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/helm-chart/kubernetes-replicator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ image:
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
namespaceOverride: ""
grantClusterAdmin: false
automountServiceAccountToken: true
# args:
Expand Down