Skip to content

Commit

Permalink
Add config template (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerauerbeck authored Jun 26, 2023
1 parent 330861b commit 1a6676b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions chart/ipam-api/templates/api-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}-config
labels:
{{- include "common.labels.standard" . | nindent 4 }}
data:
IPAMAPI_EVENTS_PUBLISHER_PREFIX: "{{ .Values.api.events.topicPrefix }}"
IPAMAPI_EVENTS_PUBLISHER_URL: "{{ .Values.api.events.connectionURL }}"
IPAMAPI_OIDC: "{{ .Values.api.oidc.enabled }}"
IPAMAPI_OIDC_AUDIENCE: "{{ .Values.api.oidc.audience }}"
IPAMAPI_OIDC_ISSUER: "{{ .Values.api.oidc.issuer }}"
IPAMAPI_OIDC_JWKS_REMOTE_TIMEOUT: "{{ .Values.api.oidc.jwksRemoteTimeout }}"
IPAMAPI_SERVER_LISTEN: ":{{ .Values.api.listenPort }}"
IPAMAPI_SERVER_SHUTDOWN_GRACE_PERIOD: "{{ .Values.api.shutdownGracePeriod }}"
{{- with .Values.api.trustedProxies }}
IPAMAPI_SERVER_TRUSTED_PROXIES: "{{ join " " . }}"
{{- end }}

0 comments on commit 1a6676b

Please sign in to comment.