mirror of
https://github.com/holos-run/holos.git
synced 2026-03-21 09:45:00 +00:00
PROBLEM: The "Kustomize" tutorial has hardcoded code blocks and hasn't been updated to use the automated testscript workflow. SOLUTION: Create a test for the Kustomize tutorial. Create a testscript for the Kustomize test. Update the Kustomize MDX file to load in data from the testscript directory. OUTCOME: The code content in the Kustomize tutorial now comes directly from the testscript workflow.
17 lines
330 B
CUE
17 lines
330 B
CUE
package holos
|
|
|
|
import "encoding/yaml"
|
|
|
|
// Mix in a Kustomize patch to the configuration.
|
|
Kustomize: KustomizeConfig: Kustomization: _patches: {
|
|
probe: {
|
|
target: kind: "Service"
|
|
target: name: "httpbin"
|
|
patch: yaml.Marshal([{
|
|
op: "add"
|
|
path: "/metadata/annotations/prometheus.io~1probe"
|
|
value: "true"
|
|
}])
|
|
}
|
|
}
|