containerized-data-importer/vendor/github.com/openshift/custom-resource-status/tools/update-deepcopy.sh
Alexander Wels 45eecea14e
Added conditions to match the HCO requirements. (#910)
Signed-off-by: Alexander Wels <awels@redhat.com>
2019-08-28 18:36:44 -04:00

15 lines
480 B
Bash
Executable File

#!/bin/bash
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/..
CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${SCRIPT_ROOT}; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../../../k8s.io/code-generator)}
verify="${VERIFY:-}"
bash ${CODEGEN_PKG}/generate-groups.sh "deepcopy" \
github.com/openshift/custom-resource-status/generated \
github.com/openshift/custom-resource-status \
"conditions:v1" \
"objectreferences:v1" \
--go-header-file ${SCRIPT_ROOT}/tools/empty.txt \
${verify}