Skip to content

Commit

Permalink
Patch CRDs conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
okozachenko1203 committed Aug 10, 2023
1 parent 9fb7509 commit 37f8f84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/cluster_api/tasks/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
# yamllint disable rule:line-length
- name: Set default values for imagePullPolicy in kubeadmConfigSpec of CRDs
changed_when: false
when: cluster_api_control_plane_version >= 1.4.0
ansible.builtin.command: |
kubectl patch crd {{ item.crd }} --type=json -p='[{"op": "add", "path": "{{ item.path }}", "value": "IfNotPresent"}]'
loop:
Expand Down

0 comments on commit 37f8f84

Please sign in to comment.