Examples of mixed configuration snippets

When you use mixed configuration snippets in {product-title}, object fields merge and the last-read snippet replaces list values. File order controls which list entries apply.

In the following example, the values of both advertiseAddress and auditLog.maxFileAge fields merge into the configuration, but only the c.com and d.com subjectAltNames values are retained. This happens because the numbering in the filename indicates that the c.com and d.com values are higher priority.

Example 10-advertiseAddress.yaml snippet
apiServer:
  advertiseAddress: "microshift-example"
Example 20-audit-log.yaml snippet
apiServer:
  auditLog:
    maxFileAge: 12
Example 30-SAN.yaml snippet
apiServer:
  subjectAltNames:
    - a.com
    - b.com
Example 40-SAN.yaml snippet
apiServer:
  subjectAltNames:
    - c.com
    - d.com
Example configuration result
apiServer:
  advertiseAddress: "microshift-example"
  auditLog:
    maxFileAge: 12
  subjectAltNames:
    - c.com
    - d.com