Skip to content

Commit

Permalink
Merge branch 'main' into issue_681
Browse files Browse the repository at this point in the history
  • Loading branch information
esune committed Sep 18, 2023
2 parents 1bd478e + 94d8857 commit 674c823
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 346 deletions.
203 changes: 0 additions & 203 deletions .github/workflows/on_push_tag.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions charts/traction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,16 @@ kubectl delete secret,pvc --selector "app.kubernetes.io/instance"=my-release
| `ui.ux.coverImageCopyright` | | `Photo by Kristoffer Fredriksson on StockSnap` |
| `ui.ariesDetails.ledgerDescription` | Ledger description | `bcovrin-test` |
| `ui.oidc.showInnkeeperAdminLogin` | Show Innkeeper Admin Login | `true` |
| `ui.oidc.showWritableComponents` | Show writable components | `true` |
| `ui.oidc.active` | Enable OIDC authentication | `true` |
| `ui.oidc.authority` | OIDC authority | `""` |
| `ui.oidc.client` | OIDC client | `innkeeper-frontend` |
| `ui.oidc.label` | OIDC label | `IDIR` |
| `ui.oidc.jwksUri` | OIDC jwksUri | `""` |
| `ui.oidc.realm` | OIDC realm | `Traction` |
| `ui.oidc.roleName` | OIDC role name | `innkeeper` |
| `ui.oidc.session.timeoutSeconds` | OIDC session timeout set in seconds | `600` |
| `ui.oidc.session.countdownSeconds` | OIDC session countdown set in seconds | `30` |
| `ui.smtp.server` | SMTP server | `""` |
| `ui.smtp.port` | SMTP port | `25` |
| `ui.smtp.senderAddress` | SMTP sender address | `""` |
Expand Down
7 changes: 7 additions & 0 deletions charts/traction/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{ template "global.fullname" . }}-acapy
{{- end -}}

{{/*
Create a default fully qualified acapy configmap name.
*/}}
{{- define "acapy.configmap.name" -}}
{{ template "acapy.fullname" . }}-config
{{- end -}}

{{/*
Create a default fully qualified acapy name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
Expand Down
2 changes: 1 addition & 1 deletion charts/traction/templates/acapy/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "acapy.fullname" . }}-config
name: {{ include "acapy.configmap.name" . }}
labels:
{{- include "acapy.labels" . | nindent 4 }}
data:
Expand Down
7 changes: 6 additions & 1 deletion charts/traction/templates/acapy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ metadata:
name: {{ include "acapy.fullname" . }}
labels:
{{- include "acapy.labels" . | nindent 4 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/acapy/configmap.yaml") . | sha256sum }}
checksum/wallet-secret: {{ include (print $.Template.BasePath "/acapy/wallet_secret.yaml") . | sha256sum }}
checksum/api-secret: {{ include (print $.Template.BasePath "/acapy/api_secret.yaml") . | sha256sum }}
checksum/innkeeper-secret: {{ include (print $.Template.BasePath "/acapy/plugin_innkeeper_secret.yaml") . | sha256sum }}
spec:
{{- if not .Values.acapy.autoscaling.enabled }}
replicas: {{ .Values.acapy.replicaCount }}
Expand Down Expand Up @@ -147,7 +152,7 @@ spec:
volumes:
- name: config
configMap:
name: {{ include "acapy.fullname" . }}-config
name: {{ include "acapy.configmap.name" . }}
{{- with .Values.acapy.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/traction/templates/proxy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ metadata:
name: {{ include "tenant_proxy.fullname" . }}
labels:
{{- include "tenant_proxy.labels" . | nindent 4 }}
annotations:
checksum/api-secret: {{ include (print $.Template.BasePath "/acapy/api_secret.yaml") . | sha256sum }}
spec:
{{- if not .Values.tenant_proxy.autoscaling.enabled }}
replicas: {{ .Values.tenant_proxy.replicaCount }}
Expand Down
3 changes: 3 additions & 0 deletions charts/traction/templates/ui/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
name: {{ include "tenant-ui.fullname" . }}
labels:
{{- include "tenant-ui.labels" . | nindent 4 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/ui/configmap.yaml") . | sha256sum }}
checksum/innkeeper-secret: {{ include (print $.Template.BasePath "/acapy/plugin_innkeeper_secret.yaml") . | sha256sum }}
spec:
{{- if not .Values.ui.autoscaling.enabled }}
replicas: {{ .Values.ui.replicaCount }}
Expand Down
7 changes: 7 additions & 0 deletions charts/traction/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,8 @@ ui:
oidc:
## @param ui.oidc.showInnkeeperAdminLogin Show Innkeeper Admin Login
showInnkeeperAdminLogin: true
## @param ui.oidc.showWritableComponents Show writable components
showWritableComponents: true
## @param ui.oidc.active Enable OIDC authentication
active: true
## @param ui.oidc.authority OIDC authority
Expand All @@ -606,6 +608,11 @@ ui:
realm: "Traction"
## @param ui.oidc.roleName OIDC role name
roleName: "innkeeper"
## @param ui.oidc.session.timeoutSeconds OIDC session timeout seconds
## @param ui.oidc.session.countdownSeconds OIDC session countdown seconds
session:
timeoutSeconds: 600
countdownSeconds: 30

## SMTP Configuration
smtp:
Expand Down
5 changes: 0 additions & 5 deletions deploy/traction/values-development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ ui:
pullPolicy: Always
oidc:
active: true
showInnkeeperAdminLogin: true
showWritableComponents: true
session:
timeoutSeconds: 600
countdownSeconds: 30
authority: https://dev.loginproxy.gov.bc.ca/auth/realms/digitaltrust-nrm
jwksUri: https://dev.loginproxy.gov.bc.ca/auth/realms/digitaltrust-nrm/protocol/openid-connect/certs
ariesDetails:
Expand Down
5 changes: 0 additions & 5 deletions deploy/traction/values-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ ui:
pullPolicy: Always
oidc:
active: true
showInnkeeperAdminLogin: true
showWritableComponents: true
session:
timeoutSeconds: 600
countdownSeconds: 30
authority: https://dev.loginproxy.gov.bc.ca/auth/realms/digitaltrust-nrm
jwksUri: https://dev.loginproxy.gov.bc.ca/auth/realms/digitaltrust-nrm/protocol/openid-connect/certs
ariesDetails:
Expand Down
63 changes: 0 additions & 63 deletions deploy/traction/values-production.yaml

This file was deleted.

Loading

0 comments on commit 674c823

Please sign in to comment.