Skip to content

Commit

Permalink
[YUNIKORN-1977] Added E2E test for deploying pod and verifying user i…
Browse files Browse the repository at this point in the history
…nfo with non-kube-admin user
  • Loading branch information
rrajesh-cloudera committed Sep 14, 2024
1 parent f4e55e3 commit 9412297
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/e2e/user_group_limit/user_group_limit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -934,24 +934,28 @@ var _ = ginkgo.Describe("UserGroupLimit", func() {
clientset = kClient.GetClient()
ginkgo.By("Update config")
// The wait wrapper still can't fully guarantee that the config in AdmissionController has been updated.
admissionCustomConfig = map[string]string{
"log.core.scheduler.ugm.level": "debug",
amconf.AMAccessControlBypassAuth: constants.False,
}
yunikorn.WaitForAdmissionControllerRefreshConfAfterAction(func() {
yunikorn.UpdateCustomConfigMapWrapperWithMap(oldConfigMap, "", nil, func(sc *configs.SchedulerConfig) error {
yunikorn.UpdateCustomConfigMapWrapperWithMap(oldConfigMap, "", admissionCustomConfig, func(sc *configs.SchedulerConfig) error {
// remove placement rules so we can control queue
sc.Partitions[0].PlacementRules = nil

err := common.AddQueue(sc, constants.DefaultPartition, constants.RootQueue, configs.QueueConfig{
Name: "default",
Limits: []configs.Limit{
{
Limit: "group entry",
Limit: "user entry",
Users: []string{user1},
MaxApplications: 1,
MaxResources: map[string]string{
siCommon.Memory: fmt.Sprintf("%dM", mediumMem),
},
},
{
Limit: "wildcard group entry",
Limit: "user2 entry",
Users: []string{user2},
MaxApplications: 2,
MaxResources: map[string]string{
Expand Down

0 comments on commit 9412297

Please sign in to comment.