Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter0195 authored and alessio-trivisonno-shift committed Dec 23, 2024
1 parent ee20a16 commit 0098219
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
28 changes: 28 additions & 0 deletions controllers/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1512,9 +1512,13 @@ config:
filter_strategy: relabel-config
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
},
Expand Down Expand Up @@ -1971,9 +1975,13 @@ config:
filter_strategy: relabel-config
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
},
Expand Down Expand Up @@ -2475,9 +2483,13 @@ https:
tls_key_file_path: /tls/tls.key
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
},
Expand Down Expand Up @@ -3544,9 +3556,13 @@ config:
filter_strategy: relabel-config
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
},
Expand Down Expand Up @@ -3819,9 +3835,13 @@ config:
filter_strategy: relabel-config
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
},
Expand Down Expand Up @@ -4144,9 +4164,13 @@ config:
filter_strategy: relabel-config
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
},
Expand Down Expand Up @@ -4443,9 +4467,13 @@ https:
tls_key_file_path: /tls/tls.key
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
},
Expand Down
16 changes: 16 additions & 0 deletions internal/manifests/targetallocator/configmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,22 @@ config:
filter_strategy: relabel-config
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector:
matchlabels:
release: my-instance
matchexpressions: []
probe_namespace_selector: null
probe_selector:
matchlabels:
release: my-instance
matchexpressions: []
scrape_config_namespace_selector: null
scrape_config_selector:
matchlabels:
release: my-instance
matchexpressions: []
service_monitor_namespace_selector: null
service_monitor_selector:
matchlabels:
release: my-instance
Expand Down Expand Up @@ -322,10 +326,14 @@ config:
filter_strategy: relabel-config
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
scrape_interval: 30s
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
}
Expand Down Expand Up @@ -385,10 +393,14 @@ https:
tls_key_file_path: /tls/tls.key
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
scrape_interval: 30s
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
}
Expand Down Expand Up @@ -444,10 +456,14 @@ https:
tls_key_file_path: /tls/tls.key
prometheus_cr:
enabled: true
pod_monitor_namespace_selector: null
pod_monitor_selector: null
probe_namespace_selector: null
probe_selector: null
scrape_config_namespace_selector: null
scrape_config_selector: null
scrape_interval: 30s
service_monitor_namespace_selector: null
service_monitor_selector: null
`,
}
Expand Down

0 comments on commit 0098219

Please sign in to comment.