Skip to content

Commit cede08f

Browse files
committed
update kustomize and golangci-lint
Signed-off-by: cpanato <[email protected]>
1 parent a57a353 commit cede08f

File tree

5 files changed

+17
-65
lines changed

5 files changed

+17
-65
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
- name: golangci-lint
1919
uses: golangci/golangci-lint-action@v3
2020
with:
21-
version: "v1.55"
21+
version: v1.56

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ENVSUBST_VER := v1.4.2
7171
ENVSUBST_BIN := envsubst
7272
ENVSUBST := $(TOOLS_BIN_DIR)/$(ENVSUBST_BIN)
7373

74-
GOLANGCI_LINT_VER := v1.55.2
74+
GOLANGCI_LINT_VER := v1.56.2
7575
GOLANGCI_LINT_BIN := golangci-lint
7676
GOLANGCI_LINT := $(TOOLS_BIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER)
7777

@@ -176,7 +176,7 @@ SKIP_CLEANUP ?= false
176176
SKIP_CREATE_MGMT_CLUSTER ?= false
177177

178178
.PHONY: test-e2e-run
179-
test-e2e-run: $(ENVSUBST) $(KUBECTL) $(GINKGO) e2e-image ## Run the end-to-end tests
179+
test-e2e-run: $(ENVSUBST) $(KUSTOMIZE) $(KUBECTL) $(GINKGO) e2e-image ## Run the end-to-end tests
180180
$(ENVSUBST) < $(E2E_CONF_FILE) > $(E2E_CONF_FILE_ENVSUBST) && \
181181
time $(GINKGO) -v --trace -poll-progress-after=$(GINKGO_POLL_PROGRESS_AFTER) -poll-progress-interval=$(GINKGO_POLL_PROGRESS_INTERVAL) \
182182
--tags=e2e --focus="$(GINKGO_FOCUS)" -skip="$(GINKGO_SKIP)" --nodes=$(GINKGO_NODES) --no-color=$(GINKGO_NOCOLOR) \
@@ -199,7 +199,7 @@ test-junit: $(SETUP_ENVTEST) $(GOTESTSUM) ## Run tests with verbose setting and
199199
exit $$(cat $(ARTIFACTS)/junit.exitcode)
200200

201201
.PHONY: test-e2e
202-
test-e2e: ## Run the end-to-end tests
202+
test-e2e: $(KUSTOMIZE) ## Run the end-to-end tests
203203
$(MAKE) test-e2e-run
204204

205205
LOCAL_GINKGO_ARGS ?=
@@ -214,7 +214,7 @@ test-e2e-local: ## Run e2e tests
214214
CONFORMANCE_E2E_ARGS ?= -kubetest.config-file=$(KUBETEST_CONF_PATH)
215215
CONFORMANCE_E2E_ARGS += $(E2E_ARGS)
216216
.PHONY: test-conformance
217-
test-conformance: ## Run conformance test on workload cluster.
217+
test-conformance: $(KUSTOMIZE) ## Run conformance test on workload cluster.
218218
$(MAKE) test-e2e-run GINKGO_FOCUS="Conformance Tests" E2E_ARGS='$(CONFORMANCE_E2E_ARGS)' GINKGO_ARGS='$(LOCAL_GINKGO_ARGS)'
219219

220220
## --------------------------------------
@@ -287,6 +287,8 @@ $(GO_APIDIFF_BIN): $(GO_APIDIFF)
287287
.PHONY: $(KIND_BIN)
288288
$(KIND_BIN): $(KIND) ## Building Kind from tools folder
289289

290+
.PHONY: $(KUSTOMIZE_BIN)
291+
$(KUSTOMIZE_BIN): $(KUSTOMIZE) ## Building kustomize from tools folder
290292

291293
## --------------------------------------
292294
## Linting

hack/ensure-kustomize.sh

Lines changed: 0 additions & 54 deletions
This file was deleted.

scripts/ci-conformance.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ set -o pipefail
2626
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
2727
KUBECTL="${REPO_ROOT}/hack/tools/bin/kubectl"
2828
KIND="${REPO_ROOT}/hack/tools/bin/kind"
29-
make --directory="${REPO_ROOT}" "${KUBECTL##*/}" "${KIND##*/}"
29+
KUSTOMIZE="${REPO_ROOT}/hack/tools/bin/kustomize"
30+
make --directory="${REPO_ROOT}" "${KUBECTL##*/}" "${KIND##*/}" "${KUSTOMIZE##*/}"
3031

3132
# shellcheck source=hack/ensure-go.sh
3233
source "${REPO_ROOT}/hack/ensure-go.sh"
33-
# shellcheck source=hack/ensure-kustomize.sh
34-
source "${REPO_ROOT}/hack/ensure-kustomize.sh"
34+
35+
# Make sure the tools binaries are on the path.
36+
export PATH="${REPO_ROOT}/hack/tools/bin:${PATH}"
3537

3638
ARTIFACTS="${ARTIFACTS:-${PWD}/_artifacts}"
3739
mkdir -p "${ARTIFACTS}/logs/"

scripts/ci-e2e.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ set -o pipefail
2626
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
2727
KUBECTL="${REPO_ROOT}/hack/tools/bin/kubectl"
2828
KIND="${REPO_ROOT}/hack/tools/bin/kind"
29-
make --directory="${REPO_ROOT}" "${KUBECTL##*/}" "${KIND##*/}"
29+
KUSTOMIZE="${REPO_ROOT}/hack/tools/bin/kustomize"
30+
make --directory="${REPO_ROOT}" "${KUBECTL##*/}" "${KIND##*/}" "${KUSTOMIZE##*/}"
3031

3132
# shellcheck source=hack/ensure-go.sh
3233
source "${REPO_ROOT}/hack/ensure-go.sh"
33-
# shellcheck source=hack/ensure-kustomize.sh
34-
source "${REPO_ROOT}/hack/ensure-kustomize.sh"
34+
35+
# Make sure the tools binaries are on the path.
36+
export PATH="${REPO_ROOT}/hack/tools/bin:${PATH}"
3537

3638
# Configure e2e tests
3739
export GINKGO_NODES=3

0 commit comments

Comments
 (0)