Giter VIP home page Giter VIP logo

Comments (10)

anderseknert avatar anderseknert commented on June 16, 2024 1

I don't think "simpler" and "helm chart" is something I'd use in the same sentence, but it's good that they are there as an option for those who prefer that :)

from kube-mgmt.

anderseknert avatar anderseknert commented on June 16, 2024 1

Thanks @bjhaid 👍

from kube-mgmt.

alex0z1 avatar alex0z1 commented on June 16, 2024

Does it seem like it is trying to do this ? and this is not a supported query for NS

Error from server (BadRequest): Unable to find "/v1, Resource=namespaces" that match label selector "", field selector "metadata.namespace=kube-system": field label not supported: metadata.namespace

from kube-mgmt.

eshepelyuk avatar eshepelyuk commented on June 16, 2024

Helo @alex0z1
Please provide values.yaml you are uaing for installing the chart.

from kube-mgmt.

alex0z1 avatar alex0z1 commented on June 16, 2024

I don't use any helm charts, it is from https://www.openpolicyagent.org/docs/latest/kubernetes-tutorial but with auth enabled

from kube-mgmt.

eshepelyuk avatar eshepelyuk commented on June 16, 2024

@anderseknert that k8s guide would be much simpier with the helm chart as an example.

from kube-mgmt.

bjhaid avatar bjhaid commented on June 16, 2024

I just ran into this issue after upgrading to 8.1.0

from kube-mgmt.

bjhaid avatar bjhaid commented on June 16, 2024

I believe this line:

8.0.0...8.1.0#diff-10432976b832c2bf005c1a2b317bff34f985023e0e2e43650c2cfd1fbcb1f7faR139

is the problem it will not work with cluster scoped resources like namespaces.

from kube-mgmt.

bjhaid avatar bjhaid commented on June 16, 2024

This:

diff --git a/pkg/data/generic.go b/pkg/data/generic.go
index 091fbc16..0ca41f7c 100644
--- a/pkg/data/generic.go
+++ b/pkg/data/generic.go
@@ -136,11 +136,15 @@ func (s *GenericSync) setup(ctx context.Context) (cache.Store, workqueue.Delayin
 	store, controller := cache.NewInformer(
 		&cache.ListWatch{
 			ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
-				options.FieldSelector = ignoreNs
+				if s.ns.Namespaced {
+					options.FieldSelector = ignoreNs
+				}
 				return resource.List(ctx, options)
 			},
 			WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
-				options.FieldSelector = ignoreNs
+				if s.ns.Namespaced {
+					options.FieldSelector = ignoreNs
+				}
 				return resource.Watch(ctx, options)
 			},
 		},

should fix the issue, happy to send in a PR

from kube-mgmt.

bjhaid avatar bjhaid commented on June 16, 2024

sent a patch here:

#198

from kube-mgmt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.