Skip to content

Commit

Permalink
Merge pull request #239 from stefanprodan/kstatus-imp
Browse files Browse the repository at this point in the history
Use direct cluster reader for health checks
  • Loading branch information
stefanprodan authored Nov 8, 2023
2 parents 66dc2b6 + e49c279 commit 1cd3b1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/runtime/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/cli-runtime/pkg/genericclioptions"
"sigs.k8s.io/cli-utils/pkg/kstatus/polling"
"sigs.k8s.io/cli-utils/pkg/kstatus/polling/clusterreader"
pollingEngine "sigs.k8s.io/cli-utils/pkg/kstatus/polling/engine"
"sigs.k8s.io/controller-runtime/pkg/client"

Expand Down Expand Up @@ -67,6 +68,7 @@ func NewResourceManager(rcg genericclioptions.RESTClientGetter) (*ssa.ResourceMa
CustomStatusReaders: []pollingEngine.StatusReader{
NewCustomJobStatusReader(restMapper),
},
ClusterReaderFactory: pollingEngine.ClusterReaderFactoryFunc(clusterreader.NewDirectClusterReader),
})

man := ssa.NewResourceManager(kubeClient, kubePoller, ownerRef)
Expand Down

0 comments on commit 1cd3b1c

Please sign in to comment.