Skip to content

Commit

Permalink
Add enabled conditions for aserto charts
Browse files Browse the repository at this point in the history
  • Loading branch information
carabasdaniel committed Dec 17, 2024
1 parent d6abb2f commit 79fa645
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/aserto/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ dependencies:
- name: scim
repository: file://../scim
version: 0.1.6
digest: sha256:d188c2319b1f908c0a8618ad44e8953a62e86230842c85ddbcd1f1966b67c4b5
generated: "2024-11-26T12:56:40.605962-05:00"
digest: sha256:cf562340727b49bf781073f56c582d34924260838ffe33cf4189e4a1b1bf44a2
generated: "2024-12-17T11:43:37.275465+02:00"
5 changes: 5 additions & 0 deletions charts/aserto/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,20 @@ dependencies:
- name: directory
version: 0.2.0
repository: file://../directory
condition: directory.enabled
- name: authorizer
version: 0.1.8
repository: file://../authorizer
condition: authorizer.enabled
- name: discovery
version: 0.1.7
repository: file://../discovery
condition: discovery.enabled
- name: console
version: 0.1.7
repository: file://../console
condition: console.enabled
- name: scim
version: 0.1.6
repository: file://../scim
condition: scim.enabled
9 changes: 7 additions & 2 deletions charts/aserto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ global:
disableTLSVerification: true

directory:
enabled: true
# Kubernetes pull secret for private Aserto images.
# imagePullSecrets:
# - name: ghcr-creds
Expand Down Expand Up @@ -116,6 +117,7 @@ directory:
credentialsSecret: pg-ds-credentials

discovery:
enabled: true
# Kubernetes pull secret for private Aserto images.
# imagePullSecrets:
# - name: ghcr-creds
Expand All @@ -133,6 +135,7 @@ discovery:
# tokenSecretKey: token

console:
enabled: false
# Kubernetes pull secret for private Aserto images.
# imagePullSecrets:
# - name: ghcr-creds
Expand All @@ -154,7 +157,8 @@ console:
# e.g. https://directory.aserto.example.com
directoryURL: ""

# authorizer:
authorizer:
enabled: true
# # Kubernetes pull secret for private Aserto images.
# imagePullSecrets:
# - name: ghcr-creds
Expand All @@ -165,7 +169,8 @@ console:
# tag: x.y.z
# pullPolicy: IfNotPresent

# scim:
scim:
enabled: false
# # Kubernetes pull secret for private Aserto images.
# imagePullSecrets:
# - name: ghcr-creds
Expand Down
4 changes: 2 additions & 2 deletions charts/directory/templates/db_credentials.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- $rootData := (lookup "v1" "Secret" .Release.Namespace .Values.rootDirectory.database.reader.credentialsSecret).data -}}
{{- if empty $rootData -}}
{{- if empty $rootData }}
---
apiVersion: v1
kind: Secret
Expand All @@ -11,7 +11,7 @@ data:
{{- end }}

{{- $tenantData := (lookup "v1" "Secret" .Release.Namespace .Values.tenantDirectory.database.reader.credentialsSecret).data -}}
{{- if empty $tenantData -}}
{{- if empty $tenantData }}
---
apiVersion: v1
kind: Secret
Expand Down

0 comments on commit 79fa645

Please sign in to comment.