-
Notifications
You must be signed in to change notification settings - Fork 105
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
Fail to create task after delete credentials #969
Comments
/kind question |
@adambkaplan: The label(s) 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 @SaschaSchwarze0 |
Hi @lizzzcai, thank you for trying Shipwright. You hit one of our known weak points. :-) What happens is that when you create a BuildRun, the referenced container registry secret (mainly
The service account name should be To prevent this problem from happening, you can specify BuildRuns in the following way: apiVersion: shipwright.io/v1alpha1
kind: BuildRun
metadata:
name: <BUILDRUN_NAME>
spec:
buildRef:
name: <BUILD_NAME>
serviceAccount:
generate: true Then, Shipwright will create a dedicated ServiceAccount for your BuildRun and delete it when it completes. In case you use the Mid-term this whole problem will be gone as we will move towards getting rid of the creds-init usage. This is captured in As a shipwright developer, I want to stop relying on service accounts for mounting my secrets at the pod level #679. |
Thanks @SaschaSchwarze0 , I have tested it and it is working. I will close the issue. |
Hi, I am trying to create a Build CR with output
credentials
(do-secret) to a private registry. The buildRun is working fine.After that, I removed the
credentials
(do-secret) from my build CR, the buildRun still working. (somewhere my credential was cached).If I deleted my
credentials
(do-secret), the buildRun is failed (I didn't mention the credential in the Build CR already). Below is the error:All my buildRun failed after I delete the secret.
The text was updated successfully, but these errors were encountered: