Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/osc-open-webui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: osc-open-webui
description: OSC Open Web UI deployment
type: application
version: 0.4.2
version: 0.5.0
appVersion: "0.1.0"
maintainers:
- name: treydock
Expand Down
6 changes: 5 additions & 1 deletion charts/osc-open-webui/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# osc-open-webui

![Version: 0.4.2](https://img.shields.io/badge/Version-0.4.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

OSC Open Web UI deployment

Expand Down Expand Up @@ -29,6 +29,9 @@ global:
ingress:
host: testuser.k8.osc.edu
hostAlias: testuser.osc.edu
# Optional
apiAllowedRange:
- 10.0.0.0/8
auth:
idpHost: IDP
clientID: client-id
Expand Down Expand Up @@ -82,6 +85,7 @@ open-webui:
| global.nodeSelectorRole | | `"webservices"` |
| global.ingress.host | | `""` |
| global.ingress.hostAlias | | `""` |
| global.ingress.apiAllowedRange | Allowed CIDR ranges for API access | `nil` |
| global.auth.idpHost | | `nil` |
| global.auth.clientID | | `nil` |
| global.auth.clientSecret | | `nil` |
Expand Down
3 changes: 3 additions & 0 deletions charts/osc-open-webui/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ global:
ingress:
host: testuser.k8.osc.edu
hostAlias: testuser.osc.edu
# Optional
apiAllowedRange:
- 10.0.0.0/8
auth:
idpHost: IDP
clientID: client-id
Expand Down
3 changes: 3 additions & 0 deletions charts/osc-open-webui/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ metadata:
{{- if .Values.global.ingress.hostAlias }}
nginx.ingress.kubernetes.io/server-alias: {{ include "osc-open-webui.api.hostAlias" . | quote }}
{{- end }}
{{- if .Values.global.ingress.apiAllowedRange }}
nginx.ingress.kubernetes.io/whitelist-source-range: {{ join "," .Values.global.ingress.apiAllowedRange | quote }}
{{- end }}
spec:
ingressClassName: nginx
tls:
Expand Down
4 changes: 2 additions & 2 deletions charts/osc-open-webui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ global:
password:
nodeSelectorRole: webservices
ingress:
# Also pulled from global.env.$environment.ingress.host
host: ""
# Also pulled from global.env.$environment.ingress.hostAlias
hostAlias: ""
# -- Allowed CIDR ranges for API access
apiAllowedRange:
auth:
idpHost:
clientID:
Expand Down