upgrade mirage to 0.1.1

This commit is contained in:
Jan-Niklas Weghorn 2024-04-29 18:34:02 +02:00
parent 4c83eb7d60
commit 08eeb5437b
5 changed files with 3 additions and 114 deletions

View File

@ -1,6 +0,0 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 12.1.15
digest: sha256:0686bdb95219bbd8806328e63f8547c12c8da36e70776407cde1ac324221d631
generated: "2023-08-27T13:55:27.416126986+02:00"

View File

@ -5,10 +5,5 @@ type: application
home: https://gitlab.com/oecis/charts/-/tree/main/charts/mirage home: https://gitlab.com/oecis/charts/-/tree/main/charts/mirage
sources: sources:
- https://gitlab.com/oecis/mirage - https://gitlab.com/oecis/mirage
version: 0.1.0 version: 0.1.1
appVersion: "0.1.0" appVersion: "0.1.1"
dependencies:
- condition: global.postgresqlEnabled
name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 12.1.x

View File

@ -1,6 +1,6 @@
# mirage # mirage
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square) ![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.1](https://img.shields.io/badge/AppVersion-0.1.1-informational?style=flat-square)
UI for the ory stack (kratos, hydra, etc.) built with phoenix in elixir UI for the ory stack (kratos, hydra, etc.) built with phoenix in elixir
@ -10,12 +10,6 @@ UI for the ory stack (kratos, hydra, etc.) built with phoenix in elixir
* <https://gitlab.com/oecis/mirage> * <https://gitlab.com/oecis/mirage>
## Requirements
| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | postgresql | 12.1.x |
## Values ## Values
| Key | Type | Default | Description | | Key | Type | Default | Description |
@ -26,7 +20,6 @@ UI for the ory stack (kratos, hydra, etc.) built with phoenix in elixir
| autoscaling.minReplicas | int | `1` | | | autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | | | autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| fullnameOverride | string | `""` | | | fullnameOverride | string | `""` | |
| global.postgresqlEnabled | bool | `true` | |
| image.pullPolicy | string | `"IfNotPresent"` | | | image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"registry.oecis.io/oecis/mirage"` | | | image.repository | string | `"registry.oecis.io/oecis/mirage"` | |
| image.tag | string | `""` | | | image.tag | string | `""` | |
@ -38,17 +31,8 @@ UI for the ory stack (kratos, hydra, etc.) built with phoenix in elixir
| ingress.hosts[0].paths[0].path | string | `"/"` | | | ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | | ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | | | ingress.tls | list | `[]` | |
| mirage.autoMigration | bool | `true` | |
| mirage.db.database | string | `""` | |
| mirage.db.existingSecret | string | `""` | |
| mirage.db.host | string | `""` | |
| mirage.db.password | string | `""` | |
| mirage.db.port | int | `5432` | |
| mirage.db.secretKeys.dbPasswordKey | string | `"user-password"` | |
| mirage.db.user | string | `""` | |
| mirage.hostBaseUrl | string | `"http://localhost/"` | | | mirage.hostBaseUrl | string | `"http://localhost/"` | |
| mirage.hydra.internal | string | `"http://hydra"` | | | mirage.hydra.internal | string | `"http://hydra"` | |
| mirage.keto.internal | string | `"http://keto"` | |
| mirage.kratos.external | string | `"http://kratos"` | | | mirage.kratos.external | string | `"http://kratos"` | |
| mirage.kratos.internal | string | `"http://kratos"` | | | mirage.kratos.internal | string | `"http://kratos"` | |
| mirage.secretName | string | `nil` | | | mirage.secretName | string | `nil` | |
@ -56,7 +40,6 @@ UI for the ory stack (kratos, hydra, etc.) built with phoenix in elixir
| nodeSelector | object | `{}` | | | nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | | | podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | | | podSecurityContext | object | `{}` | |
| postgres | object | `{}` | |
| replicaCount | int | `1` | | | replicaCount | int | `1` | |
| resources | object | `{}` | | | resources | object | `{}` | |
| securityContext | object | `{}` | | | securityContext | object | `{}` | |

View File

@ -27,50 +27,6 @@ spec:
serviceAccountName: {{ include "mirage.serviceAccountName" . }} serviceAccountName: {{ include "mirage.serviceAccountName" . }}
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.mirage.autoMigration }}
initContainers:
- name: {{ .Chart.Name }}-init
command: ["/app/bin/migrate"]
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: MIRAGE_SECRET_KEY_BASE
valueFrom:
secretKeyRef:
name: {{ .Values.mirage.secretName }}
key: secretKeyBase
- name: MIRAGE_HOST_BASE_URL
value: {{ .Values.mirage.hostBaseUrl }}
- name: MIRAGE_EXTERNAL_KRATOS_BASE_URL
value: {{ .Values.mirage.kratos.external }}
- name: MIRAGE_INTERNAL_KRATOS_BASE_URL
value: {{ .Values.mirage.kratos.internal }}
- name: MIRAGE_INTERNAL_HYDRA_BASE_URL
value: {{ .Values.mirage.hydra.internal }}
- name: MIRAGE_INTERNAL_KETO_BASE_URL
value: {{ .Values.mirage.keto.internal }}
- name: MIRAGE_DB_USER
value: {{ .Values.mirage.db.user }}
- name: MIRAGE_DB_PASSWORD
{{- if .Values.mirage.db.existingSecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.mirage.db.existingSecret }}
key: {{ .Values.mirage.db.secretKeys.dbPasswordKey }}
{{- else }}
value: {{ .Values.config.db.password }}
{{- end }}
- name: MIRAGE_DB_HOST
value: {{ .Values.mirage.db.host }}
- name: MIRAGE_DB_PORT
value: {{ .Values.mirage.db.port | quote }}
- name: MIRAGE_DB_NAME
value: {{ .Values.mirage.db.database | quote }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext:
@ -90,8 +46,6 @@ spec:
path: / path: /
port: http port: http
env: env:
- name: MIRAGE_CANARY
value: {{ .Values.mirage.canary }}
- name: MIRAGE_SECRET_KEY_BASE - name: MIRAGE_SECRET_KEY_BASE
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
@ -105,25 +59,6 @@ spec:
value: {{ .Values.mirage.kratos.internal }} value: {{ .Values.mirage.kratos.internal }}
- name: MIRAGE_INTERNAL_HYDRA_BASE_URL - name: MIRAGE_INTERNAL_HYDRA_BASE_URL
value: {{ .Values.mirage.hydra.internal }} value: {{ .Values.mirage.hydra.internal }}
- name: MIRAGE_INTERNAL_KETO_BASE_URL
value: {{ .Values.mirage.keto.internal }}
- name: MIRAGE_DB_USER
value: {{ .Values.mirage.db.user }}
- name: MIRAGE_DB_PASSWORD
{{- if .Values.mirage.db.existingSecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.mirage.db.existingSecret }}
key: {{ .Values.mirage.db.secretKeys.dbPasswordKey }}
{{- else }}
value: {{ .Values.config.db.password }}
{{- end }}
- name: MIRAGE_DB_HOST
value: {{ .Values.mirage.db.host }}
- name: MIRAGE_DB_PORT
value: {{ .Values.mirage.db.port | quote }}
- name: MIRAGE_DB_NAME
value: {{ .Values.mirage.db.database | quote }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}

View File

@ -81,29 +81,11 @@ tolerations: []
affinity: {} affinity: {}
global:
postgresqlEnabled: true
postgres: {}
mirage: mirage:
secretName: null secretName: null
hostBaseUrl: http://localhost/ hostBaseUrl: http://localhost/
autoMigration: true
db:
host: ""
port: 5432
user: ""
password: ""
database: ""
existingSecret: ""
secretKeys:
dbPasswordKey: user-password
kratos: kratos:
external: http://kratos external: http://kratos
internal: http://kratos internal: http://kratos
hydra: hydra:
internal: http://hydra internal: http://hydra
keto:
internal: http://keto