feat: allow che-operator to detect user-profile secret

Signed-off-by: David Kwon <dakwon@redhat.com>
pull/508/head
David Kwon 2023-05-03 16:22:02 -04:00
parent 75979a6d6a
commit 074d178e3d
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ public class UserProfileConfigurator implements NamespaceConfigurator {
.withName(USER_PROFILE_SECRET_NAME)
.addToLabels(DEV_WORKSPACE_MOUNT_LABEL, "true")
.addToLabels(DEV_WORKSPACE_WATCH_SECRET_LABEL, "true")
.addToLabels("app.kubernetes.io/part-of", "che.eclipse.org")
.addToAnnotations(DEV_WORKSPACE_MOUNT_AS_ANNOTATION, "file")
.addToAnnotations(DEV_WORKSPACE_MOUNT_PATH_ANNOTATION, USER_PROFILE_SECRET_MOUNT_PATH)
.endMetadata()