Skip to content

Commit

Permalink
Add test-values.yaml for each chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenh committed Aug 28, 2024
1 parent d1acaf0 commit 2881c53
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 10 deletions.
1 change: 1 addition & 0 deletions charts/aserto-lib/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: aserto-lib
description: Common helpers for aserto charts
icon: https://www.aserto.com/images/aserto-logo.png

maintainers:
- name: Aserto
Expand Down
1 change: 1 addition & 0 deletions charts/aserto/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: aserto
description: A Helm chart for Kubernetes
icon: https://www.aserto.com/images/aserto-logo.png

maintainers:
- name: Aserto
Expand Down
18 changes: 18 additions & 0 deletions charts/aserto/ci/test-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
global:
aserto:
oidc:
domain: oidc_domain
audience: oidc_audience
discovery:
registries:
ghcr.io:
scheme: bearer
tokenSecretName: ghcr-token-secret
directory:
rootDirectory:
tenantID: root-tenant-id
database:
host: root-db-host
tenantDirectory:
database:
host: tenant-db-host
5 changes: 5 additions & 0 deletions charts/authorizer/ci/test-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rootDirectory:
tenantID: root-tenant-id
oidc:
domain: oidc_domain
audience: oidc_audience
3 changes: 3 additions & 0 deletions charts/console/ci/test-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
oidc:
domain: oidc_domain
audience: oidc_audience
7 changes: 7 additions & 0 deletions charts/directory/ci/test-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rootDirectory:
tenantID: root-tenant-id
database:
host: root-db-host
tenantDirectory:
database:
host: tenant-db-host
4 changes: 2 additions & 2 deletions charts/directory/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ stringData:
{{- with .Values.tenantDirectory.database -}}
db:
writer:
host: "{{ .host | required ".Values.tenantDirectory.host is required." }}"
host: "{{ .host | required ".Values.tenantDirectory.database.host is required." }}"
port: {{ .port | default 5432 }}
db_name: {{ .dbName | default "aserto-ds" }}
ssl_mode: {{ .sslMode | default "require" }}
Expand All @@ -59,7 +59,7 @@ stringData:
{{ toYaml .admin.options | nindent 8 }}
{{ end }}
reader:
host: "{{ .host | required ".Values.tenantDirectory.host is required." }}"
host: "{{ .host | required ".Values.tenantDirectory.database.host is required." }}"
port: {{ .port | default 5432 }}
db_name: {{ .dbName | default "aserto-ds" }}
ssl_mode: {{ .sslMode | default "require" }}
Expand Down
9 changes: 9 additions & 0 deletions charts/discovery/ci/test-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
oidc:
domain: oidc_domain
audience: oidc_audience
rootDirectory:
tenantID: root-tenant-id
registries:
ghcr.io:
scheme: bearer
tokenSecretName: ghcr-token-secret
8 changes: 0 additions & 8 deletions ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@ remote: origin
target-branch: main
chart-repos:
- aserto-helm=oci://ghcr.io/aserto-dev/helm
helm-lint-extra-args: >
--set global.aserto.rootDirectory.tenantID=root-tenant-id
--set rootDirectory.database.host=root.db.hostname
--set tenantDirectory.database.host=tenant.db.hostname
--set oidc.domain=oidc_domain
--set oidc.audience=oidc_audience
--set registries.ghcr.scheme=bearer
--set registries.ghcr.tokenSecretName=ghcr-token-secret

0 comments on commit 2881c53

Please sign in to comment.