adamant-kite-43734
12/29/2022, 12:24 PMbitter-hairdresser-7812
12/29/2022, 10:17 PMadamant-france-62364
12/29/2022, 10:24 PMsubPathExpr
approach does work, and that's what we're going with now.
I haven't tried changing/adding a mountPoint
in overlay.yaml
. For one thing, mountPoint is barely documented, but I can see it in the source code.adamant-france-62364
12/29/2022, 10:59 PMspec:
containers:
- name: example
envFrom:
- configMapRef:
name: user # USER=
volumeMounts:
- name: users
mountPath: /some/path
subPathExpr: $(USER)
readOnly: true
volumes:
- name: users
hostPath:
path: /Users
type: Directory