Skip to content

Commit

Permalink
Merge pull request #193 from mlbiam/master
Browse files Browse the repository at this point in the history
make nginx ingress classname configurable, fix rbac for management proxy
  • Loading branch information
mlbiam authored Jan 30, 2025
2 parents 9a94a3d + e452e8e commit 80894c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orchestra/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: 3.1.6
version: 3.1.8

# 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
1 change: 1 addition & 0 deletions orchestra/templates/infrastructure/mgmt-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ rules:
- "userextras/originaluser.jetstack.io-user"
- "userextras/originaluser.jetstack.io-groups"
- "userextras/originaluser.jetstack.io-extra"
- "userextras/authentication.kubernetes.io/credential-id"
verbs:
- "create"
- "impersonate"
Expand Down
4 changes: 3 additions & 1 deletion orchestra/templates/infrastructure/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ metadata:
nginx.ingress.kubernetes.io/session-cookie-hash: sha1

{{ range $key,$value := .Values.network.ingress_annotations }}
{{ if not ( eq $key "kubernetes.io/ingress.class" )}}
{{ $key }}: {{ quote $value }}
{{ end }}
{{ end }}
name: openunison-{{ .Release.Name }}
namespace: {{ .Release.Namespace }}
labels:
Expand All @@ -23,7 +25,7 @@ metadata:
app.kubernetes.io/component: ingress-nginx
app.kubernetes.io/part-of: openunison
spec:
ingressClassName: nginx
ingressClassName: {{ index .Values.network.ingress_annotations "kubernetes.io/ingress.class" | default "nginx" }}
rules:
- host: {{ .Values.network.openunison_host }}
http:
Expand Down

0 comments on commit 80894c5

Please sign in to comment.