1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 15:46:31 +01:00
Files
prometheus-operator/scripts/generate/append-operator-version.sh
2026-02-04 10:55:04 +01:00

9 lines
488 B
Bash
Executable File

#!/usr/bin/env bash
if [[ "$OSTYPE" == "darwin"* ]]; then
find example/prometheus-operator-crd/ example/prometheus-operator-crd-full/ -name '*.yaml' -exec sed -i '' -e "/^ controller-gen.kubebuilder.io.version.*/a\\
operator.prometheus.io/version: $VERSION" {} +
else
find example/prometheus-operator-crd/ example/prometheus-operator-crd-full/ -name '*.yaml' -exec sed -i "/^ controller-gen.kubebuilder.io.version.*/a\\ operator.prometheus.io/version: $VERSION" {} +
fi