Skip to content

Commit

Permalink
Fix CI issue with CAPI controller manager
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Makhov <amakhov@mirantis.com>
  • Loading branch information
makhov committed Dec 13, 2024
1 parent ca3e267 commit 1a81c77
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/capi-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
name: kind
version: v0.24.0
uri: https://github.com/kubernetes-sigs/kind/releases/download/v0.24.0/kind-linux-amd64

- name: Install support-bundle
run: |
curl --proto '=https' --tlsv1.2 -L https://github.com/replicatedhq/troubleshoot/releases/download/v0.107.0/support-bundle_linux_amd64.tar.gz \
Expand Down Expand Up @@ -80,10 +80,16 @@ jobs:
- name: Install cluster api components
run: |
clusterctl init --control-plane k0sproject-k0smotron --bootstrap k0sproject-k0smotron --infrastructure k0sproject-k0smotron,docker --config config.yaml
kubectl scale -n capi-system deployment/capi-controller-manager --replicas=0
kubectl wait --for=condition=delete -n capi-system pod -l cluster.x-k8s.io/provider=cluster-api --timeout=5m
kubectl patch -n capi-system deployment/capi-controller-manager -p \
'{"spec":{"template":{"spec":{"containers":[{"name":"manager","args":["--leader-elect", "--metrics-bind-addr=localhost:8080", "--feature-gates=ClusterTopology=true"]}]}}}}'
'{"spec":{"template":{"spec":{"containers":[{"name":"manager","args":["--leader-elect", "--diagnostics-address=:8443", "--insecure-diagnostics=false", "--use-deprecated-infra-machine-naming=false", "--feature-gates=MachinePool=true,ClusterResourceSet=true,ClusterTopology=true,RuntimeSDK=false,MachineSetPreflightChecks=true,MachineWaitForVolumeDetachConsiderVolumeAttachments=true"]}]}}}}'
kubectl patch -n capd-system deployment/capd-controller-manager -p \
'{"spec":{"template":{"spec":{"containers":[{"name":"manager","args":["--leader-elect", "--metrics-bind-addr=localhost:8080", "--feature-gates=ClusterTopology=true"]}]}}}}'
'{"spec":{"template":{"spec":{"containers":[{"name":"manager","args":["--leader-elect", "--diagnostics-address=:8443", "--insecure-diagnostics=false", "--feature-gates=MachinePool=true,ClusterTopology=false"]}]}}}}'
kubectl scale -n capi-system deployment/capi-controller-manager --replicas=1
kubectl wait --for=condition=Ready -n capi-system pod -l cluster.x-k8s.io/provider=cluster-api --timeout=5m
- name: Install PVC provider
run: |
Expand Down

0 comments on commit 1a81c77

Please sign in to comment.