best-kangaroo-27443
12/16/2022, 11:18 PMvalues.yaml
the chart doesnt render as expected:
kratos:
config:
courier:
smtp:
connection_uri: "<smtps://test:test@mailslurper:1025/?skip_ssl_verify=true>"
foo: bar
the resulting configmap is this:
# Source: kratos/templates/configmap-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: release-name-kratos-config
namespace: default
labels:
<http://app.kubernetes.io/name|app.kubernetes.io/name>: kratos
<http://helm.sh/chart|helm.sh/chart>: kratos-0.26.3
<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: release-name
<http://app.kubernetes.io/version|app.kubernetes.io/version>: "v0.10.1"
<http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: Helm
annotations:
data:
# Render the kratos config:
"kratos.yaml": |
courier:
smtp:
foo: bar
...
It seems the random foo
value was added, but the necessary smtp.connection_uri was not. any idea what might be happening?worried-kitchen-94392
12/17/2022, 12:27 PMbest-kangaroo-27443
12/17/2022, 6:44 PMapiVersion: v1
data:
dsn: ....
secretsCipher: ...
secretsCookie: ...
secretsDefault: ...
kind: Secret
metadata:
...
type: Opaque
It does not seem to be present and in fact my kratos pod is not starting:
kubectl logs -n kratos local-kratos-6786d7456d-n7dgf
The configuration contains values or keys which are invalid:
The configuration contains values or keys which are invalid:
identity.schemas: <nil>
^-- one or more required properties are missing
The configuration contains values or keys which are invalid:
courier.smtp.connection_uri: <nil>
^-- one or more required properties are missing
The configuration contains values or keys which are invalid:
selfservice.default_browser_return_url: <nil>
^-- one or more required properties are missing
time=2022-12-17T18:39:23Z level=fatal msg=Unable to instantiate configuration. audience=application error=map[message:I[#] S[#] validation failed
I[#/identity] S[#/properties/identity/required] missing properties: "schemas"
I[#/courier/smtp] S[#/properties/courier/properties/smtp/required] missing properties: "connection_uri"
I[#/selfservice] S[#/properties/selfservice/required] missing properties: "default_browser_return_url"] service_name=Ory Kratos service_version=v0.10.1
I can’t for the life of me figure out why my values.yaml
isnt rendering correctly and have been trying every which way to get it to workbest-kangaroo-27443
12/20/2022, 1:53 AMworried-kitchen-94392
12/20/2022, 7:20 AMworried-kitchen-94392
12/20/2022, 7:21 AMworried-kitchen-94392
12/20/2022, 7:29 AMhelm install kratos ./helm/charts/kratos -f hacks/values/kratos.yaml --debug --atomic
works and produces a secret with the sample values
apiVersion: v1
data:
dsn: cG9zdGdyZXM6Ly9wb3N0Z3JlczpvcnlAcG9zdGdyZXNxbC5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsL29yeV9rcmF0b3M/c3NsbW9kZT1kaXNhYmxlJm1heF9jb25uX2xpZmV0aW1lPTEwcw==
secretsCipher: UFJpVkQzQVlCUFhYMW1tZzJUdnhFbElFM1JVeGpxb0Y=
secretsCookie: UkJUR0RFU0lSeTAyeWlGMW5JdXlpOTFzd0hmdVlKZ0E=
secretsDefault: IlBMRUFTRS1DSEFOR0UtTUUtSS1BTS1WRVJZLUlOU0VDVVJFIiwiT0c1WGJteFhhM2RZZUdwbFFYcFFhbll4ZUVGdVJVRmEiLCJmb28gYmFyIDEyMyA0NTYgbG9yZW0iLCJmb28gYmFyIDEyMyA0NTYgbG9yZW0gMSIsImZvbyBiYXIgMTIzIDQ1NiBsb3JlbSAyIiwiZm9vIGJhciAxMjMgNDU2IGxvcmVtIDMi
smtpConnectionURI: c210cHM6Ly90ZXN0OnRlc3RAbWFpbHNsdXJwZXI6MTAyNS8/c2tpcF9zc2xfdmVyaWZ5PXRydWU=
kind: Secret
metadata:
annotations:
<http://helm.sh/hook|helm.sh/hook>: pre-install, pre-upgrade
<http://helm.sh/hook-delete-policy|helm.sh/hook-delete-policy>: before-hook-creation
<http://helm.sh/hook-weight|helm.sh/hook-weight>: "0"
<http://helm.sh/resource-policy|helm.sh/resource-policy>: keep
creationTimestamp: "2022-12-20T07:27:43Z"
labels:
<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: kratos
<http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: Helm
<http://app.kubernetes.io/name|app.kubernetes.io/name>: kratos
<http://app.kubernetes.io/version|app.kubernetes.io/version>: v0.10.1
<http://helm.sh/chart|helm.sh/chart>: kratos-0.26.5
<http://ory.sh/watcher|ory.sh/watcher>: kratos
name: kratos
namespace: default
resourceVersion: "1123"
uid: e35afa9f-8d32-4bc1-afe8-746c37f11072
type: Opaque
worried-kitchen-94392
12/20/2022, 7:30 AMworried-kitchen-94392
12/20/2022, 7:31 AMbest-kangaroo-27443
12/21/2022, 12:10 PMbest-kangaroo-27443
12/21/2022, 12:23 PMworried-kitchen-94392
12/23/2022, 2:20 PMbest-kangaroo-27443
12/23/2022, 2:24 PMbest-kangaroo-27443
12/23/2022, 2:25 PM