test.crds.generate.sh 299 B

12345678910
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
  4. BUNDLE_DIR="${1}"
  5. OUTPUT_DIR="${2}"
  6. cd "${SCRIPT_DIR}"/../
  7. # Split the generated bundle yaml file
  8. yq e -Ns "\"${OUTPUT_DIR}/\" + .spec.names.singular" "${BUNDLE_DIR}"/bundle.yaml