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
Bug 1929577: Fix to avoid overriding of d/dc pod template container values #8201
Bug 1929577: Fix to avoid overriding of d/dc pod template container values #8201
Conversation
@divyanshiGupta: This pull request references Bugzilla bug 1929577, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc: @christianvogt |
4ded703
to
140a80b
Compare
Hi, @divyanshiGupta. Does this also address the incorrect |
@spadgett I created a separate bug https://issues.redhat.com/browse/ODC-5546 for that issue. But if needed I can add the fix in this PR only or raise a separate PR tomorrow. |
OK, thanks. We'll probably want to backport both fixes. I'd recommend either fixing both in one PR or creating separate Bugzilla bugs. |
140a80b
to
a4c364e
Compare
@divyanshiGupta: This pull request references Bugzilla bug 1929577, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
@divyanshiGupta: This pull request references Bugzilla bug 1929577, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
a4c364e
to
d6df541
Compare
/assign @andrewballantyne |
/cherry-pick release-4.7 |
@spadgett: once the present PR merges, I will cherry-pick it on top of release-4.7 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cherry-pick release-4.6 |
@spadgett: once the present PR merges, I will cherry-pick it on top of release-4.6 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
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.
/approve
Code changes looks good to me. Tested locally for both env variables and trigger annotation issue. Works as expected.
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyanshiGupta, rohitkrai03 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@divyanshiGupta: All pull requests linked via external trackers have merged: Bugzilla bug 1929577 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@spadgett: new pull request created: #8248 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@spadgett: #8201 failed to apply on top of branch "release-4.6":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@divyanshiGupta Looks like we will need to manually backport to 4.6.z unfortunately. |
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1929577
Fixes: https://issues.redhat.com/browse/ODC-5546
Root Cause:
Currently on editing d/dc using edit flow overrides the current resource containers completely with new resource containers https://github.com/openshift/console/pull/4517/files#diff-7fd530a4a1b4113f74f1e7e64beadbdb448845c1fad06d6a4d4824425583c2d6R53-R55 not taking in account the values that we dont add from UI like envFrom, imagePullPolicy etc thereby removing these values from the containers.
In container image flow when imagestream from internal registry is selected then its name is wrongly used as container name in the trigger annotation.
Solution:
Do not completely override the containers instead update only the values that we add from UI and leave other values as is.
Use correct container name in trigger annotation.
Gif:
Unit Test Coverage:
/kind bug