Page MenuHomePhabricator
Paste P96531

(An Untitled Masterwork)
ActivePublic

Authored by Joe on Mon, Sep 28, 3:37 PM.
Project Tags
None
Referenced Files
F105281004: raw-paste-data.txt
Mon, Sep 28, 3:37 PM
Subscribers
None
POD_CREATION_DATE=$(date --date=$(kubectl -n shellbox-timeline get pods -o json | jq '.items | .[0] | .metadata.creationTimestamp' | sed -e s/\"//g) +"%s")
CERT_CREATION_TIME=$(date --date=$(kubectl -n shellbox-timeline get certificates -o json | jq '.items | .[0] | .status.notBefore' | sed -e s/\"//g) +"%s")
if [ $CERT_CREATION_TIME -gt $POD_CREATION_DATE ]; then
pushd /srv/deployment-charts/services/helmfile.d/shellbox-timeline
helmfile -e eqiad --state-values-set roll_restart=1 sync
fi

Event Timeline