|
66 | 66 | fruit: apple
|
67 | 67 | key: "ca.crt"
|
68 | 68 |
|
| 69 | + # And another Secret source, but this time instead of specifying a key from the Secret data, |
| 70 | + # including all certificates from every key |
| 71 | + - secret: |
| 72 | + name: "my-regional-cas" |
| 73 | + includeAllKeys: true |
| 74 | + |
69 | 75 | # A ConfigMap in the "trust" namespace; see "Trust Namespace" below for further details
|
70 | 76 | - configMap:
|
71 | 77 | name: "my-org.net"
|
|
77 | 83 | matchLabels:
|
78 | 84 | fruit: apple
|
79 | 85 | key: "ca.crt"
|
| 86 | + |
| 87 | + # And another ConfigMap source, but this time instead of specifying a key from the ConfigMap data, |
| 88 | + # including all certificates from every key |
| 89 | + - secret: |
| 90 | + name: "my-org-cas" |
| 91 | + includeAllKeys: true |
80 | 92 |
|
81 | 93 | # A manually specified string
|
82 | 94 | - inLine: |
|
@@ -114,10 +126,17 @@ All sources and target options are documented in the trust-manager [API referenc
|
114 | 126 | - `inLine` - a manually specified string containing at least one certificate
|
115 | 127 | - `useDefaultCAs` - usually, a bundle of publicly trusted certificates
|
116 | 128 |
|
| 129 | +Both `ConfigMap` and `Secret`, support specifying a data key (`key`) that contains at least one certificate or use the |
| 130 | +`includeAllKeys` option to include all certificates from every key in the resource. The latter is useful in dynamic |
| 131 | +environments where key names are only known at runtime. When defining a `ConfigMap` or `Secret` source, the `key` and |
| 132 | +`includeAllKeys` fields are mutually exclusive: only one **must** be set, but not both. |
| 133 | + |
117 | 134 | Both `ConfigMap` and `Secret` also support specifying label selectors to select multiple resources at once, which is useful in dynamic
|
118 | 135 | environments where the name of the `ConfigMap` or `Secret` is known only at runtime. When adding a source, either of type `ConfigMap` or `Secret`,
|
119 | 136 | the fields `name` and `selector` are mutually exclusive: one **must** be set, but not both.
|
120 | 137 |
|
| 138 | +These features can be combined to, for instance, select all ConfigMaps with a specific label and include every |
| 139 | +certificate from each key within those ConfigMaps. |
121 | 140 |
|
122 | 141 | #### Targets
|
123 | 142 |
|
|
0 commit comments