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