feat(talos): Allow users to include talhelper patches (#1320)
* feat(talos): Allow users to include talhelper patches * feat(talos): Add user talhelper patches to example config * fix: Missing talos user_patches check on workers block
This commit is contained in:
1 parent
840506cea7
commit
025f5ddedf
2 files changed
+29
No files matched your search
@@ -75,6 +75,10 @@ nodes:
|
||||
ip: "{{ cluster.endpoint_vip }}"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if distribution.talos.user_patches %}
|
||||
patches:
|
||||
- "@./patches/node_{{ item.name }}.yaml"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
patches:
|
||||
@@ -183,6 +187,10 @@ patches:
|
||||
- slot: 0
|
||||
tpm: {}
|
||||
{% endif %}
|
||||
{% if distribution.talos.user_patches %}
|
||||
# User specified global patches
|
||||
- "@./patches/global.yaml"
|
||||
{% endif %}
|
||||
|
||||
controlPlane:
|
||||
patches:
|
||||
@@ -224,3 +232,15 @@ controlPlane:
|
||||
allowedKubernetesNamespaces:
|
||||
- system-upgrade
|
||||
|
||||
{% if distribution.talos.user_patches %}
|
||||
# User specified controlPlane patches
|
||||
- "@./patches/controlPlane.yaml"
|
||||
{% endif %}
|
||||
|
||||
{% if ( (distribution.talos.user_patches) and
|
||||
(nodes.inventory | selectattr('controller', 'equalto', False) | list | length) ) %}
|
||||
worker:
|
||||
patches:
|
||||
# User specified worker patches
|
||||
- "@./patches/worker.yaml"
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user