#!/bin/sh # This scripts adds common fluxcd labels to all objects if [ -z "$NAME" ]; then echo 'Variable $NAME is not set!' >&2 exit 1 fi if [ -z "$NAMESPACE" ]; then echo 'Variable $NAMESPACE is not set!' >&2 exit 1 fi TMP_DIR=$(mktemp -d) cat - > "${TMP_DIR}/helm-generated-output.yaml" cat > "${TMP_DIR}/global-labels.yaml" < "${TMP_DIR}/kustomization.yaml" <