mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 18:18:41 +00:00
[platform] revert API_VERSIONS_FLAGS (#810)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Improved the deployment process to better incorporate API version settings, enhancing the consistency and accuracy of resource generation during deployment. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -8,13 +8,13 @@ show:
|
||||
|
||||
apply:
|
||||
@echo "Applying active HelmReleases..."
|
||||
helm template -n $(NAMESPACE) $(NAME) . --dry-run=server \
|
||||
helm template -n $(NAMESPACE) $(NAME) . --dry-run=server $(API_VERSIONS_FLAGS) \
|
||||
| yq 'select(.metadata.annotations."cozystack.io/marked-for-deletion" != "true")' - \
|
||||
| kubectl apply -f-
|
||||
|
||||
delete:
|
||||
@echo "Deleting marked-for-deletion HelmReleases..."
|
||||
helm template -n $(NAMESPACE) $(NAME) . --dry-run=server \
|
||||
helm template -n $(NAMESPACE) $(NAME) . --dry-run=server $(API_VERSIONS_FLAGS) \
|
||||
| yq 'select(.metadata.annotations."cozystack.io/marked-for-deletion" == "true")' - \
|
||||
| kubectl delete -f - --ignore-not-found=true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user