Skip to content

Instantly share code, notes, and snippets.

@mmontes11
Created July 31, 2021 10:32
Show Gist options
  • Save mmontes11/5028fe62fcd6dbfbfd29654696c719a8 to your computer and use it in GitHub Desktop.
Save mmontes11/5028fe62fcd6dbfbfd29654696c719a8 to your computer and use it in GitHub Desktop.
Operator configmap
{{ $fullName := include "echoperator.fullname" . }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ $fullName }}
labels:
{{ include "echoperator.labels" . | nindent 4 }}
data:
NAMESPACE: {{ .Release.Namespace }}
NUM_WORKERS: {{ .Values.numWorkers | quote }}
HA_ENABLED: {{ .Values.ha.enabled | quote }}
{{ if .Values.ha.enabled }}
HA_LEASE_LOCK_NAME: {{ $fullName }}
HA_LEASE_DURATION_SECONDS: {{ .Values.ha.leaderElection.leaseDurationSeconds | quote }}
HA_RENEW_DEADLINE_SECONDS: {{ .Values.ha.leaderElection.renewDeadlineSeconds | quote }}
HA_RETRY_PERIOD_SECONDS: {{ .Values.ha.leaderElection.retryPeriodSeconds | quote }}
{{ end }}
METRICS_ENABLED: {{ .Values.monitoring.enabled | quote }}
{{ if .Values.monitoring.enabled }}
METRICS_PATH: {{ .Values.monitoring.path }}
METRICS_PORT: {{ .Values.monitoring.port | quote }}
{{ end }}
ENV: {{ .Values.env }}
LOG_LEVEL: {{ .Values.logLevel }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment