cozystack/packages/apps
Andrei Kvapil 8513dd6b3f
[virtual-machine] Improve check for resizing job (#1688)
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>

<!-- Thank you for making a contribution! Here are some tips for you:
- Start the PR title with the [label] of Cozystack component:
- For system components: [platform], [system], [linstor], [cilium],
[kube-ovn], [dashboard], [cluster-api], etc.
- For managed apps: [apps], [tenant], [kubernetes], [postgres],
[virtual-machine] etc.
- For development and maintenance: [tests], [ci], [docs], [maintenance].
- If it's a work in progress, consider creating this PR as a draft.
- Don't hesistate to ask for opinion and review in the community chats,
even if it's still a draft.
- Add the label `backport` if it's a bugfix that needs to be backported
to a previous version.
-->

## What this PR does

PVC resizing now only occurs when storage is being increased, preventing
unintended storage reduction operations

### Release note

<!--  Write a release note:
- Explain what has changed internally and for users.
- Start with the same [label] as in the PR title
- Follow the guidelines at
https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md.
-->

```release-note
[virtual-machine] Improve check for resizing job
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* PVC resizing now only triggers when the requested storage increases,
preventing unintended shrink attempts.

* **Enhancements**
* More robust storage-size comparison and validation to accurately
detect growth.
* Resize operations now run only when needed, reducing unnecessary jobs.

* **New Features**
* Added conditional pre-install/pre-upgrade hook workflow to perform
controlled PVC resize jobs.

* **Chores**
  * Minor template formatting cleanup.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-12-09 17:08:39 +01:00
..
bucket [cozystack-api] Implement TenantNamespace, TenantModules, TenantSecret and TenantSecretsTable resources 2025-09-24 18:27:54 +02:00
clickhouse [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
ferretdb [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
foundationdb [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
http-cache Release v0.38.1 (#1668) 2025-11-27 15:53:53 +01:00
kafka [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
kubernetes Granular kubernetes application extensions dependencies (#1683) 2025-12-05 14:44:53 +01:00
mysql [mariadb] Add version management system with automated version updates 2025-12-02 00:36:00 +01:00
nats Use dig function to check for existing secret in NATS app template and prevent nil indexing 2025-11-05 18:12:23 -06:00
postgres [postgres] Add version management system with automated version updates 2025-12-01 23:56:55 +01:00
rabbitmq [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
redis [redis] Add version management system with automated version updates 2025-12-02 00:34:52 +01:00
tcp-balancer [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
tenant Introduce better cleanup logic 2025-11-26 19:01:03 +01:00
virtual-machine [virtual-machine] Improve check for resizing job 2025-12-09 17:08:16 +01:00
vm-disk [virtual-machine] Improve check for resizing job 2025-12-09 17:08:16 +01:00
vm-instance [virtual-machine] Revert per-vm network policies 2025-11-07 11:36:59 +01:00
vpc [vpc] Fix access to subnet details configmap 2025-11-17 19:00:41 +03:00
vpn [dx] JSDoc compatible syntax for values.yaml 2025-10-29 08:57:26 +05:00
Makefile Allign timeouts for HelmReleases 2025-09-24 16:54:17 +02:00
README.md [clickhouse] add clickhouse keeper 2025-08-07 14:07:05 +03:00

How to test packages local

cd packages/core/installer
make image-cozystack REGISTRY=YOUR_CUSTOM_REGISTRY
make apply
kubectl delete po -l app=source-controller -n cozy-fluxcd