We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08cbfa1 commit a7bcf7aCopy full SHA for a7bcf7a
1 file changed
reana_commons/k8s/kerberos.py
@@ -126,6 +126,12 @@ def get_kerberos_k8s_config(
126
"volumeMounts": [secrets_volume_mount] + volume_mounts,
127
"env": env,
128
"securityContext": {"runAsUser": kubernetes_uid},
129
+ "lifecycle": {
130
+ # make sure we stop the sidecar container when the pod is stopped,
131
+ # for example when the run-batch pod is terminated by reana-workflow-controller
132
+ # after the workflow finishes (either successfully or with an error)
133
+ "preStop": {"exec": {"command": ["touch", KRB5_STATUS_FILE_LOCATION]}}
134
+ },
135
}
136
137
return KerberosConfig(
0 commit comments