-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Allow for setting imagePullSecrets #2547
Conversation
Hi @NikeNano. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
I have some issues with git and cant squash the commit, will fix it and squash according to the best practice. |
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.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afrittoli 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 |
/ok-to-test |
The feature seems fine to me. Wondering if there are any implications for setting the Perhaps @imjasonh knows ? |
Good point |
friendly ping @imjasonh :) |
/kind feature |
AIUI this will make image pull secrets available, alongside any secrets available to the specified SA. So this shouldn't break any existing users, and should give more options to power users. |
@dibyom is there anything more I can do, except fixing the merge conflict? I have not squashed the commits since there is a merge in the middle and where not able to fix it :(. |
@NikeNano you may need to get the changes and re-apply them on a clean state, something like the following could work # Making sure we are on the branch :)
git checkout image_pull_request
# Merge and fix conflict
git merge origin/master
# … fix conflict
git merge --continue
# generate a diff
git diff origin/master..HEAD > mypr.diff
# backup the branch
git checkout -b backupbranch
# force-reset this PR branch
git checkout origin/master -B image_pull_secret
# apply the diff
git apply mypr.diff
# commit
git commit -s
# force push
git push --force-with-lease origin image_pull_secret
# clean mypr.diff
rm mypr.diff This should be roughly the equivalent of stashing the changes into one commit. In the future, when working on OSS project, it tends to be better to use /hold |
Thanks @vdemeester will fix this tomorrow! |
92faa0f
to
9e882ae
Compare
@vdemeester I have squashed the commit messages. |
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.
Something went wrong in the merge of the docs.
Once this is fixed we can lift the hold and get this merged :)
In K8s, Pods can specify a imagePullSecrets which identifies K8s secrets that the container runtime should use to authorize container image pulls when starting a Pod. To achive this imageSecrets is added to PodTemplate. Signed-off-by: NikeNano <[email protected]> Co-authored-by: JohanWork <[email protected]>
9e882ae
to
077a456
Compare
@afrittoli should be fixed now! |
Is there something I can fix @afrittoli :) |
any updates @afrittoli @vdemeester :) |
/lgtm |
/test pull-tekton-pipeline-integration-tests |
Changes
NOTE: I am not assigned to the issue, but fixed it since I saw that it was stale for some time and thought it would be fun to try to fix it.
This PR updates the PodTemplate with ImagePullSecret to allow for setting image pull secrets. This PR aims to fix issue #1779.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Double check this list of stuff that's easy to miss:
cmd
dir, please updatethe release Task to build and release this image.
Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes