From 8e285fddaec4e659eb9423f8322eb96f285af318 Mon Sep 17 00:00:00 2001 From: Daniel Lutz Date: Thu, 14 Nov 2024 10:13:46 -0300 Subject: [PATCH] Remove the -generated to oauth-client volume name --- .../controllers/notebook_controller_test.go | 2 +- .../odh-notebook-controller/controllers/notebook_webhook.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/odh-notebook-controller/controllers/notebook_controller_test.go b/components/odh-notebook-controller/controllers/notebook_controller_test.go index ef39fa6e0e2..9bf386dbddd 100644 --- a/components/odh-notebook-controller/controllers/notebook_controller_test.go +++ b/components/odh-notebook-controller/controllers/notebook_controller_test.go @@ -648,7 +648,7 @@ var _ = Describe("The Openshift Notebook controller", func() { Name: "oauth-client", VolumeSource: corev1.VolumeSource{ Secret: &corev1.SecretVolumeSource{ - SecretName: Name + "-oauth-client-generated", + SecretName: Name + "-oauth-client", DefaultMode: pointer.Int32Ptr(420), }, }, diff --git a/components/odh-notebook-controller/controllers/notebook_webhook.go b/components/odh-notebook-controller/controllers/notebook_webhook.go index 1e1387f4c9f..1739f06a75d 100644 --- a/components/odh-notebook-controller/controllers/notebook_webhook.go +++ b/components/odh-notebook-controller/controllers/notebook_webhook.go @@ -214,7 +214,7 @@ func InjectOAuthProxy(notebook *nbv1.Notebook, oauth OAuthConfig) error { Name: "oauth-client", VolumeSource: corev1.VolumeSource{ Secret: &corev1.SecretVolumeSource{ - SecretName: notebook.Name + "-oauth-client-generated", + SecretName: notebook.Name + "-oauth-client", DefaultMode: pointer.Int32Ptr(420), }, },