From 08973f00f2dc88771110ee1fa10f5b6b68b54111 Mon Sep 17 00:00:00 2001 From: Thomas Buchner Date: Wed, 4 Sep 2024 18:19:26 +0200 Subject: [PATCH] add extensionsclass --- cmd/gardener-extension-os-suse-chost/app/app.go | 4 +++- go.mod | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/gardener-extension-os-suse-chost/app/app.go b/cmd/gardener-extension-os-suse-chost/app/app.go index 78c03a78..1d4727e4 100644 --- a/cmd/gardener-extension-os-suse-chost/app/app.go +++ b/cmd/gardener-extension-os-suse-chost/app/app.go @@ -15,9 +15,11 @@ import ( heartbeatcmd "github.com/gardener/gardener/extensions/pkg/controller/heartbeat/cmd" osccontroller "github.com/gardener/gardener/extensions/pkg/controller/operatingsystemconfig" "github.com/gardener/gardener/extensions/pkg/util" + extensionsv1alpha1 "github.com/gardener/gardener/pkg/apis/extensions/v1alpha1" "github.com/spf13/cobra" corev1 "k8s.io/api/core/v1" componentbaseconfig "k8s.io/component-base/config" + "k8s.io/utils/ptr" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/manager" @@ -102,7 +104,7 @@ func NewControllerCommand(ctx context.Context) *cobra.Command { ctrlOpts.Completed().Apply(&operatingsystemconfig.DefaultAddOptions.Controller) heartbeatCtrlOpts.Completed().Apply(&heartbeat.DefaultAddOptions) - reconcileOpts.Completed().Apply(&operatingsystemconfig.DefaultAddOptions.IgnoreOperationAnnotation) + reconcileOpts.Completed().Apply(&operatingsystemconfig.DefaultAddOptions.IgnoreOperationAnnotation, ptr.To(extensionsv1alpha1.ExtensionClassShoot)) if err := controllerSwitches.Completed().AddToManager(ctx, mgr); err != nil { return fmt.Errorf("could not add controller to manager: %w", err) diff --git a/go.mod b/go.mod index a14c0ae0..5bb500a9 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/gardener/gardener-extension-os-suse-chost -go 1.22.4 - -toolchain go1.22.5 +go 1.22.6 require ( github.com/ahmetb/gen-crd-api-reference-docs v0.3.0