Skip to content

Commit 8df8ea2

Browse files
committed
schema: Allow scDomain and scOpsDomain to be empty strings
They default to the empty string. Templates fail to render if the fields are omitted entirely. Thus this compromise.
1 parent 8b896fe commit 8df8ea2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

config/schemas/config.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ properties:
2929
- ck8sFlavor
3030
- baseDomain
3131
- opsDomain
32+
- scDomain
33+
- scOpsDomain
3234
properties:
3335
ck8sVersion:
3436
title: Compliantkubernetes-apps version
@@ -74,11 +76,15 @@ properties:
7476
scDomain:
7577
description: If baseDomain for wc and sc are not the same, set the domain of the sc cluster.
7678
type: string
77-
format: hostname
79+
oneOf: # Templates do not handle missing values so they must be empty strings to disable. Future FIXME?
80+
- const: ""
81+
- format: hostname
7882
scOpsDomain:
7983
description: If baseDomain for wc and sc are not the same, set the domain of the sc cluster.
8084
type: string
81-
format: hostname
85+
oneOf:
86+
- const: ""
87+
- format: hostname
8288
issuer:
8389
description: |-
8490
Default cert-manager issuer to use for issuing certificates for ingresses.

0 commit comments

Comments
 (0)