Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the hack in scripts for certgen job #4402

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

rajatvig
Copy link
Member

examples/render: Set the imagePullPolicy for certen job to IfNotPresent

Set the imagePullPolicy for certen job to IfNotPresent

Fixes #4318

Signed-off-by: Rajat Vig rvig@etsy.com

Signed-off-by: Rajat Vig <rvig@etsy.com>
@rajatvig rajatvig requested a review from a team as a code owner March 16, 2022 00:23
@rajatvig rajatvig requested review from tsaarni and stevesloka and removed request for a team March 16, 2022 00:23
@codecov
Copy link

codecov bot commented Mar 16, 2022

Codecov Report

Merging #4402 (6eb0fd2) into main (584de27) will decrease coverage by 0.00%.
The diff coverage is n/a.

❗ Current head 6eb0fd2 differs from pull request most recent head e332f19. Consider uploading reports for the commit e332f19 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4402      +/-   ##
==========================================
- Coverage   78.34%   78.33%   -0.01%     
==========================================
  Files         113      113              
  Lines       10196    10196              
==========================================
- Hits         7988     7987       -1     
- Misses       2025     2026       +1     
  Partials      183      183              
Impacted Files Coverage Δ
internal/sorter/sorter.go 98.18% <0.00%> (-0.61%) ⬇️

Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, thanks!

@rajatvig
Copy link
Member Author

@youngnick Would you know why the build failed for release notes? Do not see any options to add release note labels.

@sunjayBhatia sunjayBhatia added the release-note/small A small change that needs one line of explanation in the release notes. label Mar 16, 2022
@sunjayBhatia sunjayBhatia merged commit 04be670 into projectcontour:main Mar 16, 2022
@rajatvig rajatvig deleted the issue-4318 branch March 16, 2022 13:51
@@ -4908,7 +4908,7 @@ spec:
containers:
- name: contour
image: ghcr.io/projectcontour/contour:main
imagePullPolicy: Always
imagePullPolicy: IfNotPresent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was set this way on the main branch because if not you'd never get an updated version of it. The versioned examples do change this to Always.

Copy link
Member

@skriss skriss Mar 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevesloka I think you're suggesting that we move this logic out of this script that generates the rendered manifests on all branches, and into https://github.com/projectcontour/contour/blob/main/hack/release/make-release-tag.sh so it only applies to rendered manifests on release branches?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess my point was on the main branch, if you used this code (which you really shouldn't but only in a dev/test env), then the 2nd time you updated you wouldn't get the new version of Contour since there's a version already present on the machine. =)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep makes sense -- this has been true for the contour serve, bootstrap and shutdown manager image refs for a long time so odds are nobody's actually using this manifest anyway, but filed #4404 to track the additional change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/small A small change that needs one line of explanation in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

certgen job can use an IfNotPresent image pull policy
5 participants