Skip to content

Commit

Permalink
Scoping for go test in pkg and cmd
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
  • Loading branch information
LiZhenCheng9527 committed Feb 1, 2024
1 parent 851e93a commit 1bb3d78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ gen-chart: sync-crds

.PHONY: test
test: clean tidy
go test ./...
go test ./pkg/...
go test ./cmd/...

.PHONY: clean
clean:
Expand Down
8 changes: 4 additions & 4 deletions hack/e2e-test/install-kurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ VERSION=$(echo "$COMMIT_ID" | grep -o '^[0-9]')

sleep 5s

VERSION=${VERSION} make docker
kind load docker-image ghcr.io/kurator-dev/cluster-operator:${VERSION} --name kurator-host
kind load docker-image ghcr.io/kurator-dev/fleet-manager:${VERSION} --name kurator-host

helm repo add jetstack https://charts.jetstack.io
helm repo update
kubectl create namespace cert-manager
Expand All @@ -35,6 +31,10 @@ EOF

sleep 5s

VERSION=${VERSION} make docker
kind load docker-image ghcr.io/kurator-dev/cluster-operator:${VERSION} --name kurator-host
kind load docker-image ghcr.io/kurator-dev/fleet-manager:${VERSION} --name kurator-host

VERSION=${VERSION} make gen-chart
cd out/charts
helm install --create-namespace kurator-cluster-operator cluster-operator-${VERSION}.tgz -n kurator-system
Expand Down

0 comments on commit 1bb3d78

Please sign in to comment.