-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Import blackbox common configuration
This commit updates the Helm Values document so that we import the common configuration instead of relying upon CUE's ability to search root-to-leaf for all *.cue files.
- Loading branch information
Showing
15 changed files
with
74 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
doc/md/tutorial/_helm-values/script-01-holos-version/output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.102.4 | ||
0.102.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
doc/md/tutorial/_helm-values/script-02-helm-values/blackbox-common-config-git-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[main ffea4dd] add blackbox configuration | ||
[main 884be5f] add blackbox configuration | ||
1 file changed, 15 insertions(+) | ||
create mode 100644 components/blackbox.cue | ||
create mode 100644 config/prometheus/blackbox.cue |
2 changes: 1 addition & 1 deletion
2
doc/md/tutorial/_helm-values/script-02-helm-values/blackbox-common-config-header.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
cat <<EOF > components/blackbox.cue | ||
cat <<EOF > config/prometheus/blackbox.cue |
5 changes: 3 additions & 2 deletions
5
doc/md/tutorial/_helm-values/script-02-helm-values/common-config-git-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[main a4bc817] integrate blackbox and prometheus together | ||
2 files changed, 4 insertions(+), 2 deletions(-) | ||
[main 209de0b] integrate blackbox and prometheus together | ||
3 files changed, 1348 insertions(+), 2 deletions(-) | ||
create mode 100644 components/prometheus/values.cue.orig |
2 changes: 1 addition & 1 deletion
2
doc/md/tutorial/_helm-values/script-02-helm-values/import-values-git-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[main d8046af] import values | ||
[main 7c2a61e] import values | ||
2 files changed, 1815 insertions(+) | ||
create mode 100644 components/blackbox/values.cue | ||
create mode 100644 components/prometheus/values.cue |
6 changes: 3 additions & 3 deletions
6
doc/md/tutorial/_helm-values/script-02-helm-values/import-values-render-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
rendered blackbox in 161.782375ms | ||
rendered prometheus in 203.388ms | ||
rendered platform in 203.481459ms | ||
rendered blackbox in 168.983792ms | ||
rendered prometheus in 206.797625ms | ||
rendered platform in 207.001459ms |
1 change: 1 addition & 0 deletions
1
doc/md/tutorial/_helm-values/script-02-helm-values/mkdir-common-config.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mkdir -p config/prometheus |
2 changes: 1 addition & 1 deletion
2
doc/md/tutorial/_helm-values/script-02-helm-values/register-components-git-commit-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
doc/md/tutorial/_helm-values/script-02-helm-values/register-components-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
rendered blackbox in 1.324044833s | ||
rendered prometheus in 1.336657625s | ||
rendered platform in 1.33672525s | ||
rendered blackbox in 1.108670875s | ||
rendered prometheus in 1.114354292s | ||
rendered platform in 1.114471791s |
2 changes: 1 addition & 1 deletion
2
doc/md/tutorial/_helm-values/script-02-helm-values/reviewing-changes-git-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[main 1200227] render integrated blackbox and prometheus manifests | ||
[main 09736f1] render integrated blackbox and prometheus manifests | ||
2 files changed, 7 insertions(+), 7 deletions(-) |
24 changes: 18 additions & 6 deletions
24
doc/md/tutorial/_helm-values/script-02-helm-values/values.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,43 @@ | ||
--- a/components/blackbox/values.cue | ||
+++ b/components/blackbox/values.cue | ||
@@ -1,6 +1,8 @@ | ||
@@ -1,6 +1,11 @@ | ||
package holos | ||
|
||
+// Import common blackbox configuration | ||
+import "holos.example/config/prometheus" | ||
+ | ||
Helm: Values: { | ||
+ fullnameOverride: Blackbox.host | ||
+ 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 +194,7 @@ Helm: Values: { | ||
@@ -192,7 +197,7 @@ Helm: Values: { | ||
annotations: {} | ||
labels: {} | ||
type: "ClusterIP" | ||
- port: 9115 | ||
+ port: Blackbox.port | ||
+ port: prometheus.blackbox.port | ||
ipDualStack: { | ||
enabled: false | ||
ipFamilies: ["IPv6", "IPv4"] | ||
--- a/components/prometheus/values.cue | ||
+++ b/components/prometheus/values.cue | ||
@@ -1083,7 +1083,7 @@ Helm: Values: { | ||
@@ -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: "\(Blackbox.host):\(Blackbox.port)" | ||
+ replacement: "\(prometheus.blackbox.host):\(prometheus.blackbox.port)" | ||
}, { | ||
source_labels: ["__param_target"] | ||
target_label: "instance" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters