Comments (10)
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.
Thanks @bjhaid
from kube-mgmt.
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.
Helo @alex0z1
Please provide values.yaml
you are uaing for installing the chart.
from kube-mgmt.
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.
@anderseknert that k8s guide would be much simpier with the helm chart as an example.
from kube-mgmt.
I just ran into this issue after upgrading to 8.1.0
from kube-mgmt.
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.
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.
sent a patch here:
from kube-mgmt.
Related Issues (20)
- Enable ARM64 testing in Github Actions HOT 2
- Alpine Base image HOT 3
- Bad indents: can't specify resources for mgmt HOT 1
- Helm chart does not support Kubernetes v1.25 PodDisruptionBudget HOT 1
- helm: openpolicyagent/opa image is outdated and has a critical vulnerability
- Upgrading the Helm chart on Kubernetes v1.25 fails with podDisruptionsBudget enabled
- kube-mgmt doesn't reload configmaps if opa container restarts HOT 6
- CVE reported on kube-mgmt v8.0.1 - libcrypto1.1 HOT 1
- Breaking issue when running with more than 1 replica HOT 8
- Failed calling webhook "webhook.openpolicyagent.org" error HOT 5
- CVE reported for gopkg.in/yaml.v3 HOT 3
- Kube mgmt fails after upgrade - {"code":"undefined_document","message":"document missing: data.system.main"} HOT 2
- kube-mgmt does not retry adding policies to OPA HOT 1
- When OPA container restarted kube-mgmt is not re-syncing the policies HOT 2
- opa-kube-mgmt Helm Chart config can't use existing Cert-Manager Issuer or an existing Secret created from Cert-Manager HOT 4
- CVE Vulnerabilities HOT 1
- Add startup probe to kube-mgmt container HOT 12
- Add liveness probe to kube-mgmt container HOT 5
- Do not use ClusterRole and ClusterRoleBinding when .Values.mgmt.namespaces list is empty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-mgmt.