Skip to content

Commit

Permalink
Commit triggered by a change on the main branch of helm-charts-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rconway committed Jan 9, 2024
1 parent c0e2435 commit d8a2003
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 20 deletions.
2 changes: 1 addition & 1 deletion charts/identity-gatekeeper/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.1
version: 1.0.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/identity-gatekeeper/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
namespace: {{ .Release.Namespace }}
data:
config.yaml: |
{{- tpl (.Values.config | toYaml) $ | nindent 4 }}
{{- tpl (.Values.config | toYaml) . | nindent 4 }}
4 changes: 2 additions & 2 deletions charts/identity-gatekeeper/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "identity-gatekeeper.name" . }}
name: {{ include "identity-gatekeeper.fullname" . }}
labels:
{{- include "identity-gatekeeper.labels" . | nindent 4 }}
namespace: {{ .Release.Namespace }}
Expand Down Expand Up @@ -66,7 +66,7 @@ spec:
{{- tpl . $ | nindent 12 }}
{{- end }}
- secretRef:
name: {{ include "identity-gatekeeper.name" . }}
name: {{ include "identity-gatekeeper.fullname" . }}
ports:
- name: proxy
containerPort: {{ regexFind ":[0-9]+" .Values.config.listen | trimPrefix ":" }}
Expand Down
18 changes: 9 additions & 9 deletions charts/identity-gatekeeper/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.ingress.enabled -}}
{{- $name := include "identity-gatekeeper.name" . -}}
{{- $name := include "identity-gatekeeper.fullname" . -}}
{{- $svcPort := .Values.service.proxy.port -}}
apiVersion: {{ include "identity-gatekeeper.ingress.apiVersion" . }}
kind: Ingress
Expand All @@ -9,7 +9,7 @@ metadata:
{{- include "identity-gatekeeper.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
namespace: {{ .Release.Namespace }}
spec:
Expand All @@ -21,14 +21,14 @@ spec:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
- {{ tpl . $ | quote }}
{{- end }}
secretName: {{ .secretName }}
secretName: {{ tpl .secretName $ }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
- host: {{ tpl .host $ | quote }}
http:
paths:
{{- range .paths }}
Expand All @@ -39,12 +39,12 @@ spec:
backend:
{{- if semverCompare ">=1.19-0" (include "identity-gatekeeper.kubeVersion" $) }}
service:
name: {{ $name }}
name: {{ tpl .backend.service.name $ }}
port:
number: {{ $svcPort }}
number: {{ tpl .backend.service.port.number $ }}
{{- else }}
serviceName: {{ $name }}
servicePort: {{ $svcPort }}
serviceName: {{ tpl .backend.service.name $ }}
servicePort: {{ tpl .backend.service.port.number $ }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/identity-gatekeeper/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ include "identity-gatekeeper.name" . }}
name: {{ include "identity-gatekeeper.fullname" . }}
labels:
{{- include "identity-gatekeeper.labels" . | nindent 4 }}
namespace: {{ .Release.Namespace }}
Expand Down
2 changes: 1 addition & 1 deletion charts/identity-gatekeeper/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "identity-gatekeeper.name" . }}
name: {{ include "identity-gatekeeper.fullname" . }}
labels:
{{- include "identity-gatekeeper.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
Expand Down
42 changes: 37 additions & 5 deletions charts/identity-gatekeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,52 @@ serviceAccount:
create: true
annotations: {}
name: ""
targetService:
host: myservice.myplatform.eoepca.org
name: target-service
port:
number: 80
ingress:
enabled: true
className: ""
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/configuration-snippet: |
auth_request /auth;
if ($request_method = OPTIONS) {
return 200;
}
add_header Access-Control-Allow-Origin $http_origin always;
add_header Access-Control-Allow-Methods "*";
add_header Access-Control-Allow-Headers "Authorization, Origin, Content-Type";
nginx.ingress.kubernetes.io/server-snippet: |
location ^~ /auth {
internal;
proxy_pass http://{{ include "identity-gatekeeper.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.proxy.port }}/$request_uri;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Method $request_method;
proxy_set_header X-Forwarded-URI $request_uri;
proxy_busy_buffers_size 64k;
proxy_buffers 8 32k;
proxy_buffer_size 32k;
}
hosts:
- host: identity.gatekeeper.myplatform.eoepca.org
- host: "{{ .Values.targetService.host }}"
paths:
- path: /
pathType: Prefix
backend:
service:
name: "{{ .Values.targetService.name }}"
port:
number: "{{ .Values.targetService.port.number }}"
tls:
- secretName: identity-gatekeeper-tls-certificate
- secretName: "{{ include \"identity-gatekeeper.fullname\" . }}-tls"
hosts:
- identity.gatekeeper.myplatform.eoepca.org
- "{{ .Values.targetService.host }}"
autoscaling:
enabled: false
minReplicas: 1
Expand All @@ -111,7 +143,7 @@ metrics:
annotations: {}
interval:
config:
client-id: dummy-service
client-id: myclient
discovery-url: https://identity.keycloak.myplatform.eoepca.org/realms/master
no-redirects: true
no-proxy: true
Expand All @@ -131,4 +163,4 @@ config:
listen-admin: :4000
secrets:
clientSecret: ""
encryptionKey: ""
encryptionKey: ""

0 comments on commit d8a2003

Please sign in to comment.