Skip to content

Commit

Permalink
fix: use scope for catalog instead of groupby
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Oct 28, 2024
1 parent 2a5d862 commit bbee823
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/kubernetes/templates/topology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
catalog:
- selector:
- types: ['Kubernetes::Node']
scope: {{.Release.Namespace}}/{{ tpl .Values.scraper.name . }}
display:
expr: |
dyn(results).map(r, {
Expand Down Expand Up @@ -74,6 +75,7 @@ spec:
catalog:
- selector:
- types: ['Kubernetes::Pod']
scope: {{.Release.Namespace}}/{{ tpl .Values.scraper.name . }}
display:
expr: |
dyn(results).filter(r, !(r.name.startsWith('junit-'))).map(r, {
Expand Down Expand Up @@ -112,6 +114,7 @@ spec:
catalog:
- selector:
- types: ['Kubernetes::Namespace']
scope: {{.Release.Namespace}}/{{ tpl .Values.scraper.name . }}
display:
expr: |
dyn(results).map(r, {
Expand Down Expand Up @@ -143,6 +146,7 @@ spec:
catalog:
- selector:
- types: ['Kubernetes::Ingress']
scope: {{.Release.Namespace}}/{{ tpl .Values.scraper.name . }}
display:
expr: |
dyn(results).map(r, {
Expand Down
2 changes: 1 addition & 1 deletion charts/kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ topology:
# @schema
# required: false
# @schema
tag: "cluster"
tag: ""
# @schema
# required: false
# $ref: https://raw.githubusercontent.com/flanksource/duty/main/schema/openapi/scrape_config.schema.json#/$defs/ResourceSelector
Expand Down

0 comments on commit bbee823

Please sign in to comment.