Repository navigation
Commit f80f803
committed
fix(nebariapp): render auth and landingPage blocks via toYaml passthrough
templates/nebariapp.yaml hand-rendered the auth block field-by-field,
covering only 5 of the 14 fields the NebariApp.spec.auth CRD defines.
The other 9 (enforceAtGateway, clientSecretRef, denyRedirect,
deviceFlowClient, groups, issuerURL, keycloakConfig, spaClient,
tokenExchange) were silently dropped if a user tried to set them via
values, forcing post-hoc kubectl patches to communicate fields the
chart didn't expose.
The landingPage block had the same shape: every sub-field hand-rendered,
so any CRD addition would be silently dropped until the template caught
up.
Switch both blocks to `toYaml | nindent 4` passthrough, matching what
the neighboring `routing` block already does. Every CRD field is now
addressable from values.yaml. The JupyterHub-specific defaults
(enabled: true, redirectURI: /hub/oauth_callback, enforceAtGateway:
false, forwardAccessToken: false, the standard scopes set, landingPage
defaults, healthCheck config) all live in values.yaml already, so the
default chain is unchanged for users who don't override.
Verified with `helm template`: rendered NebariApp.spec matches the
previous output field-for-field; only field ordering differs because
toYaml emits sorted keys.
Fixes #57.1 parent 748bdd5 commit f80f803
1 file changed
Lines changed: 2 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 20 | + | |
38 | 21 | | |
39 | 22 | | |
40 | 23 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 24 | + | |
73 | 25 | | |
74 | 26 | | |
0 commit comments