19
19
20
20
jobs :
21
21
smoke-test :
22
- name : Smoke Test (${{ matrix.install-method }})
23
22
runs-on : ubuntu-latest
24
- strategy :
25
- matrix :
26
- install-method : [legacy, recommended]
27
23
steps :
28
24
- name : Checkout code
29
25
uses : actions/checkout@v4
97
93
--wait \
98
94
--timeout 5m
99
95
100
- - name : Install Cluster API Operator (Recommended)
101
- if : matrix.install-method == 'recommended'
96
+ - name : Install Cluster API Operator
102
97
run : |
103
98
CHART_PACKAGE="out/package/cluster-api-operator-${HELM_CHART_TAG}.tgz"
104
99
helm install capi-operator "$CHART_PACKAGE" \
@@ -110,7 +105,7 @@ jobs:
110
105
--wait \
111
106
--timeout 90s
112
107
113
- - name : Prepare providers values
108
+ - name : Deploy providers
114
109
run : |
115
110
cat <<EOF > /tmp/providers-values.yaml
116
111
core:
@@ -138,40 +133,13 @@ jobs:
138
133
ClusterTopology: true
139
134
EOF
140
135
141
- # Add cluster-api-operator configuration for legacy installation
142
- if [ "${{ matrix.install-method }}" = "legacy" ]; then
143
- cat <<EOF >> /tmp/providers-values.yaml
144
- cluster-api-operator:
145
- install: true
146
- image:
147
- manager:
148
- repository: ${CONTROLLER_IMG}
149
- tag: ${TAG}
150
- pullPolicy: IfNotPresent
151
- EOF
152
- fi
153
-
154
- - name : Deploy providers (Recommended)
155
- if : matrix.install-method == 'recommended'
156
- run : |
157
136
PROVIDERS_CHART_PACKAGE="out/package/cluster-api-operator-providers-${HELM_CHART_TAG}.tgz"
158
137
helm install capi-providers "$PROVIDERS_CHART_PACKAGE" \
159
138
-f /tmp/providers-values.yaml \
160
139
--set cluster-api-operator.install=false \
161
140
--set enableHelmHook=false \
162
141
--wait
163
142
164
- - name : Deploy providers (Legacy)
165
- if : matrix.install-method == 'legacy'
166
- run : |
167
- PROVIDERS_CHART_PACKAGE="out/package/cluster-api-operator-providers-${HELM_CHART_TAG}.tgz"
168
- helm install capi-providers "$PROVIDERS_CHART_PACKAGE" \
169
- --create-namespace \
170
- -n capi-operator-system \
171
- -f /tmp/providers-values.yaml \
172
- --wait \
173
- --timeout 300s
174
-
175
143
- name : Wait for providers
176
144
run : |
177
145
kubectl wait --for=condition=Ready --timeout=300s -n capi-system coreprovider/cluster-api
@@ -233,7 +201,6 @@ jobs:
233
201
- name : Collect logs on failure
234
202
if : failure()
235
203
run : |
236
- echo "=== Installation Method: ${{ matrix.install-method }} ==="
237
204
echo "=== Recent Events ==="
238
205
kubectl get events -A --sort-by='.lastTimestamp' | tail -50
239
206
0 commit comments