mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 17:25:01 +00:00
* Convert all files with.period.separators to hyphen-separators. * Rename and markdown_test.go to be specific to Helm Values. * Move helm-values_test.go to be in the same directory as the Helm Values doc. * Move Blackbox common configuration CUE file to `config/prometheus` so it can be imported as necessary. * Use explicit import statements for Blackbox common config in `blackbox` and `prometheus` components. Closes: #399
44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
--- a/components/blackbox/values.cue
|
|
+++ b/components/blackbox/values.cue
|
|
@@ -1,6 +1,11 @@
|
|
package holos
|
|
|
|
+// Import common blackbox configuration
|
|
+import "holos.example/config/prometheus"
|
|
+
|
|
Helm: Values: {
|
|
+ fullnameOverride: prometheus.blackbox.host
|
|
+
|
|
global: {
|
|
//# Global image registry to use if it needs to be overriden for some specific use cases (e.g local registries, custom images, ...)
|
|
//#
|
|
@@ -192,7 +197,7 @@ Helm: Values: {
|
|
annotations: {}
|
|
labels: {}
|
|
type: "ClusterIP"
|
|
- port: 9115
|
|
+ port: prometheus.blackbox.port
|
|
ipDualStack: {
|
|
enabled: false
|
|
ipFamilies: ["IPv6", "IPv4"]
|
|
--- a/components/prometheus/values.cue
|
|
+++ b/components/prometheus/values.cue
|
|
@@ -1,5 +1,8 @@
|
|
package holos
|
|
|
|
+// Import common blackbox configuration
|
|
+import "holos.example/config/prometheus"
|
|
+
|
|
Helm: Values: {
|
|
// yaml-language-server: $schema=values.schema.json
|
|
// Default values for prometheus.
|
|
@@ -1083,7 +1086,7 @@ Helm: Values: {
|
|
target_label: "__param_target"
|
|
}, {
|
|
target_label: "__address__"
|
|
- replacement: "blackbox"
|
|
+ replacement: "\(prometheus.blackbox.host):\(prometheus.blackbox.port)"
|
|
}, {
|
|
source_labels: ["__param_target"]
|
|
target_label: "instance"
|