Skip to content
Merged
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/kubebrowser/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: kubebrowser
description: Allow whitelisted people to access your kubeconfigs
type: application
version: 1.3.2
version: 1.4.0
appVersion: "0.10.0"
dependencies:
- name: common
Expand Down
10 changes: 10 additions & 0 deletions charts/kubebrowser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Prepare your `values.yaml`

```yaml
server:
hostname: "kubebrowser.example.com" # match your redirect URI
oidc:
clientID: <your-client-id>
clientSecret: <your-client-secret>
Expand All @@ -28,6 +29,14 @@ Install chart
helm install my-kubebrowser avisto/kubebrowser -f values.yaml
```

## Migration guide

### From 1.3 to 1.4

By default, `https` is now assumed for the `KUBEBROWSER_HOSTNAME` environment variable (used for oauth2 callback).

Set `server.insecure=true` if you want to keep `http` prefix.

## Parameters

### Global values
Expand Down Expand Up @@ -96,6 +105,7 @@ helm install my-kubebrowser avisto/kubebrowser -f values.yaml
| `server.hostNetwork` | Specify if host network should be enabled for kubebrowser pod | `false` |
| `server.containerPorts.http` | kubebrowser server container port for http | `8080` |
| `server.hostname` | Hostname for kubebrowser server | `""` |
| `server.insecure` | Whether kubebrowser should expect http or https for its own hostname (e.g. for oauth2 callback) | `false` |
| `server.hostIPC` | Specify if host IPC should be enabled for kubebrowser pod | `false` |
| `server.labels` | Map of labels to add to the statefulset | `{}` |
| `server.annotations` | Annotations for server pods | `{}` |
Expand Down
4 changes: 1 addition & 3 deletions charts/kubebrowser/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,8 @@ spec:
env:
- name: GIN_MODE
value: "release"
{{- if or .Values.ingress.enabled .Values.httpRoute.enabled }}
- name: KUBEBROWSER_HOSTNAME
value: {{ printf "%s://%s" (ternary "https" "http" (or .Values.ingress.tls (gt (len .Values.ingress.extraTls) 0) .Values.httpRoute.enabled)) (include "kubebrowser.hostname" $) }}
{{- end }}
value: {{ printf "%s://%s" (ternary "http" "https" .Values.server.insecure) (include "kubebrowser.hostname" $) }}
- name: KUBEBROWSER_OAUTH2_CLIENT_ID
valueFrom:
secretKeyRef:
Expand Down
5 changes: 5 additions & 0 deletions charts/kubebrowser/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,11 @@
"description": "Hostname for kubebrowser server",
"default": ""
},
"insecure": {
"type": "boolean",
"description": "Whether kubebrowser should expect http or https for its own hostname (e.g. for oauth2 callback)",
"default": false
},
"hostIPC": {
"type": "boolean",
"description": "Specify if host IPC should be enabled for kubebrowser pod",
Expand Down
3 changes: 3 additions & 0 deletions charts/kubebrowser/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ server:
## @param server.hostname Hostname for kubebrowser server
##
hostname: ""
## @param server.insecure Whether kubebrowser should expect http or https for its own hostname (e.g. for oauth2 callback)
#
insecure: false
## @param server.hostIPC Specify if host IPC should be enabled for kubebrowser pod
##
hostIPC: false
Expand Down