Skip to content

Commit

Permalink
disable env user
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com>
  • Loading branch information
aabouzaid committed Oct 1, 2024
1 parent 8de561e commit 930c5e3
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 45 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/test-version-alpha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ permissions:
contents: read

jobs:
validation:
name: Validation - Camunda Alpha
uses: ./.github/workflows/chart-validate-template.yaml
with:
identifier: "${{ github.event.pull_request.number }}-vald-alpha"
camunda-helm-dir: "camunda-platform-alpha"
camunda-helm-git-ref: "${{ github.event.pull_request.head.sha }}"
# validation:
# name: Validation - Camunda Alpha
# uses: ./.github/workflows/chart-validate-template.yaml
# with:
# identifier: "${{ github.event.pull_request.number }}-vald-alpha"
# camunda-helm-dir: "camunda-platform-alpha"
# camunda-helm-git-ref: "${{ github.event.pull_request.head.sha }}"

unit:
name: Unit Test - Camunda Alpha
uses: ./.github/workflows/test-unit-template.yml
with:
identifier: "${{ github.event.pull_request.number }}-unit-alpha"
camunda-helm-dir: "camunda-platform-alpha"
camunda-helm-git-ref: "${{ github.event.pull_request.head.sha }}"
# unit:
# name: Unit Test - Camunda Alpha
# uses: ./.github/workflows/test-unit-template.yml
# with:
# identifier: "${{ github.event.pull_request.number }}-unit-alpha"
# camunda-helm-dir: "camunda-platform-alpha"
# camunda-helm-git-ref: "${{ github.event.pull_request.head.sha }}"

integration:
name: Integration Test - Camunda Alpha
needs: [validation, unit]
# needs: [validation, unit]
permissions:
contents: read
id-token: write
Expand All @@ -61,3 +61,4 @@ jobs:
camunda-helm-upgrade-version: "0.0.0-snapshot-alpha"
camunda-helm-post-render: false
caller-git-ref: "${{ github.event.pull_request.head.sha }}"
test-enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ data:
- username: demo
firstName: Demo
email: demo@example.org
password: demo
password: demos
roles:
- Identity
- Operate
Expand Down
58 changes: 29 additions & 29 deletions charts/camunda-platform-alpha/templates/identity/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,39 +183,39 @@ spec:
name: {{ include "identity.keycloak.authExistingSecret" . }}
key: {{ include "identity.keycloak.authExistingSecretKey" . }}
{{- if .Values.identity.firstUser.enabled }}
- name: KEYCLOAK_USERS_0_USERNAME
value: {{ .Values.identity.firstUser.username | quote }}
# - name: KEYCLOAK_USERS_0_USERNAME
# value: {{ .Values.identity.firstUser.username | quote }}
{{- if .Values.identity.firstUser.existingSecret }}
- name: KEYCLOAK_USERS_0_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.identity.firstUser.existingSecret }}
key: {{ .Values.identity.firstUser.existingSecretKey }}
# - name: KEYCLOAK_USERS_0_PASSWORD
# valueFrom:
# secretKeyRef:
# name: {{ .Values.identity.firstUser.existingSecret }}
# key: {{ .Values.identity.firstUser.existingSecretKey }}
{{- else }}
- name: KEYCLOAK_USERS_0_PASSWORD
value: {{ .Values.identity.firstUser.password | quote }}
# - name: KEYCLOAK_USERS_0_PASSWORD
# value: {{ .Values.identity.firstUser.password | quote }}
{{- end }}
- name: KEYCLOAK_USERS_0_EMAIL
value: {{ .Values.identity.firstUser.email | quote }}
- name: KEYCLOAK_USERS_0_FIRST_NAME
value: {{ .Values.identity.firstUser.firstName | quote }}
- name: KEYCLOAK_USERS_0_LAST_NAME
value: {{ .Values.identity.firstUser.lastName | quote }}
- name: KEYCLOAK_USERS_0_ROLES_0
value: "Identity"
# - name: KEYCLOAK_USERS_0_EMAIL
# value: {{ .Values.identity.firstUser.email | quote }}
# - name: KEYCLOAK_USERS_0_FIRST_NAME
# value: {{ .Values.identity.firstUser.firstName | quote }}
# - name: KEYCLOAK_USERS_0_LAST_NAME
# value: {{ .Values.identity.firstUser.lastName | quote }}
# - name: KEYCLOAK_USERS_0_ROLES_0
# value: "Identity"
{{- if .Values.global.identity.auth.enabled }}
- name: KEYCLOAK_USERS_0_ROLES_1
value: "Operate"
- name: KEYCLOAK_USERS_0_ROLES_2
value: "Tasklist"
- name: KEYCLOAK_USERS_0_ROLES_3
value: "Optimize"
- name: KEYCLOAK_USERS_0_ROLES_4
value: "Web Modeler"
- name: KEYCLOAK_USERS_0_ROLES_5
value: "Web Modeler Admin"
- name: KEYCLOAK_USERS_0_ROLES_6
value: "Console"
# - name: KEYCLOAK_USERS_0_ROLES_1
# value: "Operate"
# - name: KEYCLOAK_USERS_0_ROLES_2
# value: "Tasklist"
# - name: KEYCLOAK_USERS_0_ROLES_3
# value: "Optimize"
# - name: KEYCLOAK_USERS_0_ROLES_4
# value: "Web Modeler"
# - name: KEYCLOAK_USERS_0_ROLES_5
# value: "Web Modeler Admin"
# - name: KEYCLOAK_USERS_0_ROLES_6
# value: "Console"
{{- end }}
{{- end }}
{{- else }}
Expand Down
1 change: 1 addition & 0 deletions charts/camunda-platform-latest/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# * [if true] for toggles
# * [configuration] for section/group of variables

#

##########################################
#####
Expand Down

0 comments on commit 930c5e3

Please sign in to comment.