Skip to content

Commit

Permalink
apply review, add labels and annotations to deployment and some docs
Browse files Browse the repository at this point in the history
Signed-off-by: Cyril Corbon <[email protected]>
  • Loading branch information
cyril-corbon committed Feb 23, 2021
1 parent 9208908 commit dcc2408
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helm/azure-resourcemanager-exporter/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ Return the appropriate apiVersion for ingress.
{{- else -}}
{{- print "extensions/v1beta1" -}}
{{- end -}}
{{- end -}}
{{- end -}}
7 changes: 7 additions & 0 deletions helm/azure-resourcemanager-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "azure-resourcemanager-exporter.fullname" . }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "azure-resourcemanager-exporter.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "azure-resourcemanager-exporter.chart" . }}
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicas }}
selector:
Expand Down
8 changes: 7 additions & 1 deletion helm/azure-resourcemanager-exporter/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
restartPolicy: Always

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

strategy:
rollingUpdate:
Expand All @@ -20,6 +23,9 @@ image:
# pullSecrets:
# - myRegistrKeySecretName

## Annotations and labels to add to the deployment
annotations: {}
labels: {}

## User to run container as
runAsUser: 1000
Expand Down

0 comments on commit dcc2408

Please sign in to comment.