Skip to content

Commit

Permalink
Merge pull request #202 from xuzhu-591/fix-exec
Browse files Browse the repository at this point in the history
fix: loosen rate limit of clientset in informers
  • Loading branch information
xuzhu-591 authored Nov 24, 2023
2 parents 74694df + 6da226e commit d9ebf5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cd/cd.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (c *cd) DeleteCluster(ctx context.Context, params *DeleteClusterParams) (er

func (c *cd) GetResourceTree(ctx context.Context,
params *GetResourceTreeParams) ([]ResourceNode, error) {
const op = "cd: get cluster status"
const op = "cd: get resource tree"
defer wlog.Start(ctx, op).StopPrint()

argo, err := c.factory.GetArgoCD(params.Environment)
Expand Down
3 changes: 3 additions & 0 deletions pkg/regioninformers/regioninformers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"sync"
"time"

"github.com/horizoncd/horizon/pkg/util/kube"
"k8s.io/client-go/discovery"
"k8s.io/client-go/metadata"
"k8s.io/client-go/rest"
Expand Down Expand Up @@ -121,6 +122,8 @@ func (f *RegionInformers) NewRegionInformers(region *models.Region) error {
return err
}
restConfig = metadata.ConfigFor(restConfig)
restConfig.QPS = kube.K8sClientConfigQPS
restConfig.Burst = kube.K8sClientConfigBurst

clientSet, err := kubernetes.NewForConfig(restConfig)
if err != nil {
Expand Down

0 comments on commit d9ebf5a

Please sign in to comment.