Skip to content

Commit

Permalink
Merge pull request #7306 from adrianmoisey/fix_gencert
Browse files Browse the repository at this point in the history
fix: Generate certs for VPA on kubectl apply or create
  • Loading branch information
k8s-ci-robot authored Sep 24, 2024
2 parents b644c13 + 6292c71 commit a4e6018
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vertical-pod-autoscaler/hack/vpa-process-yamls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a4e6018

Please sign in to comment.