-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
releng: update pull-release-image-kube-cross to set the cluster where it should run #20703
releng: update pull-release-image-kube-cross to set the cluster where it should run #20703
Conversation
/hold to see how to fix that |
@spiffxp @saschagrunert @hasheddan We need to trigger a GCB build for PRs to test the images, but looks like the |
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.
@cpanato I am guessing this is by design as typically we wouldn't be using this SA in a presubmit. However, in this specific case we have set up a testing repo so I would think the optimal scenario here would be to put a scoped token in the untrusted cluster if we want to maintain the idea of not running presubmits in trusted. Would defer to @spiffxp to weigh in though.
@hasheddan agree with you on this, lets wait for Aaron to see other options |
The reason the clusters are called "trusted" is that we don't want them running "untrusted" code, e.g. presubmits. We treat the act of merging as the line of trust... code has passed tests, and the relevant humans have reviewed it. So postubmits/periodics on trusted clusters are fine, but not presubmits. @hasheddan's suggestion of scoped SA in untrusted cluster SGTM, PR to kubernetes/k8s.io would look something like:
Now might be a good time to start adding some enforcement around which jobs are allowed to use which service accounts via tests in config/tests/jobs (ssuggested this in kubernetes/k8s.io#1393 (comment)) This approach would also be baby steps toward "we should probably be using a service account per staging project" which might help address gcb quota issues #20652 |
@@ -84,6 +84,7 @@ presubmits: | |||
testgrid-alert-email: [email protected] | |||
testgrid-num-columns-recent: '30' | |||
- name: pull-release-image-kube-cross | |||
cluster: k8s-infra-prow-build-trusted |
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.
change this to k8s-infra-prow-build
change L93 to serviceAccountName: gcb-builder-releng-test
(ref: kubernetes/k8s.io#1626)
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.
thanks @spiffxp. updated
6263ff2
to
5e6de58
Compare
5e6de58
to
a834252
Compare
@@ -102,6 +103,13 @@ presubmits: | |||
env: | |||
- name: LOG_TO_STDOUT | |||
value: "y" | |||
resources: | |||
requests: | |||
cpu: 1000m |
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.
the job will run on GCB so I don't think we need many resources
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
/hold cancel
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, spiffxp 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 |
@cpanato: Updated the
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. |
follow up of #20689
the default cluster does not have the service account that is needed for this job, so adding the cluster that contains the setup
The error when the job tried to run
/assign @saschagrunert @hasheddan @xmudrii @puerco
cc: @kubernetes/release-engineering