Skip to content

Commit

Permalink
Patch for controller-runtime upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Doherty <[email protected]>
  • Loading branch information
chrisdoherty4 committed Jan 18, 2024
1 parent 08e2868 commit f5a2ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,4 @@ jobs:
cache-from: type=registry,ref=${{ env.IMAGE }}:latest
push: ${{ startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref, 'refs/heads/v') }}
tags: ${{ steps.meta.outputs.tags }}

platforms: linux/amd64,linux/arm64
3 changes: 2 additions & 1 deletion internal/backend/kubernetes/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
kubescheme "k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/tools/clientcmd"
clientcmdapi "k8s.io/client-go/tools/clientcmd/api"
"sigs.k8s.io/controller-runtime/pkg/cache"
crclient "sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/cluster"
)
Expand Down Expand Up @@ -50,7 +51,7 @@ func NewBackend(ctx context.Context, cfg Config) (*Backend, error) {

conf := func(opts *cluster.Options) {
opts.Scheme = scheme
opts.Namespace = cfg.Namespace
opts.Cache.DefaultNamespaces = map[string]cache.Config{cfg.Namespace: {}}
}

clstr, err := cluster.New(cfg.ClientConfig, conf)
Expand Down

0 comments on commit f5a2ca9

Please sign in to comment.