mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * microshift_configuring/microshift-config-snippets.adoc
|
|
|
|
:_mod-docs-content-type: CONCEPT
|
|
[id="microshift-ex-config-snippets-lists_{context}"]
|
|
= Examples of configuration snippet lists or arrays
|
|
|
|
Lists, or arrays, are not merged, they are overwritten. 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-short} configuration directory contents
|
|
* `/etc/microshift/config.yaml.default` or `/etc/microshift/config.yaml`
|
|
|
|
.Example {microshift-short} configuration snippet directory contents
|
|
* `/etc/microshift/config.d/10-san.yaml`
|
|
* `/etc/microshift/config.d/20-san.yaml`
|
|
+
|
|
.Example `10-san.yaml` snippet
|
|
[source,yaml]
|
|
----
|
|
apiServer:
|
|
subjectAltNames:
|
|
- host1
|
|
- host2
|
|
----
|
|
+
|
|
.Example `20-san.yaml` snippet
|
|
[source,yaml]
|
|
----
|
|
apiServer:
|
|
subjectAltNames:
|
|
- hostZ
|
|
----
|
|
+
|
|
.Example configuration result
|
|
[source,yaml]
|
|
----
|
|
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` snippet
|
|
[source,yaml]
|
|
----
|
|
apiServer:
|
|
subjectAltNames:
|
|
- host1
|
|
- host2
|
|
- hostZ
|
|
----
|
|
|
|
.Example configuration result
|
|
[source,yaml]
|
|
----
|
|
apiServer:
|
|
subjectAltNames:
|
|
- host1
|
|
- host2
|
|
- hostZ
|
|
----
|