Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
GO_VERSION: '1.23'
GOLANGCI_VERSION: 'v1.56'
KIND_VERSION: 'v0.29.0'
K8S_VERSION: 'v1.31.9'

jobs:

Expand Down Expand Up @@ -99,8 +100,8 @@ jobs:
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
version: v0.29.0
node_image: kindest/node:v1.31.9
version: ${{ env.KIND_VERSION }}
node_image: kindest/node:${{ env.K8S_VERSION }}
- name: Build Image
run: |
make image
Expand Down Expand Up @@ -144,8 +145,8 @@ jobs:
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
version: v0.29.0
node_image: kindest/node:v1.31.9
version: ${{ env.KIND_VERSION }}
node_image: kindest/node:${{ env.K8S_VERSION }}
- name: Prepare OCM testing environment
run: |
clusteradm init --output-join-command-file join.sh --wait
Expand All @@ -159,12 +160,15 @@ jobs:
kind load docker-image oamdev/cluster-gateway-addon-manager:latest --name chart-testing
- name: Install latest cluster-gateway
run: |
set -ex
helm install --create-namespace -n open-cluster-management-addon \
cluster-gateway ./charts/addon-manager \
--set tag=latest
go run ./e2e/env/prepare | kubectl apply -f -
kubectl rollout status deployment -n vela-system gateway-deployment --timeout 1m
kubectl wait --for=condition=Available apiservice/v1alpha1.cluster.core.oam.dev
kubectl wait --for=condition=Available apiservice/v1alpha1.cluster.core.oam.dev --timeout=300s
- name: Run e2e test
run: |
sleep 360
kubectl get clustergateways -A
make test-e2e-ocm
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ bin
# Kubernetes Generated files - skip generated files, except for vendored files

!vendor/**/zz_generated.*
join.sh

# editor and IDE paraphernalia
.vscode/
.idea
*.swp
*.swo
Expand Down
2 changes: 1 addition & 1 deletion charts/addon-manager/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Image of the cluster-gateway instances
# Specs of cluster-gateway-addon-manager deployment
image: oamdev/cluster-gateway-addon-manager

tag:
Expand Down
2 changes: 1 addition & 1 deletion charts/cluster-gateway/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Image of the cluster-gateway instances
# Specs of gateway-deployment deployment
image: oamdev/cluster-gateway

tag:
Expand Down
5 changes: 2 additions & 3 deletions e2e/ocm/clustergateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const (
ocmTestBasename = "ocm-addon"
)

var _ = Describe("Addon Manager Test", func() {
var _ = Describe("Addon Manager Test", Ordered, func() {
f := framework.NewE2EFramework(ocmTestBasename)
It("ClusterGateway addon installation should work",
func() {
Expand Down Expand Up @@ -53,8 +53,7 @@ var _ = Describe("Addon Manager Test", func() {
}
gwHealthy := gw.Status.Healthy
return addonHealthy && gwHealthy, nil
}).
WithTimeout(time.Minute).
}, 3*time.Minute, 20*time.Second).
Should(BeTrue())
})
It("Manual probe healthiness should work",
Expand Down
Loading