Skip to content

Commit

Permalink
unpause cluster in cleanup hook (#236)
Browse files Browse the repository at this point in the history
* unpause cluster in cleanup hook

* changelog
  • Loading branch information
anvddriesch authored Jul 16, 2024
1 parent db12dbd commit 729f2a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Unpause Cluster resource as part of cleanup hook after deletion in order to prevent leftover resources.

## [0.56.0] - 2024-07-10

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ spec:
echo "Deleting helmchart $chart"
kubectl delete -n ${NAMESPACE} helmchart "${chart}" --ignore-not-found=true
done
echo "Unpausing cluster ${CLUSTER_NAME}" to allow deletion..."
kubectl patch -n ${NAMESPACE} cluster "${CLUSTER_NAME}" --type=merge -p '{"spec": {"paused": false}}'
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down Expand Up @@ -160,4 +163,4 @@ spec:
endpointSelector:
matchLabels:
cnp: {{ include "resource.default.name" $ }}-cleanup-helmreleases-hook
{{- end }}
{{- end }}

0 comments on commit 729f2a9

Please sign in to comment.