Comments (1)
More recent builds (v2.9.0-alpha5 and newer) give a better description of what is actually happening:
% curl --insecure -X GET \
-H "Authorization: Bearer token-XXX" \
"https://localhost:8444/v1/secrets?filter=metadata.labels.key1=value4&filter=metadata.labels.key2=value3"
{"type":"error","links":{},"code":"InvalidBodyContent","message":"column is invalid [metadata.labels.key1]: supplied column is invalid","status":422,"type":"error"}
At the moment, Steve does not support filtering by labels - this is expected per the EPIC issue to come to a later version.
Until then filtering is only supported for a subset of attributes, which currently is:
metadata.name
,metadata.namespace
andmetadata.timestamp
for any resource kind- a short list of hardcoded attributes for a selection of specific types listed here: https://github.com/rancher/steve/blob/22a06dd14f51e09ebfaa6277ec9424d8c1cc40e9/pkg/stores/sqlproxy/proxy_store.go#L52-L58
- the special string
metadata.fields[N]
, with N starting at 0, for all columns displayed bykubectl get $TYPE
. For examplesecrets
have"metadata.fields[0]"
,"metadata.fields[1]"
,"metadata.fields[2]"
, and"metadata.fields[3]"
respectively corresponding to"name"
,"type"
,"data"
, and"age"
Any other column name is expected to return 422.
from rancher.
Related Issues (20)
- What is the Technology Evolution Logic of redhat openshift container platform and rancher?
- Reduce `webhook`'s dependency on RKE1 type changes
- [Backport v2.9] Reduce `webhook`'s dependency on RKE1 type changes
- [Backport v2.8] Reduce `webhook`'s dependency on RKE1 type changes
- [BUG] Upgrade from 2.8.4 to 2.9.1 - Deletion of existing projects gets stuck in "removing" state
- [BUG] Keycloak OIDC configuration forces using obsolete /auth/ path
- [BUG] Argo CD cannot sync GlobalRoles
- Wrangler codegen prevents updating to Go 1.23
- [RFE] Opening/Viewing ClusterIP/NodePort Services directly from the Rancher's UI
- [BUG] Rancher GitHub release assets and Docker Hub container images are missing for releases v2.8.6, v2.8.7 and v2.8.8 HOT 3
- [BUG] Rancher upgrade to v2.9.2 failed HOT 1
- Feature charts: Need to add NeuVector chart 103.0.6+up2.8.0 to 2.8x and NeuVector chart 104.0.2+up2.8.0 to 2.9.x
- [BUG] HOT 1
- [BUG] Rancher Helm install automatically upgrades underlying RKE2 Kubernetes Version
- [v2.10] Bump rancher/mirrored-jimmidyson-configmap-reload for rancher-alerting-drivers
- [v2.9] [BUG] rancher deployed on arm machines cannot provision Harvester VM's
- [RFE] Cloud Credentials Expiry field support
- [Backport v2.9] [RFE] Cloud Credentials Expiry field support
- [v2.9] Regular Shell version bump
- [Feature] k8s 1.31 Support for `rancher/shell`
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 rancher.