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
8 changes: 8 additions & 0 deletions helm/charts/surveyor/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ app.kubernetes.io/name: {{ include "surveyor.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Define the namespace where the content of the chart will be deployed.
Defaults to .Release.Namespace; can be overridden via .Values.namespaceOverride.
*/}}
{{- define "surveyor.namespace" -}}
Comment thread
yhrn marked this conversation as resolved.
{{- default .Release.Namespace .Values.namespaceOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create the name of the service account to use
*/}}
Expand Down
1 change: 1 addition & 0 deletions helm/charts/surveyor/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "surveyor.fullname" . }}-accounts
namespace: {{ include "surveyor.namespace" . }}
labels:
{{- include "surveyor.labels" . | nindent 4 }}
data:
Expand Down
1 change: 1 addition & 0 deletions helm/charts/surveyor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "surveyor.fullname" . }}
namespace: {{ include "surveyor.namespace" . }}
labels:
{{- include "surveyor.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions helm/charts/surveyor/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "surveyor.fullname" . }}
namespace: {{ include "surveyor.namespace" . }}
labels:
{{- include "surveyor.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions helm/charts/surveyor/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ include "surveyor.namespace" . }}
labels:
{{- include "surveyor.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
Expand Down
1 change: 1 addition & 0 deletions helm/charts/surveyor/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "surveyor.fullname" . }}
namespace: {{ include "surveyor.namespace" . }}
labels:
{{- include "surveyor.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions helm/charts/surveyor/templates/serviceAccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "surveyor.serviceAccountName" . }}
namespace: {{ include "surveyor.namespace" . }}
labels:
{{- include "surveyor.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down
1 change: 1 addition & 0 deletions helm/charts/surveyor/templates/serviceMonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "surveyor.fullname" . }}
namespace: {{ include "surveyor.namespace" . }}
labels:
{{- include "surveyor.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.labels }}
Expand Down
1 change: 1 addition & 0 deletions helm/charts/surveyor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ image:
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
namespaceOverride: ""

podAnnotations: {}

Expand Down