Skip to content

Commit

Permalink
Merge pull request #6160 from Shubham82/Cherry-pick-of-#6151-to-VPA-r…
Browse files Browse the repository at this point in the history
…elease-1.0-branch

Cherry pick #6151 to VPA release 1.0 branch
  • Loading branch information
k8s-ci-robot authored Oct 4, 2023
2 parents 30be2a3 + 287b3aa commit 6ac9929
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions vertical-pod-autoscaler/hack/vpa-process-yamls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,16 @@ if [ $# -gt 2 ]; then
fi

ACTION=$1
COMPONENTS="vpa-v1-crd-gen vpa-rbac updater-deployment recommender-deployment admission-controller-deployment recommender-externalmetrics-deployment"
TEST_COMPONENTS=(recommender-externalmetrics-deployment)
COMPONENTS="vpa-v1-crd-gen vpa-rbac updater-deployment recommender-deployment admission-controller-deployment"

function script_path {
# Regular components have deployment yaml files under /deploy/. But some components only have
# test deployment yaml files that are under hack/e2e. If $1 is one of ${TEST_COMPONENTS}, use
# the hack/e2e subdir instead of deploy.
if printf '%s\0' "${TEST_COMPONENTS[@]}" | grep -Fqxz -- $1; then
echo "${SCRIPT_ROOT}/hack/e2e/${1}.yaml"
else
# test deployment yaml files that are under hack/e2e. Check the main deploy directory before
# using the e2e subdirectory.
if test -f "${SCRIPT_ROOT}/deploy/${1}.yaml"; then
echo "${SCRIPT_ROOT}/deploy/${1}.yaml"
else
echo "${SCRIPT_ROOT}/hack/e2e/${1}.yaml"
fi
}

Expand Down

0 comments on commit 6ac9929

Please sign in to comment.