Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#10803 from sbueringer/pr-cr-main
Browse files Browse the repository at this point in the history
✨ Bump to controller-runtime v0.19 & controller-tools v0.16
  • Loading branch information
k8s-ci-robot authored Aug 15, 2024
2 parents fdd1bb9 + ea6be50 commit 236271c
Show file tree
Hide file tree
Showing 74 changed files with 716 additions and 1,363 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ SETUP_ENVTEST_BIN := setup-envtest
SETUP_ENVTEST := $(abspath $(TOOLS_BIN_DIR)/$(SETUP_ENVTEST_BIN)-$(SETUP_ENVTEST_VER))
SETUP_ENVTEST_PKG := sigs.k8s.io/controller-runtime/tools/setup-envtest

CONTROLLER_GEN_VER := v0.15.0
CONTROLLER_GEN_VER := v0.16.1
CONTROLLER_GEN_BIN := controller-gen
CONTROLLER_GEN := $(abspath $(TOOLS_BIN_DIR)/$(CONTROLLER_GEN_BIN)-$(CONTROLLER_GEN_VER))
CONTROLLER_GEN_PKG := sigs.k8s.io/controller-tools/cmd/controller-gen
Expand All @@ -120,7 +120,7 @@ GOTESTSUM_BIN := gotestsum
GOTESTSUM := $(abspath $(TOOLS_BIN_DIR)/$(GOTESTSUM_BIN)-$(GOTESTSUM_VER))
GOTESTSUM_PKG := gotest.tools/gotestsum

CONVERSION_GEN_VER := v0.30.0
CONVERSION_GEN_VER := v0.31.0
CONVERSION_GEN_BIN := conversion-gen
# We are intentionally using the binary without version suffix, to avoid the version
# in generated files.
Expand Down
3 changes: 1 addition & 2 deletions bootstrap/kubeadm/api/v1beta1/kubeadm_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ type ClusterConfiguration struct {
// ControlPlaneComponent holds settings common to control plane component of the cluster.
type ControlPlaneComponent struct {
// ExtraArgs is an extra set of flags to pass to the control plane component.
// TODO: This is temporary and ideally we would like to switch all components to
// use ComponentConfig + ConfigMaps.
// TODO: This is temporary and ideally we would like to switch all components to use ComponentConfig + ConfigMaps.
// +optional
ExtraArgs map[string]string `json:"extraArgs,omitempty"`

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bootstrap/kubeadm/internal/webhooks/kubeadmconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
var ctx = ctrl.SetupSignalHandler()

func TestKubeadmConfigDefault(t *testing.T) {
defer utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.ClusterTopology, true)()
utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.ClusterTopology, true)

g := NewWithT(t)

Expand Down Expand Up @@ -464,7 +464,7 @@ func TestKubeadmConfigValidate(t *testing.T) {
if tt.enableIgnitionFeature {
// NOTE: KubeadmBootstrapFormatIgnition feature flag is disabled by default.
// Enabling the feature flag temporarily for this test.
defer utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.KubeadmBootstrapFormatIgnition, true)()
utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.KubeadmBootstrapFormatIgnition, true)
}
g := NewWithT(t)

Expand Down
3 changes: 1 addition & 2 deletions bootstrap/kubeadm/types/upstreamv1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ type ClusterConfiguration struct {
// ControlPlaneComponent holds settings common to control plane component of the cluster.
type ControlPlaneComponent struct {
// ExtraArgs is an extra set of flags to pass to the control plane component.
// TODO: This is temporary and ideally we would like to switch all components to
// use ComponentConfig + ConfigMaps.
// TODO: This is temporary and ideally we would like to switch all components to use ComponentConfig + ConfigMaps.
ExtraArgs map[string]string `json:"extraArgs,omitempty"`

// ExtraVolumes is an extra set of host volumes, mounted to the control plane component.
Expand Down
3 changes: 1 addition & 2 deletions bootstrap/kubeadm/types/upstreamv1beta2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ type ControlPlaneComponent struct {
// ExtraArgs is an extra set of flags to pass to the control plane component.
// A key in this map is the flag name as it appears on the
// command line except without leading dash(es).
// TODO: This is temporary and ideally we would like to switch all components to
// use ComponentConfig + ConfigMaps.
// TODO: This is temporary and ideally we would like to switch all components to use ComponentConfig + ConfigMaps.
ExtraArgs map[string]string `json:"extraArgs,omitempty"`

// ExtraVolumes is an extra set of host volumes, mounted to the control plane component.
Expand Down
3 changes: 1 addition & 2 deletions bootstrap/kubeadm/types/upstreamv1beta3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ type ClusterConfiguration struct {
// ControlPlaneComponent holds settings common to control plane component of the cluster.
type ControlPlaneComponent struct {
// ExtraArgs is an extra set of flags to pass to the control plane component.
// TODO: This is temporary and ideally we would like to switch all components to
// use ComponentConfig + ConfigMaps.
// TODO: This is temporary and ideally we would like to switch all components to use ComponentConfig + ConfigMaps.
// +optional
ExtraArgs map[string]string `json:"extraArgs,omitempty"`

Expand Down
2 changes: 1 addition & 1 deletion cmd/clusterctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func handlePlugins() {
case "help", cobra.ShellCompRequestCmd, cobra.ShellCompNoDescRequestCmd:
// Don't search for a plugin
default:
if err := kubectlcmd.HandlePluginCommand(pluginHandler, cmdPathPieces, false); err != nil {
if err := kubectlcmd.HandlePluginCommand(pluginHandler, cmdPathPieces, 0); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions cmd/clusterctl/config/manifest/clusterctl-api.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 236271c

Please sign in to comment.