Skip to content

Commit dcc2408

Browse files
committed
apply review, add labels and annotations to deployment and some docs
Signed-off-by: Cyril Corbon <[email protected]>
1 parent 9208908 commit dcc2408

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

helm/azure-resourcemanager-exporter/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ Return the appropriate apiVersion for ingress.
5050
{{- else -}}
5151
{{- print "extensions/v1beta1" -}}
5252
{{- end -}}
53-
{{- end -}}
53+
{{- end -}}

helm/azure-resourcemanager-exporter/templates/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ template "azure-resourcemanager-exporter.fullname" . }}
5+
{{- with .Values.annotations }}
6+
annotations:
7+
{{- toYaml . | nindent 4 }}
8+
{{- end }}
59
labels:
610
app.kubernetes.io/name: {{ include "azure-resourcemanager-exporter.name" . }}
711
app.kubernetes.io/instance: {{ .Release.Name }}
812
app.kubernetes.io/managed-by: {{ .Release.Service }}
913
helm.sh/chart: {{ include "azure-resourcemanager-exporter.chart" . }}
14+
{{- with .Values.labels }}
15+
{{- toYaml . | nindent 4 }}
16+
{{- end }}
1017
spec:
1118
replicas: {{ .Values.replicas }}
1219
selector:

helm/azure-resourcemanager-exporter/values.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
restartPolicy: Always
22

33
extraEnv: {}
4-
#AZURE_LOCATION: ""
4+
## You can add environments vars to configure the exporter, like the AZURE_LOCATION or the SCRAPE_TIME
5+
## A list of all the environment vars is available in this doc: https://github.com/webdevops/azure-resourcemanager-exporter#configuration
6+
##
7+
# AZURE_LOCATION: ""
58

69
strategy:
710
rollingUpdate:
@@ -20,6 +23,9 @@ image:
2023
# pullSecrets:
2124
# - myRegistrKeySecretName
2225

26+
## Annotations and labels to add to the deployment
27+
annotations: {}
28+
labels: {}
2329

2430
## User to run container as
2531
runAsUser: 1000

0 commit comments

Comments
 (0)