Skip to content

Commit

Permalink
adopt to Job template
Browse files Browse the repository at this point in the history
  • Loading branch information
thr authored and thr committed Apr 26, 2024
1 parent ae2af34 commit 9a6607b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ jobs:
tag: latest
imagePullPolicy: IfNotPresent
restartPolicy: Never
envFrom:
- secretRef:
## -- set secret name '<release>-apigateway-admin-password'
name: apigw-apigateway-admin-password
# -- Schedule job every day ...
schedule: "0 1 * * *"
command: ["/bin/sh"]
args:
- -c
- >-
echo "Purge Transaction Events in [${DEPLOYMENT}]" ... &&
curl -X DELETE -s -u "Administrator:${ADMINISTRATOR_PASSWORD}" "${DEPLOYMENT}:5555/rest/apigateway/apitransactions?eventType=ALL&objectType=Analytics&from=&until=&olderThan=7d" &&
curl -X GET -s -u "Administrator:${ADMINISTRATOR_PASSWORD}" "${DEPLOYMENT}:5555/rest/apigateway/apitransactions/jobs"
curl -X DELETE -s -u "Administrator:${password}" "${DEPLOYMENT}:5555/rest/apigateway/apitransactions?eventType=ALL&objectType=Analytics&from=&until=&olderThan=7d" &&
curl -X GET -s -u "Administrator:${password}" "${DEPLOYMENT}:5555/rest/apigateway/apitransactions/jobs"

0 comments on commit 9a6607b

Please sign in to comment.