Skip to content

Commit

Permalink
Added ALLOW_HOME_VIEW toggle to Switcher Management (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
petruki authored Mar 10, 2024
1 parent 8de2ab0 commit 74dd5fc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4.1.0
with:
version: v3.12.1
version: v3.13.3

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
check-latest: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ helm uninstall switcherapi --namespace switcherapi
| `management.env.switcherApiUrl` | Switcher API URL | `http://localhost:3000` |
| `management.env.switcherManagementUrl`| Management callback URL | `http://localhost:8080` |
| `management.env.switcherSlackUrl` | Switcher Slack App URL | `http://localhost:5000` |
| `management.env.allowHomeView` | Allow Home View | false |
| `management.env.googleRecaptcha` | Google ReCaptcha Public Key | `` |
| `management.env.bitbucketClientId` | Bitbucket Client Id | `` |
| `management.env.githubClientId` | GitHub Client Id | `` |
Expand Down
2 changes: 1 addition & 1 deletion charts/switcher-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ maintainers:
url: https://github.com/petruki

type: application
version: 1.2.0
version: 1.2.1
appVersion: "latest"
1 change: 1 addition & 0 deletions charts/switcher-api/templates/manager/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
{{- include "switcher-management.labels" . | nindent 4 }}
data:
ALLOW_HOME_VIEW: {{ .Values.management.env.allowHomeView | quote }}
SWITCHERAPI_URL: {{ .Values.management.env.switcherApiUrl }}
SM_IP: {{ .Values.management.env.switcherManagementUrl }}
GOOGLE_RECAPTCHA: {{ .Values.management.env.googleRecaptcha }}
Expand Down
1 change: 1 addition & 0 deletions charts/switcher-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ management:
portTls: 443

env:
allowHomeView: false
switcherApiUrl: "http://localhost:3000"
switcherManagementUrl: "http://localhost:8080"
switcherSlackUrl: "http://localhost:5000"
Expand Down

0 comments on commit 74dd5fc

Please sign in to comment.