Files
my-rook-config/build/rbac/gen-common.sh
T
Blaine Gardner 757960ba28 build: generate common.yaml from helm charts
Generate deploy/examples/common.yaml from Helm charts. There were still
a few differences between common.yaml and the Helm charts. Where there
were differences we assume common.yaml was the most up-to-date.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit bcc7d3e541)
2021-12-07 22:07:09 +00:00

14 lines
352 B
Bash
Executable File

#!/usr/bin/env bash
set -xeEuo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
pushd "$SCRIPT_DIR" &>/dev/stderr
COMMON_YAML_FILE="$SCRIPT_DIR/../../deploy/examples/common.yaml"
rm -f "$COMMON_YAML_FILE"
cat common.yaml.header >> "$COMMON_YAML_FILE"
./get-helm-rbac.sh >> "$COMMON_YAML_FILE"
popd &>/dev/stderr