-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
Bug Report
What did you do?
Setting a custom directory for TLS_DIR will cause a duplicate definition in the Pod that favours the default /etc/x509/certs instead of /other/directory.
spec:
env:
- name: TLS_DIR
value: /other/directory
What did you expect to see?
Setting a custom directory for TLS_DIR should set it to /other/directory.
What did you see instead?
Pod shows TLS_DIR as /etc/x509/certs
Possible solution
This line should be ignored when appContainer.Env already contains TLS_DIR
runtime-component-operator/utils/utils.go
Line 689 in e673c1d
| appContainer.Env = append(appContainer.Env, corev1.EnvVar{Name: "TLS_DIR", Value: "/etc/x509/certs"}) |
The change will also involve passing the env value here
runtime-component-operator/utils/utils.go
Line 700 in e673c1d
| MountPath: "/etc/x509/certs", |
Reactions are currently unavailable