Skip to content

Commit

Permalink
[YUNIKORN-1977] restoring old kubeconfig file
Browse files Browse the repository at this point in the history
  • Loading branch information
rrajesh-cloudera committed Sep 16, 2024
1 parent 334cbb0 commit 4daafa0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e/user_group_limit/user_group_limit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,12 @@ var _ = ginkgo.Describe("UserGroupLimit", func() {
gomega.Ω(err).NotTo(HaveOccurred())
err = kClient.DeleteClusterRoleBindings("pod-creator-role-binding")
gomega.Ω(err).NotTo(HaveOccurred())
// update the kubeconfig with oldkubeconfig
ginkgo.By("Restoring Kubeconfig...")
if oldKubeconfigContent != nil {
err := os.WriteFile(oldKubeconfigPath, oldKubeconfigContent, 0600)
gomega.Ω(err).NotTo(HaveOccurred())
}
queueName2 := "root_22"
yunikorn.UpdateCustomConfigMapWrapper(oldConfigMap, "", func(sc *configs.SchedulerConfig) error {
// remove placement rules so we can control queue
Expand Down

0 comments on commit 4daafa0

Please sign in to comment.