Skip to content

Commit

Permalink
Remove MR health check for ShootSystemComponentsHealthy condition
Browse files Browse the repository at this point in the history
Gardener now checks all the ManagedResources in the shoot controlplane which does not specify `spec.class`, so these MRs are already covered.
  • Loading branch information
shafeeqes committed Mar 2, 2023
1 parent b3b1308 commit 4544169
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 151 deletions.
3 changes: 0 additions & 3 deletions cmd/gardener-extension-registry-cache/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (

registryinstall "github.com/gardener/gardener-extension-registry-cache/pkg/apis/registry/install"
"github.com/gardener/gardener-extension-registry-cache/pkg/controller"
"github.com/gardener/gardener-extension-registry-cache/pkg/controller/healthcheck"
)

// NewServiceControllerCommand creates a new command that is used to start the registry service controller.
Expand Down Expand Up @@ -87,10 +86,8 @@ func (o *Options) run(ctx context.Context) error {
}

ctrlConfig := o.registryOptions.Completed()
ctrlConfig.ApplyHealthCheckConfig(&healthcheck.DefaultAddOptions.HealthCheckConfig)
ctrlConfig.Apply(&controller.DefaultAddOptions.Config)
o.controllerOptions.Completed().Apply(&controller.DefaultAddOptions.ControllerOptions)
o.healthOptions.Completed().Apply(&healthcheck.DefaultAddOptions.Controller)
o.reconcileOptions.Completed().Apply(&controller.DefaultAddOptions.IgnoreOperationAnnotation)
o.heartbeatOptions.Completed().Apply(&heartbeat.DefaultAddOptions)

Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (

extensionsapisconfig "github.com/gardener/gardener/extensions/pkg/apis/config"
"github.com/gardener/gardener/extensions/pkg/controller/cmd"
extensionshealthcheckcontroller "github.com/gardener/gardener/extensions/pkg/controller/healthcheck"
extensionsheartbeatcontroller "github.com/gardener/gardener/extensions/pkg/controller/heartbeat"
"github.com/spf13/pflag"
"k8s.io/apimachinery/pkg/runtime"
Expand All @@ -31,7 +30,6 @@ import (
"github.com/gardener/gardener-extension-registry-cache/pkg/apis/config/v1alpha1"
"github.com/gardener/gardener-extension-registry-cache/pkg/apis/config/validation"
"github.com/gardener/gardener-extension-registry-cache/pkg/controller"
healthcheckcontroller "github.com/gardener/gardener-extension-registry-cache/pkg/controller/healthcheck"
)

var (
Expand Down Expand Up @@ -104,7 +102,6 @@ func (c *RegistryServiceConfig) Apply(config *configapi.Configuration) {
func ControllerSwitches() *cmd.SwitchOptions {
return cmd.NewSwitchOptions(
cmd.Switch(controller.ControllerName, controller.AddToManager),
cmd.Switch(extensionshealthcheckcontroller.ControllerName, healthcheckcontroller.AddToManager),
cmd.Switch(extensionsheartbeatcontroller.ControllerName, extensionsheartbeatcontroller.AddToManager),
)
}
Expand Down
70 changes: 0 additions & 70 deletions pkg/controller/healthcheck/add.go

This file was deleted.

75 changes: 0 additions & 75 deletions pkg/controller/healthcheck/managed_resource_registries.go

This file was deleted.

0 comments on commit 4544169

Please sign in to comment.