Skip to content

Commit

Permalink
fix: to correctly configure BASE_PATH for selfservice-ui chart (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko authored Nov 14, 2023
1 parent e70d228 commit 7fb19cd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions hacks/values/kratos-selfservice-ui-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ deployment:
- name: dummy
mountPath: /opt/dummy/

basePath: /auth

test:
busybox:
repository: docker.io/library/busybox
Expand Down
2 changes: 1 addition & 1 deletion helm/charts/kratos-selfservice-ui-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A Helm chart for ORY Kratos's example ui for Kubernetes
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| baseUrl | string | `""` | The baseUrl |
| basePath | string | `""` | The basePath |
| deployment | object | `{"annotations":{},"automountServiceAccountToken":false,"dnsConfig":{},"extraEnv":[],"extraVolumeMounts":[],"extraVolumes":[],"labels":{},"nodeSelector":{},"resources":{},"tolerations":[],"topologySpreadConstraints":[]}` | Deployment configuration |
| deployment.dnsConfig | object | `{}` | Configure pod dnsConfig. |
| deployment.extraEnv | list | `[]` | Array of extra envs to be passed to the deployment. Kubernetes format is expected - name: FOO value: BAR |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ spec:
value: {{ .Values.kratosBrowserUrl | quote }}
- name: PROJECT_NAME
value: {{ .Values.projectName | quote }}
- name: BASE_URL
value: {{ .Values.baseUrl | quote }}
- name: BASE_PATH
value: {{ .Values.basePath | quote }}
- name: JWKS_URL
value: {{ .Values.jwksUrl | quote }}
- name: KRATOS_ADMIN_URL
Expand All @@ -74,11 +74,11 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /health/alive
path: {{ .Values.basePath }}/health/alive
port: http
readinessProbe:
httpGet:
path: /health/ready
path: {{ .Values.basePath }}/health/ready
port: http
resources:
{{- toYaml .Values.deployment.resources | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ spec:
- name: wget
image: "{{ .Values.test.busybox.repository }}:{{ .Values.test.busybox.tag }}"
command: ['wget']
args: ['{{ include "kratos-selfservice-ui-node.fullname" . }}:{{ .Values.service.port }}/health/ready']
args: ['{{ include "kratos-selfservice-ui-node.fullname" . }}:{{ .Values.service.port }}{{ .Values.basePath }}/health/ready']
restartPolicy: Never
4 changes: 2 additions & 2 deletions helm/charts/kratos-selfservice-ui-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ kratosPublicUrl: "http://kratos-public"
# -- Set this to ORY Kratos's public URL accessible from the outside world.
kratosBrowserUrl: "http://kratos-browserui"

# -- The baseUrl
baseUrl: ""
# -- The basePath
basePath: ""

# -- The jwksUrl
jwksUrl: "http://oathkeeper-api"
Expand Down

0 comments on commit 7fb19cd

Please sign in to comment.