Examples of configuration snippet lists or arrays
Lists and arrays in {product-title} configuration snippets are overwritten, not merged.
For example, you can replace a SAN or list of SANs by creating an additional snippet for the same field that is read after the first:
- MicroShift configuration directory contents
-
/etc/microshift/config.yaml.defaultor/etc/microshift/config.yaml - Example MicroShift configuration snippet directory contents
-
/etc/microshift/config.d/10-san.yamland/etc/microshift/config.d/20-san.yaml
Example
10-san.yaml snippetapiServer:
subjectAltNames:
- host1
- host2
Example
20-san.yaml snippetapiServer:
subjectAltNames:
- hostZ
Example configuration result
apiServer:
subjectAltNames:
- hostZ
If you want to add a value to an existing list, you can add it to an existing snippet. For example, to add hostZ to an existing list of SANs, edit the snippet you have instead of creating a new one:
Example
10-san.yaml snippetapiServer:
subjectAltNames:
- host1
- host2
- hostZ
Example configuration result
apiServer:
subjectAltNames:
- host1
- host2
- hostZ