Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release 0.6.0 #7

Merged
merged 7 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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
45 changes: 45 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: E2E Test

on:
push:
branches:
- master
- release-*
tags:
- v*
workflow_dispatch: { }
pull_request:
branches:
- master
- release-*

jobs:
e2e-test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install tools
run: |
sudo apt-get update
sudo snap install kubectl --classic

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19

- name: Install dependencies
run: go mod download

- name: Setup KinD
run: |
go install sigs.k8s.io/[email protected]
kind delete cluster || true
kind create cluster
kubectl apply -f https://raw.githubusercontent.com/openkruise/rollouts/refs/heads/master/config/crd/bases/rollouts.kruise.io_rollouts.yaml

- name: Run E2E tests
run: go test -v ./tests/e2e/...
25 changes: 25 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ else
GOBIN=$(shell go env GOBIN)
endif

KIND_VERSION ?= v0.18.0
CLUSTER_NAME ?= rollout-ci-testing

# Run go vet against code
vet:
go vet ./...
Expand Down Expand Up @@ -47,6 +50,28 @@ rm -rf $$TMP_DIR ;\
}
endef

ensure-kind:
ifeq ("$(shell command -v $(PROJECT_DIR)/bin/kind 2> /dev/null)", "")
@echo "Downloading kind version $(KIND_VERSION)"
GOBIN=$(PROJECT_DIR)/bin go install sigs.k8s.io/kind@$(KIND_VERSION)
else
@echo "kind is already installed."
endif

delete-cluster: ensure-kind
@echo "Deleting kind cluster $(CLUSTER_NAME) if it exists"
bin/kind delete cluster --name $(CLUSTER_NAME) || true

create-cluster: ensure-kind
bin/kind create cluster --name $(CLUSTER_NAME)

.PHONY: run-e2e-test
run-e2e-test:
@echo "Installing Rollouts CRDs"
kubectl apply -f https://raw.githubusercontent.com/openkruise/rollouts/refs/heads/master/config/crd/bases/rollouts.kruise.io_rollouts.yaml
@echo "Running E2E tests"
go test -v ./tests/e2e/...

.PHONY: gen-schema-only
gen-schema-only:
go run cmd/gen-schema/main.go
Expand Down
3 changes: 1 addition & 2 deletions client/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

195 changes: 195 additions & 0 deletions client/clientset/versioned/typed/rollouts/v1alpha1/batchrelease.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading