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

IGNORE #4535

Closed
wants to merge 21 commits into from
Closed

IGNORE #4535

Changes from 2 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
82fa6bb
Make kubebuilder go-installable
migueleliasweb Jan 19, 2025
7ee23df
Merge pull request #4481 from migueleliasweb/make-go-install-able
k8s-ci-robot Jan 21, 2025
52765f9
:bug: Fix Kubernetes version in the goreleaser by upgrading it from 1…
camilamacedo86 Jan 21, 2025
c122bee
fix: webhook testEnv
mateusoliveira43 Dec 27, 2024
d2968d1
fix: disallow files containing unwanted extension files when initiali…
afzal442 Jan 20, 2025
bcb09cd
:book: Bump sigs.k8s.io/kubebuilder/v4
dependabot[bot] Jan 21, 2025
24f9711
Merge pull request #4449 from mateusoliveira43/fix/webhook-test-suite…
k8s-ci-robot Jan 22, 2025
6a72afe
Merge pull request #4517 from kubernetes-sigs/camilamacedo86-patch-1
k8s-ci-robot Jan 22, 2025
51866b3
test: add to commmon.sh the latest k8s release 1.32
camilamacedo86 Jan 22, 2025
21dcb35
Merge pull request #4519 from kubernetes-sigs/dependabot/go_modules/d…
k8s-ci-robot Jan 22, 2025
507284d
Merge pull request #4521 from camilamacedo86/add-common-k8s-132
k8s-ci-robot Jan 22, 2025
5fa06db
Merge pull request #4510 from afzal442/fix-allowed-files-ext
k8s-ci-robot Jan 23, 2025
02f8e8b
doc: update the Artifacts with the latest changes on the EnvTest Make…
camilamacedo86 Jan 22, 2025
2d657c5
✨ Upgrade controller-runtime from v0.20.0 to v0.20.1 (#4528)
camilamacedo86 Jan 26, 2025
87b0139
Merge pull request #4520 from camilamacedo86/fix-doc-envtest-artefacts
k8s-ci-robot Jan 26, 2025
da128f3
:book: bump github.com/spf13/pflag
dependabot[bot] Jan 29, 2025
768cb6e
:seedling: bump github.com/spf13/pflag from 1.0.5 to 1.0.6
dependabot[bot] Jan 29, 2025
aa6afc8
Merge pull request #4531 from kubernetes-sigs/dependabot/go_modules/d…
k8s-ci-robot Jan 30, 2025
74ab2da
Merge pull request #4532 from kubernetes-sigs/dependabot/go_modules/g…
k8s-ci-robot Jan 30, 2025
a64bab9
fix: correct minor typos in documentation
SaphMB Jan 31, 2025
d908e83
Merge pull request #4534 from SaphMB/master
k8s-ci-robot Jan 31, 2025
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
21 changes: 19 additions & 2 deletions docs/book/src/reference/artifacts.md
Original file line number Diff line number Diff line change
@@ -45,9 +45,26 @@ The artefacts for [ENVTEST][env-test-doc] k8s `1.31` are exclusively available a
You can refer to the Makefile of the Kubebuilder scaffold and observe that the envtest setup is consistently aligned across all controller-runtime releases. Starting from `release-0.19`, it is configured to automatically download the artefact from the correct location, **ensuring that kubebuilder users are not impacted.**

```shell
ENVTEST_K8S_VERSION = 1.31.0
ENVTEST_VERSION ?= release-0.19
## Tool Binaries
..
ENVTEST ?= $(LOCALBIN)/setup-envtest
...

## Tool Versions
...
#ENVTEST_VERSION is the version of controller-runtime release branch to fetch the envtest setup script (i.e. release-0.20)
ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}')
#ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)
ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.%d", $$3}')
...
.PHONY: setup-envtest
setup-envtest: envtest ## Download the binaries required for ENVTEST in the local bin directory.
@echo "Setting up envtest binaries for Kubernetes version $(ENVTEST_K8S_VERSION)..."
@$(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path || { \
echo "Error: Failed to set up envtest binaries for version $(ENVTEST_K8S_VERSION)."; \
exit 1; \
}

.PHONY: envtest
envtest: $(ENVTEST) ## Download setup-envtest locally if necessary.
$(ENVTEST): $(LOCALBIN)
23 changes: 20 additions & 3 deletions docs/book/src/reference/envtest.md
Original file line number Diff line number Diff line change
@@ -9,12 +9,29 @@ Installing the binaries is as a simple as running `make envtest`. `envtest` will
by default. `make test` is the one-stop shop for downloading the binaries, setting up the test environment, and running the tests.


You can refer to the Makefile of the Kubebuilder scaffold and observe that the envtest setup is consistently aligned across all controller-runtime releases. Starting from `release-0.19`, it is configured to automatically download the artefact from the correct location, **ensuring that kubebuilder users are not impacted.**
You can refer to the Makefile of the Kubebuilder scaffold and observe that the envtest setup is consistently aligned across all controller-runtime releases.Starting from `release-0.19`, it is configured to automatically download the artefact from the correct location, **ensuring that kubebuilder users are not impacted.**

```shell
ENVTEST_K8S_VERSION = 1.31.0
ENVTEST_VERSION ?= release-0.19
## Tool Binaries
..
ENVTEST ?= $(LOCALBIN)/setup-envtest
...

## Tool Versions
...
#ENVTEST_VERSION is the version of controller-runtime release branch to fetch the envtest setup script (i.e. release-0.20)
ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}')
#ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)
ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.%d", $$3}')
...
.PHONY: setup-envtest
setup-envtest: envtest ## Download the binaries required for ENVTEST in the local bin directory.
@echo "Setting up envtest binaries for Kubernetes version $(ENVTEST_K8S_VERSION)..."
@$(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path || { \
echo "Error: Failed to set up envtest binaries for version $(ENVTEST_K8S_VERSION)."; \
exit 1; \
}

.PHONY: envtest
envtest: $(ENVTEST) ## Download setup-envtest locally if necessary.
$(ENVTEST): $(LOCALBIN)