Skip to content

Commit

Permalink
fix: resource-cleaner script was missing "#!/bin/bash"
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Perez <jorge.perez@rackspace.com>
  • Loading branch information
japerezjr committed Sep 16, 2024
1 parent d08f8c4 commit 8d779b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions base-kustomize/gnocchi/base/configmap-bin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,13 @@ data:
key: $( echo ${ENCODED_KEYRING} )
EOF
kubectl apply --namespace ${NAMESPACE} -f ${SECRET}
gnocchi-resources-cleaner.sh: |
#!/bin/bash
set -ex
echo "Purging the deleted resources with its associated metrics which have lived more than ${DELETED_RESOURCES_TTL}"
gnocchi resource batch delete "ended_at < '-${DELETED_RESOURCES_TTL}'"
exit 0

0 comments on commit 8d779b6

Please sign in to comment.