From e602b40394fa057f899b5d6c7f13c5127bb719ef Mon Sep 17 00:00:00 2001 From: Amit Prinz Setter Date: Wed, 27 Nov 2024 22:52:07 -0800 Subject: [PATCH] nsfs - add mounted nsr name to env. DFBUGS-153 Signed-off-by: Amit Prinz Setter --- pkg/system/phase4_configuring.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/system/phase4_configuring.go b/pkg/system/phase4_configuring.go index 87062c6c9..1b6e1df1a 100644 --- a/pkg/system/phase4_configuring.go +++ b/pkg/system/phase4_configuring.go @@ -606,6 +606,15 @@ func (r *Reconciler) setDesiredEndpointMounts(podSpec *corev1.PodSpec, container SubPath: subPath, }) } + + //this is a way to let containers explicitly know + //that an nsr should be mounted on them + envVar := corev1.EnvVar{ + Name: "NSFS_NSR_" + nsStore.Name, + Value: "mounted", + } + + util.MergeEnvArrays(&container.Env, &[]corev1.EnvVar{envVar}); } } return nil