Skip to content

Commit

Permalink
Allow config of http URLs in app-config-frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Jul 23, 2024
1 parent 1cc965f commit 132b955
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/app-config-frontend/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.1.1
version: 2.0.0

# 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
7 changes: 4 additions & 3 deletions charts/app-config-frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# app-config-frontend
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/app-config-frontend)](https://artifacthub.io/packages/helm/radar-base/app-config-frontend)

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

A Helm chart for the frontend application of RADAR-base application config (app-config).

Expand Down Expand Up @@ -71,6 +71,7 @@ A Helm chart for the frontend application of RADAR-base application config (app-
| readinessProbe.successThreshold | int | `1` | Success threshold for readinessProbe |
| readinessProbe.failureThreshold | int | `3` | Failure threshold for readinessProbe |
| networkpolicy | object | check `values.yaml` | Network policy defines who can access this application and who this applications has access to |
| authUrl | string | `"http://localhost/managementportal/oauth"` | Authorization URL of the IDP |
| authCallbackUrl | string | `"http://localhost/appconfig/login"` | Callback URL to where authorization-code should be returned |
| serverName | string | `"localhost"` | Resolvable server name, needed to find the advertised URL and callback URL |
| authUrl | string | `nil` | Authorization URL of the IDP; needed when deviating from https://serverName/managementportal/oauth |
| authCallbackUrl | string | `nil` | Callback URL to where authorization-code should be returned; needed when deviating from https://serverName/appconfig/login |
| backendUrl | string | `"/appconfig/api"` | Base-URL of the App Config backend service |
4 changes: 2 additions & 2 deletions charts/app-config-frontend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ spec:
- name: BASE_HREF
value: /appconfig/
- name: AUTH_URL
value: {{ .Values.authUrl }}
value: {{ default (printf "https://%s/managementportal/oauth" .Values.serverName) .Values.authUrl }}
- name: AUTH_CALLBACK_URL
value: {{ .Values.authCallbackUrl }}
value: {{ default (printf "https://%s/appconfig/login" .Values.serverName) .Values.authCallbackUrl }}
- name: APP_CONFIG_URL
value: {{ .Values.backendUrl }}
{{- with .Values.extraEnvVars }}
Expand Down
10 changes: 6 additions & 4 deletions charts/app-config-frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ networkpolicy:
- port: 53
protocol: TCP

# -- Authorization URL of the IDP
authUrl: http://localhost/managementportal/oauth
# -- Callback URL to where authorization-code should be returned
authCallbackUrl: http://localhost/appconfig/login
# -- Resolvable server name, needed to find the advertised URL and callback URL
serverName: localhost
# -- Authorization URL of the IDP; needed when deviating from https://serverName/managementportal/oauth
authUrl:
# -- Callback URL to where authorization-code should be returned; needed when deviating from https://serverName/appconfig/login
authCallbackUrl:
# -- Base-URL of the App Config backend service
backendUrl: /appconfig/api

0 comments on commit 132b955

Please sign in to comment.