1
0
mirror of https://github.com/google/nomulus synced 2025-12-23 06:15:42 +00:00

Exclude prober endoint from sed command canary (#2739)

This commit is contained in:
Pavlo Tkach
2025-04-07 17:13:13 -04:00
committed by GitHub
parent 1096f201cd
commit 03872b508f
2 changed files with 7 additions and 1 deletions

View File

@@ -47,6 +47,9 @@ do
sed s/PROXY_ENV/"${environment}_canary"/g | \ sed s/PROXY_ENV/"${environment}_canary"/g | \
sed s/EPP/"epp-canary"/g | \ sed s/EPP/"epp-canary"/g | \
sed s/"${service}"/"${service}-canary"/g | \ sed s/"${service}"/"${service}-canary"/g | \
# Undo prober endpoint replacement done in the previous line.
# The link should stay as /ready/${service}.
sed s/"ready\/${service}-canary"/"ready\/${service}"/g | \
kubectl apply --grace-period=1 -f - kubectl apply --grace-period=1 -f -
kubectl rollout restart deployment/${service}-canary kubectl rollout restart deployment/${service}-canary
done done

View File

@@ -211,7 +211,10 @@ steps:
sed s/ENVIRONMENT/${env}/g | \ sed s/ENVIRONMENT/${env}/g | \
sed s/PROXY_ENV/"${env}_canary"/g | \ sed s/PROXY_ENV/"${env}_canary"/g | \
sed s/EPP/"epp-canary"/g | \ sed s/EPP/"epp-canary"/g | \
sed s/${service}/${service}-canary/g \ sed s/${service}/${service}-canary/g | \
# Undo prober endpoint replacement done in the previous line.
# The link should stay as /ready/${service}.
sed s/"ready\/${service}-canary"/"ready\/${service}"/g \
> ./jetty/kubernetes/nomulus-${env}-${service}-canary.yaml > ./jetty/kubernetes/nomulus-${env}-${service}-canary.yaml
# Proxy '--log' flag does not work on production. # Proxy '--log' flag does not work on production.
if [ ${env} == production ] if [ ${env} == production ]