sprig icon indicating copy to clipboard operation
sprig copied to clipboard

filter complex list

Open jochen123456 opened this issue 1 year ago • 0 comments

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

jochen123456 avatar May 06 '24 07:05 jochen123456