Skip to content

Commit 236271c

Browse files
authored
Merge pull request kubernetes-sigs#10803 from sbueringer/pr-cr-main
✨ Bump to controller-runtime v0.19 & controller-tools v0.16
2 parents fdd1bb9 + ea6be50 commit 236271c

File tree

74 files changed

+716
-1363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+716
-1363
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ SETUP_ENVTEST_BIN := setup-envtest
110110
SETUP_ENVTEST := $(abspath $(TOOLS_BIN_DIR)/$(SETUP_ENVTEST_BIN)-$(SETUP_ENVTEST_VER))
111111
SETUP_ENVTEST_PKG := sigs.k8s.io/controller-runtime/tools/setup-envtest
112112

113-
CONTROLLER_GEN_VER := v0.15.0
113+
CONTROLLER_GEN_VER := v0.16.1
114114
CONTROLLER_GEN_BIN := controller-gen
115115
CONTROLLER_GEN := $(abspath $(TOOLS_BIN_DIR)/$(CONTROLLER_GEN_BIN)-$(CONTROLLER_GEN_VER))
116116
CONTROLLER_GEN_PKG := sigs.k8s.io/controller-tools/cmd/controller-gen
@@ -120,7 +120,7 @@ GOTESTSUM_BIN := gotestsum
120120
GOTESTSUM := $(abspath $(TOOLS_BIN_DIR)/$(GOTESTSUM_BIN)-$(GOTESTSUM_VER))
121121
GOTESTSUM_PKG := gotest.tools/gotestsum
122122

123-
CONVERSION_GEN_VER := v0.30.0
123+
CONVERSION_GEN_VER := v0.31.0
124124
CONVERSION_GEN_BIN := conversion-gen
125125
# We are intentionally using the binary without version suffix, to avoid the version
126126
# in generated files.

bootstrap/kubeadm/api/v1beta1/kubeadm_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ type ClusterConfiguration struct {
150150
// ControlPlaneComponent holds settings common to control plane component of the cluster.
151151
type ControlPlaneComponent struct {
152152
// ExtraArgs is an extra set of flags to pass to the control plane component.
153-
// TODO: This is temporary and ideally we would like to switch all components to
154-
// use ComponentConfig + ConfigMaps.
153+
// TODO: This is temporary and ideally we would like to switch all components to use ComponentConfig + ConfigMaps.
155154
// +optional
156155
ExtraArgs map[string]string `json:"extraArgs,omitempty"`
157156

bootstrap/kubeadm/config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigs.yaml

Lines changed: 25 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bootstrap/kubeadm/config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigtemplates.yaml

Lines changed: 25 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bootstrap/kubeadm/internal/webhooks/kubeadmconfig_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
var ctx = ctrl.SetupSignalHandler()
3434

3535
func TestKubeadmConfigDefault(t *testing.T) {
36-
defer utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.ClusterTopology, true)()
36+
utilfeature.SetFeatureGateDuringTest(t, feature.Gates, feature.ClusterTopology, true)
3737

3838
g := NewWithT(t)
3939

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

bootstrap/kubeadm/types/upstreamv1beta1/types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ type ClusterConfiguration struct {
129129
// ControlPlaneComponent holds settings common to control plane component of the cluster.
130130
type ControlPlaneComponent struct {
131131
// ExtraArgs is an extra set of flags to pass to the control plane component.
132-
// TODO: This is temporary and ideally we would like to switch all components to
133-
// use ComponentConfig + ConfigMaps.
132+
// TODO: This is temporary and ideally we would like to switch all components to use ComponentConfig + ConfigMaps.
134133
ExtraArgs map[string]string `json:"extraArgs,omitempty"`
135134

136135
// ExtraVolumes is an extra set of host volumes, mounted to the control plane component.

bootstrap/kubeadm/types/upstreamv1beta2/types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ type ControlPlaneComponent struct {
143143
// ExtraArgs is an extra set of flags to pass to the control plane component.
144144
// A key in this map is the flag name as it appears on the
145145
// command line except without leading dash(es).
146-
// TODO: This is temporary and ideally we would like to switch all components to
147-
// use ComponentConfig + ConfigMaps.
146+
// TODO: This is temporary and ideally we would like to switch all components to use ComponentConfig + ConfigMaps.
148147
ExtraArgs map[string]string `json:"extraArgs,omitempty"`
149148

150149
// ExtraVolumes is an extra set of host volumes, mounted to the control plane component.

bootstrap/kubeadm/types/upstreamv1beta3/types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ type ClusterConfiguration struct {
138138
// ControlPlaneComponent holds settings common to control plane component of the cluster.
139139
type ControlPlaneComponent struct {
140140
// ExtraArgs is an extra set of flags to pass to the control plane component.
141-
// TODO: This is temporary and ideally we would like to switch all components to
142-
// use ComponentConfig + ConfigMaps.
141+
// TODO: This is temporary and ideally we would like to switch all components to use ComponentConfig + ConfigMaps.
143142
// +optional
144143
ExtraArgs map[string]string `json:"extraArgs,omitempty"`
145144

cmd/clusterctl/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func handlePlugins() {
216216
case "help", cobra.ShellCompRequestCmd, cobra.ShellCompNoDescRequestCmd:
217217
// Don't search for a plugin
218218
default:
219-
if err := kubectlcmd.HandlePluginCommand(pluginHandler, cmdPathPieces, false); err != nil {
219+
if err := kubectlcmd.HandlePluginCommand(pluginHandler, cmdPathPieces, 0); err != nil {
220220
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
221221
os.Exit(1)
222222
}

cmd/clusterctl/config/crd/bases/clusterctl.cluster.x-k8s.io_metadata.yaml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)