Skip to content
Closed
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
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,16 @@ install-docker-buildx: ## Create `docker buildx` builder.
echo "Buildx builder $(BUILDX_BUILDER) already exists"; \
fi

GOLANGCILINT_VERSION ?= v2.8.0
GOLANGCILINT_EXPECTED_VERSION = $(patsubst v%,%,$(GOLANGCILINT_VERSION))
GOLANGCILINT_GOBIN_VERSION = $(shell [ -x "$(GOBIN)/golangci-lint" ] && $(GOBIN)/golangci-lint version 2>/dev/null | sed -n 's/.*version \([0-9.]*\).*/\1/p' | head -1)

.PHONY: golangci
golangci: GOLANGCILINT_VERSION = v2.8.0
golangci: ## Download golangci-lint locally if necessary.
ifeq ($(shell golangci-lint version >/dev/null 2>&1 && echo ok),ok)
@echo golangci-lint is already installed
GOLANGCILINT=$(shell which golangci-lint)
else ifeq (, $(shell which $(GOBIN)/golangci-lint))
ifeq ($(GOLANGCILINT_EXPECTED_VERSION),$(GOLANGCILINT_GOBIN_VERSION))
@echo golangci-lint $(GOLANGCILINT_VERSION) is already installed
GOLANGCILINT=$(GOBIN)/golangci-lint
else
@{ \
set -e ;\
echo 'installing golangci-lint-$(GOLANGCILINT_VERSION)' ;\
Expand All @@ -273,9 +276,6 @@ else ifeq (, $(shell which $(GOBIN)/golangci-lint))
echo 'Successfully installed' ;\
}
GOLANGCILINT=$(GOBIN)/golangci-lint
else
@echo golangci-lint is already installed
GOLANGCILINT=$(GOBIN)/golangci-lint
endif

.PHONY: staticchecktool
Expand Down
203 changes: 110 additions & 93 deletions go.mod

Large diffs are not rendered by default.

551 changes: 242 additions & 309 deletions go.sum

Large diffs are not rendered by default.

20 changes: 0 additions & 20 deletions pkg/cmd/kubeblocks/data/ack_hostpreflight.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions pkg/cmd/kubeblocks/data/ack_preflight.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions pkg/cmd/kubeblocks/data/eks_hostpreflight.yaml

This file was deleted.

65 changes: 0 additions & 65 deletions pkg/cmd/kubeblocks/data/eks_preflight.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions pkg/cmd/kubeblocks/data/gke_hostpreflight.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions pkg/cmd/kubeblocks/data/gke_preflight.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions pkg/cmd/kubeblocks/data/kubeblocks_base_preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,3 @@ spec:
message: The volumesnapshotcontents CRD was not found in the cluster.
- pass:
message: volumesnapshotcontents is installed.
extendAnalyzers:
- clusterAccess:
checkName: Check-K8S-Access
outcomes:
- fail:
message: K8s cluster access fail
- pass:
message: K8s cluster access ok
- taint:
checkName: Required-Taint-Match
outcomes:
- fail:
message: All nodes had taints that the pod didn't tolerate
- pass:
message: The taint matching succeeded
- storageClass:
checkName: Required-Default-SC
outcomes:
- warn:
message: The default storage class was not found. You can use option --set storageClass=<storageClassName> when creating cluster
- pass:
message: Default storage class is the presence, and all good on storage classes
20 changes: 0 additions & 20 deletions pkg/cmd/kubeblocks/data/tke_hostpreflight.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions pkg/cmd/kubeblocks/data/tke_preflight.yaml

This file was deleted.

Loading
Loading