Skip to content

Commit

Permalink
k8s: print timestamp in krb5 sidecar container when renewing ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
audrium committed Dec 16, 2022
1 parent 8d85e61 commit 255f586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reana_commons/k8s/kerberos.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def get_kerberos_k8s_config(
(
"SECONDS=0; "
f"while ! test -f {KRB5_STATUS_FILE_LOCATION}; do "
f"if [ $SECONDS -ge {KRB5_TICKET_RENEW_INTERVAL} ]; then kinit -R; SECONDS=0; fi; "
f"if [ $SECONDS -ge {KRB5_TICKET_RENEW_INTERVAL} ]; then "
'echo "Renewing Kerberos ticket: $(date)"; kinit -R; SECONDS=0; fi; '
f"sleep {KRB5_STATUS_FILE_CHECK_INTERVAL}; done"
)
],
Expand Down

0 comments on commit 255f586

Please sign in to comment.