-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix controller-runtime setupenv incompability with old versions
- Loading branch information
1 parent
011383c
commit 2dc2f6d
Showing
11 changed files
with
44 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,16 @@ function fetch_tools { | |
if ! is_installed setup-envtest; then | ||
header_text "Installing setup-envtest to $(go env GOPATH)/bin" | ||
|
||
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | ||
# TODO: Current workaround for setup-envtest compatibility | ||
# Due to past instances where controller-runtime maintainers released | ||
# versions without corresponding branches, directly relying on branches | ||
# poses a risk of breaking the Kubebuilder chain. Such practices may | ||
# change over time, potentially leading to compatibility issues. This | ||
# approach, although not ideal, remains the best solution for ensuring | ||
# compatibility with controller-runtime releases as of now. For more | ||
# details on the quest for a more robust solution, refer to the issue | ||
# raised in the controller-runtime repository: https://github.com/kubernetes-sigs/controller-runtime/issues/2744 | ||
go install sigs.k8s.io/controller-runtime/tools/[email protected] | ||
fi | ||
|
||
if [ -z "$SKIP_FETCH_TOOLS" ]; then | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters