Skip to content

Commit

Permalink
Remove the hack in scripts for certgen job (#4402)
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Vig <rvig@etsy.com>
  • Loading branch information
rajatvig authored Mar 16, 2022
1 parent 584de27 commit 04be670
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 14 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/4402-rajatvig-small.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed the hack for ImagePullPolicy for certgen
2 changes: 1 addition & 1 deletion examples/render/contour-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4908,7 +4908,7 @@ spec:
containers:
- name: contour
image: ghcr.io/projectcontour/contour:main
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
command:
- contour
- certgen
Expand Down
2 changes: 1 addition & 1 deletion examples/render/contour-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4911,7 +4911,7 @@ spec:
containers:
- name: contour
image: ghcr.io/projectcontour/contour:main
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
command:
- contour
- certgen
Expand Down
2 changes: 1 addition & 1 deletion examples/render/contour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4908,7 +4908,7 @@ spec:
containers:
- name: contour
image: ghcr.io/projectcontour/contour:main
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
command:
- contour
- certgen
Expand Down
5 changes: 0 additions & 5 deletions hack/generate-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,9 @@ done

echo

# certgen uses the ':latest' image tag, so it always needs to be pulled. Everything
# else correctly uses versioned image tags so we should use IfNotPresent.
for y in $FILES ; do
echo # Ensure we have at least one newline between joined fragments.
case $y in
*/02-job-certgen.yaml)
cat "$y"
;;
$SKIP_FILE)
# skip this file
;;
Expand Down
6 changes: 0 additions & 6 deletions hack/generate-gateway-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ done

echo

# certgen uses the ':latest' image tag, so it always needs to be pulled. Everything
# else correctly uses versioned image tags so we should use IfNotPresent and updates
# the Contour config for Gateway API.
for y in "${REPO}/examples/contour/"*.yaml ; do
echo # Ensure we have at least one newline between joined fragments.
case $y in
Expand All @@ -43,9 +40,6 @@ for y in "${REPO}/examples/contour/"*.yaml ; do
*/01-contour-config.yaml)
sed 's|# gateway:|gateway:|g ; s|# controllerName: projectcontour.io/projectcontour/contour| controllerName: projectcontour.io/projectcontour/contour|g' < "$y"
;;
*/02-job-certgen.yaml)
cat "$y"
;;
*)
sed 's/imagePullPolicy: Always/imagePullPolicy: IfNotPresent/g' < "$y"
;;
Expand Down

0 comments on commit 04be670

Please sign in to comment.