Repository navigation
Commit 98d5c8b
authored
feat(kubernetes-nodes)!: render registry mirrors and their TLS settings as Talos documents
A pool could mirror a registry but could not tell its workers to trust
the mirror's CA or skip verification, so an in-cluster mirror served by
an internal CA was unusable: the worker's pulls failed on x509.
talos.registryMirrors now renders one RegistryMirrorConfig document per
host and the new talos.registryConfig one RegistryTLSConfig per endpoint
that sets tls.ca or tls.insecureSkipVerify. The deprecated
machine.registries section is no longer rendered. Both document kinds
exist from Talos 1.12, so a pool that resolves to an older release and
would render one now fails the render, naming the pool and the release.
That is breaking for a pool on Talos below 1.12 that already sets
registryMirrors: it rendered before and does not now, while its running
workers are untouched. Pools without mirrors and TLS settings render
what they rendered before.
What the old passthrough handed to the node unchecked is refused at
render: switches take true or false, endpoints are a list of non-empty
strings, and tls.ca must be a plain PEM certificate, through the shared
validator that also refuses private key material. Credentials and
client identity are refused rather than ignored, because the rendered
text is stored in the tenant namespace. A tls block that is false, 0, an
empty string or an empty list is refused too instead of being read as
empty, and so is a host or endpoint written as a URL, which Talos never
matches to a pull.
A pool that sets registryMirrors gets a new TalosConfigTemplate and its
workers roll, because the rendered machine config changes. The pool
chart's own text now says that only talos.version is kept in step with
the parent chart.
Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <[email protected]>1 parent cc807af commit 98d5c8b
9 files changed
Lines changed: 870 additions & 47 deletions
File tree
- api/apps/v1alpha1/kubernetesnodes
- hack
- packages
- apps/kubernetes-nodes
- templates
- tests
- system/kubernetes-nodes-rd/cozyrds
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
150 | 214 | | |
151 | 215 | | |
152 | 216 | | |
| |||
0 commit comments