-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controller-runtime currently adds the --kubeconfig flag if
pkg/client/config is imported (set up in an init() function). The SDK's test framework also adds this flag, which will panic if both are imported and the test framework is initialized. This commit only registers --kubeconfig if it is not already registered, and gets its value if so. pkg/test: only register --kubeconfig if not registered, get value if already registered test/e2e: add import of controller-runtime/pkg/client/config to test --kubebuilder registration CHANGELOG.md: add --kubeconfig double registration fix
- Loading branch information
Showing
4 changed files
with
19 additions
and
1 deletion.
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