Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2605,6 +2605,8 @@ periodics:
- agent: kubernetes
cluster: build01
decorate: true
decoration_config:
timeout: 8h0m0s
interval: 24h
labels:
job-env: aws
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2601,6 +2601,8 @@ periodics:
- agent: kubernetes
cluster: build01
decorate: true
decoration_config:
timeout: 8h0m0s
interval: 24h
labels:
job-env: aws
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,8 @@ periodics:
- agent: kubernetes
cluster: build01
decorate: true
decoration_config:
timeout: 8h0m0s
interval: 24h
labels:
job-env: aws
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2074,6 +2074,8 @@ periodics:
- agent: kubernetes
cluster: build01
decorate: true
decoration_config:
timeout: 8h0m0s
interval: 24h
labels:
job-env: aws
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export AWS_SHARED_CREDENTIALS_FILE="${CLUSTER_PROFILE_DIR}/.awscred"

CONFIG="${SHARED_DIR}/install-config.yaml"

expiration_date=$(date -d '4 hours' --iso=minutes --utc)
expiration_date=$(date -d '8 hours' --iso=minutes --utc)

function join_by { local IFS="$1"; shift; echo "$*"; }

Expand Down
4 changes: 2 additions & 2 deletions core-services/ipi-deprovision/gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ logdir="${ARTIFACTS}/deprovision"
mkdir -p "${logdir}"


gce_cluster_age_cutoff="$(TZ=":America/Los_Angeles" date --date="${CLUSTER_TTL}-4 hours" '+%Y-%m-%dT%H:%M%z')"
gce_cluster_age_cutoff="$(TZ=":America/Los_Angeles" date --date="${CLUSTER_TTL}-8 hours" '+%Y-%m-%dT%H:%M%z')"
echo "deprovisioning clusters with a creationTimestamp before ${gce_cluster_age_cutoff} in GCE ..."
export CLOUDSDK_CONFIG=/tmp/gcloudconfig
mkdir -p "${CLOUDSDK_CONFIG}"
Expand Down Expand Up @@ -60,7 +60,7 @@ done

wait

gcs_bucket_age_cutoff="$(TZ="GMT" date --date="${CLUSTER_TTL}-4 hours" '+%a, %d %b %Y %H:%M:%S GMT')"
gcs_bucket_age_cutoff="$(TZ="GMT" date --date="${CLUSTER_TTL}-8 hours" '+%a, %d %b %Y %H:%M:%S GMT')"
gcs_bucket_age_cutoff_seconds="$(date --date="${gcs_bucket_age_cutoff}" '+%s')"
echo "deleting GCS buckets with a creationTimestamp before ${gcs_bucket_age_cutoff} in GCE ..."
buckets=()
Expand Down