Skip to content

Commit

Permalink
nsfs - add mounted nsr name to env. DFBUGS-153
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Prinz Setter <[email protected]>
  • Loading branch information
alphaprinz committed Nov 28, 2024
1 parent a79c6b5 commit e602b40
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/system/phase4_configuring.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e602b40

Please sign in to comment.