diff --git a/vertical-pod-autoscaler/hack/vpa-process-yamls.sh b/vertical-pod-autoscaler/hack/vpa-process-yamls.sh index 6233c735e3a2..b68ebe912ffc 100755 --- a/vertical-pod-autoscaler/hack/vpa-process-yamls.sh +++ b/vertical-pod-autoscaler/hack/vpa-process-yamls.sh @@ -63,7 +63,8 @@ fi for i in $COMPONENTS; do if [ $i == admission-controller-deployment ] ; then - if [ ${ACTION} == create ] ; then + if [[ ${ACTION} == create || ${ACTION} == update ]] ; then + # Allow gencerts to fail silently if certs already exist (bash ${SCRIPT_ROOT}/pkg/admission-controller/gencerts.sh || true) elif [ ${ACTION} == delete ] ; then (bash ${SCRIPT_ROOT}/pkg/admission-controller/rmcerts.sh || true)