Skip to content

Commit f75c61d

Browse files
committed
fix: Remove providers dependency and verify E2E only with operator chart
Signed-off-by: kahirokunn <[email protected]>
1 parent 9d87313 commit f75c61d

File tree

6 files changed

+23
-875
lines changed

6 files changed

+23
-875
lines changed

.github/workflows/smoke-test.yaml

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ env:
1919

2020
jobs:
2121
smoke-test:
22-
name: Smoke Test (${{ matrix.install-method }})
2322
runs-on: ubuntu-latest
24-
strategy:
25-
matrix:
26-
install-method: [legacy, recommended]
2723
steps:
2824
- name: Checkout code
2925
uses: actions/checkout@v4
@@ -97,8 +93,7 @@ jobs:
9793
--wait \
9894
--timeout 5m
9995
100-
- name: Install Cluster API Operator (Recommended)
101-
if: matrix.install-method == 'recommended'
96+
- name: Install Cluster API Operator
10297
run: |
10398
CHART_PACKAGE="out/package/cluster-api-operator-${HELM_CHART_TAG}.tgz"
10499
helm install capi-operator "$CHART_PACKAGE" \
@@ -110,7 +105,7 @@ jobs:
110105
--wait \
111106
--timeout 90s
112107
113-
- name: Prepare providers values
108+
- name: Deploy providers
114109
run: |
115110
cat <<EOF > /tmp/providers-values.yaml
116111
core:
@@ -138,40 +133,13 @@ jobs:
138133
ClusterTopology: true
139134
EOF
140135
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: |
157136
PROVIDERS_CHART_PACKAGE="out/package/cluster-api-operator-providers-${HELM_CHART_TAG}.tgz"
158137
helm install capi-providers "$PROVIDERS_CHART_PACKAGE" \
159138
-f /tmp/providers-values.yaml \
160139
--set cluster-api-operator.install=false \
161140
--set enableHelmHook=false \
162141
--wait
163142
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-
175143
- name: Wait for providers
176144
run: |
177145
kubectl wait --for=condition=Ready --timeout=300s -n capi-system coreprovider/cluster-api
@@ -233,7 +201,6 @@ jobs:
233201
- name: Collect logs on failure
234202
if: failure()
235203
run: |
236-
echo "=== Installation Method: ${{ matrix.install-method }} ==="
237204
echo "=== Recent Events ==="
238205
kubectl get events -A --sort-by='.lastTimestamp' | tail -50
239206

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ PROD_REGISTRY ?= registry.k8s.io/capi-operator
149149

150150
# Image name
151151
IMAGE_NAME ?= cluster-api-operator
152-
PACKAGE_NAME = cluster-api-operator-providers
152+
PACKAGE_NAME = cluster-api-operator
153153
CONTROLLER_IMG ?= $(REGISTRY)/$(IMAGE_NAME)
154154
CONTROLLER_IMG_TAG ?= $(CONTROLLER_IMG)-$(ARCH):$(TAG)
155155

@@ -497,7 +497,6 @@ release-chart: $(HELM) $(KUSTOMIZE) $(RELEASE_DIR) $(CHART_DIR) $(CHART_PROVIDER
497497

498498
# Processing the cluster-api-operator-providers chart
499499
cp -rf $(ROOT)/hack/charts/cluster-api-operator-providers/. $(CHART_PROVIDERS_DIR)
500-
$(HELM) dependency update $(CHART_PROVIDERS_DIR)
501500
$(HELM) package $(CHART_PROVIDERS_DIR) --app-version=$(HELM_CHART_TAG) --version=$(HELM_CHART_TAG) --destination=$(CHART_PACKAGE_DIR)
502501

503502
.PHONY: release-staging
@@ -571,7 +570,7 @@ test-e2e-run: $(GINKGO) $(ENVSUBST) $(HELM) ## Run e2e tests
571570
-e2e.artifacts-folder="$(ARTIFACTS)" \
572571
-e2e.config="$(E2E_CONF_FILE_ENVSUBST)" -e2e.components=$(RELEASE_DIR)/operator-components.yaml \
573572
-e2e.skip-resource-cleanup=$(SKIP_CLEANUP) -e2e.use-existing-cluster=$(SKIP_CREATE_MGMT_CLUSTER) \
574-
-e2e.helm-binary-path=$(HELM) -e2e.chart-path=$(CHART_PACKAGE_DIR)/cluster-api-operator-providers-$(HELM_CHART_TAG).tgz $(E2E_ARGS)
573+
-e2e.helm-binary-path=$(HELM) -e2e.chart-path=$(CHART_PACKAGE_DIR)/cluster-api-operator-$(HELM_CHART_TAG).tgz $(E2E_ARGS)
575574

576575
go-version: ## Print the go version we use to compile our binaries and images
577576
@echo $(GO_VERSION)

hack/charts/cluster-api-operator-providers/Chart.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,3 @@ description: Cluster API Provider Custom Resources
44
type: application
55
version: 0.0.0
66
appVersion: "0.0.0"
7-
dependencies:
8-
- name: cluster-api-operator
9-
repository: file://../cluster-api-operator
10-
version: 0.0.0
11-
condition: cluster-api-operator.install

0 commit comments

Comments
 (0)