Skip to content

Commit 49082f5

Browse files
authored
ci: fix test main integration (#854)
- Run kind cloud provider to install Gateway API CRDs - Fix kof helm repo name
1 parent f6626ef commit 49082f5

2 files changed

Lines changed: 32 additions & 7 deletions

File tree

.github/workflows/build_images.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,20 @@ jobs:
6868
VERSION: ${{ steps.vars.outputs.version }}
6969
SKIP_SCM_RELEASE: true
7070
- name: Push
71+
env:
72+
REGISTRY: ghcr.io/${{ github.repository }}
73+
VERSION: ${{ steps.vars.outputs.version }}
7174
run: |
72-
docker push ghcr.io/${{ github.repository }}/kof-operator-controller:${{ steps.vars.outputs.version }}-arm64
73-
docker push ghcr.io/${{ github.repository }}/kof-operator-controller:${{ steps.vars.outputs.version }}-amd64
74-
docker manifest create \
75-
ghcr.io/${{ github.repository }}/kof-operator-controller:${{ steps.vars.outputs.version }} \
76-
--amend ghcr.io/${{ github.repository }}/kof-operator-controller:${{ steps.vars.outputs.version }}-arm64 \
77-
--amend ghcr.io/${{ github.repository }}/kof-operator-controller:${{ steps.vars.outputs.version }}-amd64
78-
docker manifest push ghcr.io/${{ github.repository }}/kof-operator-controller:${{ steps.vars.outputs.version }}
75+
push_image() {
76+
local repo="${REGISTRY}/$1"
77+
docker push "${repo}:${VERSION}-amd64"
78+
docker push "${repo}:${VERSION}-arm64"
79+
docker manifest create "${repo}:${VERSION}" \
80+
--amend "${repo}:${VERSION}-amd64" \
81+
--amend "${repo}:${VERSION}-arm64"
82+
docker manifest push "${repo}:${VERSION}"
83+
}
84+
85+
push_image kof-operator-controller
86+
push_image kof-acl-server
87+
push_image kof-opentelemetry-collector-contrib

.github/workflows/test_main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,29 @@ jobs:
118118
cat > kof-values.yaml <<EOF
119119
global:
120120
helmRepo:
121+
name: kof-repo
121122
kofManaged:
122123
enabled: true
123124
url: oci://ghcr.io/${repo_lower}/charts
125+
kof-mothership:
126+
values:
127+
kcm:
128+
kof:
129+
operator:
130+
image:
131+
registry: ghcr.io/k0rdent
132+
repository: kof/kof-operator-controller
133+
acl:
134+
enabled: false
135+
dex:
136+
enabled: false
124137
EOF
125138
echo "Generated kof-values.yaml:"
126139
cat kof-values.yaml
127140
141+
- name: Run KIND cloud provider
142+
run: docker run -d --rm --network kind -v /var/run/docker.sock:/var/run/docker.sock registry.k8s.io/cloud-provider-kind/cloud-controller-manager:v0.10.0
143+
128144
- name: Install KOF
129145
run: |
130146
repo_lower=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')

0 commit comments

Comments
 (0)