-
Notifications
You must be signed in to change notification settings - Fork 22
OCPKUEUE-319 - Pending Workloads for ClusterQueue #889
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
OCPKUEUE-319 - Pending Workloads for ClusterQueue #889
Conversation
|
Skipping CI for Draft Pull Request. |
|
/hold |
|
/retest |
|
@rphillips @cpmeadors can you please take a look at this PR when you have chance? Thank you. |
|
/unhold |
|
/retest |
I think you should rebase your PR if you haven't tried that yet. |
02f442b to
dbfc853
Compare
|
/retest |
|
Executions for 4.19 are failing for different reasons, the last one I'll print below. However, all tests are passing.
|
|
/retest |
| return createdPriorityClass, cleanup, nil | ||
| } | ||
|
|
||
| // createServiceAccount creates a ServiceAccount in the specified namespaceand returns the created object |
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.
typo: namespaceand
|
/lgtm |
|
/cherry-pick release-1.2 |
|
@kannon92: once the present PR merges, I will cherry-pick it on top of 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/e2e/e2e_operator_test.go
Outdated
| Expect(err).NotTo(HaveOccurred()) | ||
|
|
||
| cleanupClusterQueue, err = testutils.CreateClusterQueue(kueueClient) | ||
| cleanupClusterQueue, err = testutils.CreateClusterQueue(context.TODO(), kueueClient) |
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.
let's use one context at the top of the function.
… visibility API This commit adds comprehensive e2e tests for the pending workloads visibility API functionality, including RBAC verification and priority ordering validation. Key changes: - Add e2e tests for ClusterQueue pending workloads visibility API * Verify admin users can access ClusterQueue pending workloads * Test priority ordering of pending workloads (high, medium, low) * Validate pending workloads list becomes empty after execution - Enhance test utilities * Add helper functions for creating test resources with builder pattern * Add ClusterQueue, LocalQueue, and ResourceFlavor wrapper builders * Add CreateWithObject methods that return created objects and cleanup functions * Add GenerateName support for test resource builders
… visibility API -Add e2e tests for ClusterQueue pending workloads visibility API Verify admin users can access ClusterQueue pending workloads Test priority ordering of pending workloads (high, medium, low) Validate pending workloads list becomes empty after execution Enhance test utilities Add helper functions for creating test resources with builder pattern Add ClusterQueue, LocalQueue, and ResourceFlavor wrapper builders Add CreateWithObject methods that return created objects and cleanup functions Add GenerateName support for test resource builders
- Replace hardcoded 'kueue.openshift.io/managed' with testutils.OpenShiftManagedLabel - Fix context usage in namespace creation (use ctx instead of context.TODO()) - Improves code maintainability and consistency across test suite
…r_test.go - Removed duplicate import of k8s.io/apimachinery/pkg/api/errors - Updated reference from 'errors' to 'apierrors' alias for consistency - Replaced context.TODO() with ctx parameter - No functional changes to e2e_visibility_on_demand_test.go
950c461 to
5ac9a81
Compare
MaysaMacedo
left a comment
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
| DeferCleanup(cleanupLowPriorityClass) | ||
|
|
||
| By("Creating RBAC kueue-batch-admin-role for Visibility API") | ||
| kueueTestSA, err := createServiceAccount(ctx, namespaceA.Name) |
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.
minor suggestion:
When a namespace is created 3 service accounts already exists by default there, so you could re-use one of them instead of creating a new one:
$ kubectl get serviceaccount -n test
NAME SECRETS AGE
builder 1 2m4s
default 1 2m4s
deployer 1 2m4s
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anahas-redhat, rphillips 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 |
|
/cherry-pick release-1.2 |
|
@kannon92: once the present PR merges, I will cherry-pick it on top of 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. |
|
@anahas-redhat: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
|
@kannon92: new pull request created: #960 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. |
This commit adds comprehensive e2e tests for the pending workloads visibility API
functionality, including RBAC verification and priority ordering validation.
Key changes:
Add e2e tests for ClusterQueue pending workloads visibility API
Verify admin users can access ClusterQueue pending workloads
Test priority ordering of pending workloads (high, medium, low)
Validate pending workloads list becomes empty after execution
Enhance test utilities
Add helper functions for creating test resources with builder pattern
Add ClusterQueue, LocalQueue, and ResourceFlavor wrapper builders
Add CreateWithObject methods that return created objects and cleanup functions
Add GenerateName support for test resource builders
Jira link:
https://issues.redhat.com/browse/OCPKUEUE-319