-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
tests/infra/Prometheus: create token for test executor to interact with Prometheus resources #13534
base: main
Are you sure you want to change the base?
Conversation
/cc @xpivarc if this fix doesn't look good enough, we can try to switch to a http.Client with the TLSClientConfig that we extract from the executor kubeconfig, and remove the exec command completely.. |
4f164a2
to
a4432d4
Compare
09d6048
to
37fea97
Compare
This commit sets up a ServiceAccount for the test executor to use when making requests to the Kubernetes API to interact with the Prometheus resource and its subresources. This ensures the tests can authenticate properly and access the required endpoints. Signed-off-by: Daniel Sionov <[email protected]>
37fea97
to
7fd7487
Compare
/test pull-kubevirt-e2e-k8s-1.30-sig-monitoring |
@dasionov: 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-sigs/prow repository. |
b11a5bd
to
82e225e
Compare
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring |
82e225e
to
5b6c953
Compare
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring |
5b6c953
to
dd15c32
Compare
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring |
dd15c32
to
68e815c
Compare
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring |
68e815c
to
3097377
Compare
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring |
/test pull-kubevirt-e2e-k8s-1.31-sig-compute |
9fc6cee
to
3097377
Compare
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring |
3097377
to
4489123
Compare
/test ? |
@xpivarc: The following commands are available to trigger required jobs:
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-sigs/prow repository. |
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring |
4489123
to
7c0c5a3
Compare
Signed-off-by: Daniel Sionov <[email protected]>
7c0c5a3
to
5e822ab
Compare
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring |
1 similar comment
/test pull-kubevirt-e2e-k8s-1.31-sig-monitoring |
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
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xpivarc 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 |
Required labels detected, running phase 2 presubmits: |
What this PR does
Before this PR
This Pr fixes what #13372 tried to accomplish.
The kubeconfig doesn't use a token for the admin, which renders the
config.BearerToken
empty.After this PR
The test now creates a dedicated
ServiceAccount
and uses a generated token for authentication. This token is explicitly associated with the required permissions to access Prometheus-related resources and subresources. This replaces the incorrect reliance onBearerToken
and ensures proper authentication.Fixes #
Release note