Skip to content

Commit

Permalink
Merge pull request #51 from rfranzke/revendor
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWeindel authored Mar 23, 2020
2 parents 17a27e5 + 990b715 commit f83ceb8
Show file tree
Hide file tree
Showing 27 changed files with 535 additions and 243 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ require (
github.com/ahmetb/gen-crd-api-reference-docs v0.1.5
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f
github.com/gardener/etcd-druid v0.1.3
github.com/gardener/gardener v1.1.1-0.20200311075931-7f7e52b986e7
github.com/gardener/gardener-extensions v1.4.1-0.20200322183545-5329339c95e9
github.com/gardener/gardener v1.1.1-0.20200323102039-58593d8be86a
github.com/gardener/gardener-extensions v1.5.0
github.com/gardener/machine-controller-manager v0.26.0
github.com/go-logr/logr v0.1.0
github.com/gobuffalo/packr/v2 v2.1.0
Expand Down
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ github.com/gardener/external-dns-management v0.7.3 h1:SAW9ur2mjZ+x89xbmcplJgqNUm
github.com/gardener/external-dns-management v0.7.3/go.mod h1:Y3om11E865x4aQ7cmcHjknb8RMgCO153huRb/SvP+9o=
github.com/gardener/gardener v1.1.1-0.20200311075931-7f7e52b986e7 h1:UD25lsw3fYBK7pUlXkGwUXmlpnksG9JbdwC75XZTBOQ=
github.com/gardener/gardener v1.1.1-0.20200311075931-7f7e52b986e7/go.mod h1:lGAx5NkFDWoC4hPIL+lHJamafBxmOt5MrHq9hGtp5VI=
github.com/gardener/gardener-extensions v1.4.1-0.20200322183545-5329339c95e9 h1:v1BPB5ZhUrjhBDBzyV5ItM04gNeor+vO6MDWwLRfJIw=
github.com/gardener/gardener-extensions v1.4.1-0.20200322183545-5329339c95e9/go.mod h1:yCdFgMAz++ex3d1fmhN3Yti9MR9HN9iKTUjz5eI0uIQ=
github.com/gardener/gardener v1.1.1-0.20200323102039-58593d8be86a h1:TkMIvx1xRmd3xLuORXEqsQhpni49+wfuT4keC6d3Tsc=
github.com/gardener/gardener v1.1.1-0.20200323102039-58593d8be86a/go.mod h1:lGAx5NkFDWoC4hPIL+lHJamafBxmOt5MrHq9hGtp5VI=
github.com/gardener/gardener-extensions v1.5.0 h1:6JkU0/DV2bJvwkuPoP7/nPlyCrzPGKfw5j4f+wtXBeI=
github.com/gardener/gardener-extensions v1.5.0/go.mod h1:yCdFgMAz++ex3d1fmhN3Yti9MR9HN9iKTUjz5eI0uIQ=
github.com/gardener/gardener-resource-manager v0.10.0 h1:6OUKoWI3oha42F0oJN8OEo3UR+D3onOCel4Th+zgotU=
github.com/gardener/gardener-resource-manager v0.10.0/go.mod h1:0pKTHOhvU91eQB0EYr/6Ymd7lXc/5Hi8P8tF/gpV0VQ=
github.com/gardener/hvpa-controller v0.0.0-20191014062307-fad3bdf06a25 h1:nOFITmV7vt4fcYPEXgj66Qs83FdDEMvL/LQcR0diRRE=
Expand Down
39 changes: 28 additions & 11 deletions pkg/controller/healthcheck/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ import (
"time"

"github.com/gardener/gardener-extension-provider-openstack/pkg/openstack"

genericcontrolplaneactuator "github.com/gardener/gardener-extensions/pkg/controller/controlplane/genericactuator"
"github.com/gardener/gardener-extensions/pkg/controller/healthcheck"
healthcheckconfig "github.com/gardener/gardener-extensions/pkg/controller/healthcheck/config"
"github.com/gardener/gardener-extensions/pkg/controller/healthcheck/general"
"github.com/gardener/gardener-extensions/pkg/controller/healthcheck/worker"
genericworkeractuator "github.com/gardener/gardener-extensions/pkg/controller/worker/genericactuator"
extensionspredicate "github.com/gardener/gardener-extensions/pkg/predicate"

gardencorev1beta1 "github.com/gardener/gardener/pkg/apis/core/v1beta1"
extensionsv1alpha1 "github.com/gardener/gardener/pkg/apis/extensions/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand All @@ -45,18 +45,26 @@ var (
// RegisterHealthChecks registers health checks for each extension resource
// HealthChecks are grouped by extension (e.g worker), extension.type (e.g aws) and Health Check Type (e.g SystemComponentsHealthy)
func RegisterHealthChecks(mgr manager.Manager, opts healthcheck.DefaultAddArgs) error {
normalPredicates := []predicate.Predicate{extensionspredicate.HasPurpose(extensionsv1alpha1.Normal)}
if err := healthcheck.DefaultRegistration(
openstack.Type,
extensionsv1alpha1.SchemeGroupVersion.WithKind(extensionsv1alpha1.ControlPlaneResource),
func() runtime.Object { return &extensionsv1alpha1.ControlPlane{} },
mgr,
opts,
normalPredicates,
map[healthcheck.HealthCheck]string{
general.NewSeedDeploymentHealthChecker(openstack.CloudControllerManagerName): string(gardencorev1beta1.ShootControlPlaneHealthy),
general.CheckManagedResource(genericcontrolplaneactuator.ControlPlaneShootChartResourceName): string(gardencorev1beta1.ShootSystemComponentsHealthy),
general.CheckManagedResource(genericcontrolplaneactuator.StorageClassesChartResourceName): string(gardencorev1beta1.ShootSystemComponentsHealthy),
[]predicate.Predicate{extensionspredicate.HasPurpose(extensionsv1alpha1.Normal)},
[]healthcheck.ConditionTypeToHealthCheck{
{
ConditionType: string(gardencorev1beta1.ShootControlPlaneHealthy),
HealthCheck: general.NewSeedDeploymentHealthChecker(openstack.CloudControllerManagerName),
},
{
ConditionType: string(gardencorev1beta1.ShootSystemComponentsHealthy),
HealthCheck: general.CheckManagedResource(genericcontrolplaneactuator.ControlPlaneShootChartResourceName),
},
{
ConditionType: string(gardencorev1beta1.ShootSystemComponentsHealthy),
HealthCheck: general.CheckManagedResource(genericcontrolplaneactuator.StorageClassesChartResourceName),
},
}); err != nil {
return err
}
Expand All @@ -68,10 +76,19 @@ func RegisterHealthChecks(mgr manager.Manager, opts healthcheck.DefaultAddArgs)
mgr,
opts,
nil,
map[healthcheck.HealthCheck]string{
general.CheckManagedResource(genericworkeractuator.McmShootResourceName): string(gardencorev1beta1.ShootSystemComponentsHealthy),
general.NewSeedDeploymentHealthChecker(openstack.MachineControllerManagerName): string(gardencorev1beta1.ShootControlPlaneHealthy),
worker.NewSufficientNodesChecker(): string(gardencorev1beta1.ShootEveryNodeReady),
[]healthcheck.ConditionTypeToHealthCheck{
{
ConditionType: string(gardencorev1beta1.ShootSystemComponentsHealthy),
HealthCheck: general.CheckManagedResource(genericworkeractuator.McmShootResourceName),
},
{
ConditionType: string(gardencorev1beta1.ShootControlPlaneHealthy),
HealthCheck: general.NewSeedDeploymentHealthChecker(openstack.MachineControllerManagerName),
},
{
ConditionType: string(gardencorev1beta1.ShootEveryNodeReady),
HealthCheck: worker.NewSufficientNodesChecker(),
},
})
}

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.

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

Loading

0 comments on commit f83ceb8

Please sign in to comment.