-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Feature-14421][K8S Task] Configurable image pull policy #14426
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #14426 +/- ##
============================================
- Coverage 38.51% 38.51% -0.01%
+ Complexity 4566 4545 -21
============================================
Files 1237 1236 -1
Lines 43541 43410 -131
Branches 4813 4783 -30
============================================
- Hits 16771 16720 -51
+ Misses 24914 24832 -82
- Partials 1856 1858 +2
... and 38 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have defined Always
and Never
in here:
Lines 482 to 483 in f186cd5
public static final String IMAGE_PULL_POLICY = "Always"; | |
public static final String RESTART_POLICY = "Never"; |
Can we add a new constant IfNotPresent
here and return a select list from API replace defined this in the UI module?
Hi, @qingwli , thanks for your comment. I think image pull policies are relative static options, and it's still possible that user define a k8s task with wrong image pull policy by openAPI. In addition, we have already defined many option list in front-end codes, maybe for simplicity. Thus, considering interaction through UI page, do we have to make this change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi, @qingwli , do you have any other suggestions? |
I agree with you @Radeity |
(cherry picked from commit 65b6a4b)
Purpose of the pull request
Brief change log
IfNotPresent
,Always
,Never
.Verify this pull request