-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Cleanup tags when component is removed (#28)
When we receive a deletion request for the resource, we will also try to clean the TagBindings associated, which helps clean up unused tagValues/tagkeys residing on the GCP project Tested locally the following scenarios: ---------------------------------------- Multiple Resources created with multiple tags and deleting the resources only deletes the unused tags leaving behind the used tags(Since it is binding to other resources) Tested change in tag key-values which creates the new ones and deletes the old ones if unused. Creation and deletion of tags for single resources. --------- Co-authored-by: jijinp <[email protected]>
- Loading branch information
1 parent
ba2b2ca
commit 623751f
Showing
3 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
go mod tidy | ||
if [ -n "$(git status --porcelain)" ]; then | ||
echo "Working directory is not clean. Please run make generate helm, stash your changes or remove untracked files." | ||
echo "Working directory is not clean. Please run make generate helm or run go mod tidy, stash your changes or remove untracked files." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters