-
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
fix(taskrun): emit warning for missing secret in ServiceAccount instead of failing #7761
fix(taskrun): emit warning for missing secret in ServiceAccount instead of failing #7761
Conversation
Hi @l-qing. 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. |
The following is the coverage report on the affected files.
|
3833963
to
cf93527
Compare
The following is the coverage report on the affected files.
|
cf93527
to
9b649ae
Compare
The following is the coverage report on the affected files.
|
9b649ae
to
16f4ccf
Compare
The following is the coverage report on the affected files.
|
/auto-cc |
16f4ccf
to
7bc44a4
Compare
The following is the coverage report on the affected files.
|
/auto-cc |
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.
/ok-to-test
The following is the coverage report on the affected files.
|
7bc44a4
to
0a981b9
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
0a981b9
to
8f7aac5
Compare
/retest-required |
The following is the coverage report on the affected files.
|
/retest-required |
/test pull-tekton-pipeline-go-coverage-df |
@l-qing: The specified target(s) for
The following commands are available to trigger optional jobs:
Use 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. |
The following is the coverage report on the affected files.
|
b6c299b
to
fb1aba0
Compare
The following is the coverage report on the affected files.
|
/test pull-tekton-pipeline-go-coverage-df |
@l-qing: The specified target(s) for
The following commands are available to trigger optional jobs:
Use 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. |
The following is the coverage report on the affected files.
|
fb1aba0
to
da67b6e
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/retest-required |
…ad of failing fix tektoncd#7760 Log a warning if a Secrets in service account does not exist
da67b6e
to
51b48d8
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
/test pull-tekton-pipeline-integration-tests |
/test pull-tekton-pipeline-go-coverage-df |
@l-qing: The specified target(s) for
The following commands are available to trigger optional jobs:
Use 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. |
The following is the coverage report on the affected files.
|
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
@@ -51,7 +56,8 @@ var dnsLabel1123Forbidden = regexp.MustCompile("[^a-zA-Z0-9-]+") | |||
// Any errors encountered during this process are returned to the | |||
// caller. If no matching annotated secrets are found, nil lists with a | |||
// nil error are returned. | |||
func credsInit(ctx context.Context, serviceAccountName, namespace string, kubeclient kubernetes.Interface) ([]string, []corev1.Volume, []corev1.VolumeMount, error) { | |||
func credsInit(ctx context.Context, obj runtime.Object, serviceAccountName, namespace string, kubeclient kubernetes.Interface) ([]string, []corev1.Volume, []corev1.VolumeMount, error) { |
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 serviceAccountName
could not be obtained from the runtime.Object
by casting it to a task, but this approach keeps the code simpler the che change smaller, so I'm fine with it.
[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 |
/lgtm |
fix #7760
Log a warning if a Secrets in service account does not exist
Changes
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes
/kind bug