Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter complex list #398

Open
jochen123456 opened this issue May 6, 2024 · 0 comments
Open

filter complex list #398

jochen123456 opened this issue May 6, 2024 · 0 comments

Comments

@jochen123456
Copy link

jochen123456 commented May 6, 2024

Hi,

how can file a complex list with sprig. I want the OutOfSync only.

"resources": {{ without .app.status.resources .status "Synced" | toJson }} this just returns all elements. Thanks.


status:
resources:
- kind: ConfigMap
name: psb-amlen-webui-fluentd
namespace: pcs-dev
status: Synced
version: v1
- kind: ConfigMap
name: psb-amlen-webui-haproxy-cfg
namespace: pcs-dev
status: Synced
version: v1
- group: apps
health:
status: Healthy
kind: Deployment
name: psb-codedownload
namespace: pcs-dev
status: OutOfSync
version: v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant