[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:
Andrei Kvapil
2025-04-14 14:40:32 +02:00
committed by GitHub

View File

@@ -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