-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for alpha configuration. (#71)
the alpha configuration provides access to experimental, as well as advanced features not available with the "regular" config. this change add support for either using an existing configmap or creating one using the provided values.
- Loading branch information
Showing
5 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{- if .Values.alphaConfig.enabled }} | ||
{{- if not .Values.alphaConfig.existingConfig }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
{{- if .Values.alphaConfig.annotations }} | ||
annotations: {{- toYaml .Values.alphaConfig.annotations | nindent 4 }} | ||
{{- end }} | ||
labels: | ||
app: {{ template "oauth2-proxy.name" . }} | ||
{{- include "oauth2-proxy.labels" . | indent 4 }} | ||
name: {{ template "oauth2-proxy.fullname" . }}-alpha | ||
data: | ||
oauth2_proxy.yml: | | ||
--- | ||
server: | ||
BindAddress: '0.0.0.0:4180' | ||
{{- if .Values.alphaConfig.serverConfigData }} | ||
{{- toYaml .Values.alphaConfig.serverConfigData | nindent 6 }} | ||
{{- end }} | ||
{{- if .Values.metrics.enabled }} | ||
metricsServer: | ||
BindAddress: '0.0.0.0:44180' | ||
{{- if .Values.alphaConfig.metricsConfigData }} | ||
{{- toYaml .Values.alphaConfig.metricsConfigData | nindent 6 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- if .Values.alphaConfig.configData }} | ||
{{- toYaml .Values.alphaConfig.configData | nindent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters