Skip to content

Commit

Permalink
add extensionsclass
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBatschner committed Sep 4, 2024
1 parent 5d2da53 commit 08973f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion cmd/gardener-extension-os-suse-chost/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 08973f0

Please sign in to comment.