sourcegraph/internal/k8s/resource/rolebinding
Craig Furman 6bb8209ff4
appliance: deploy prometheus (#62876)
* New YAML package to hold yaml-related utilities

First function: ConvertYAMLStringsToMultilineLiterals.

* appliance: add Prometheus config element

Disable it in all current golden tests.

* appliance: deploy Prometheus

* appliance: preserve multiline literals in golden fixtures

* appliance: compare-helm: normalize yaml

Standardize indentation and represent multiline strings as literals.
This makes diffs of large nested documents easier to read (e.g. the
prometheus configmap).

* appliance: compare-helm: allow cleanup to run when diff exits non-zero

* appliance: prometheus privileged config

Optionally provision RBAC with cluster-level privileges, and
corresponding scrape config.

Due to kubernetes rules around namespaced objects not owning namespaced
ones, our ConfigMap cannot own the ClusterRole(Binding)s provisioned by
this config. As such, they will not be garbage-collected when the
ConfigMap is deleted. These cluster-scoped resources are given a
qualified metadata.name, in order to minimise the risk of clashing with
existing non-namespaced resources.

* appliance: prometheus can optionally reference an existing configmap

Rather than creating one.

* slices: new common utilities package

I thought a generic map function was added to the Go stdlib recently,
but I was wrong.
2024-05-24 10:26:30 +01:00
..
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
rolebinding.go appliance: deploy prometheus (#62876) 2024-05-24 10:26:30 +01:00