Skip to content

fix(k8s): ClusterIP resolution, manual persistence, safe Service cleanup#95

Merged
oleksandr-nc merged 6 commits intomainfrom
fix/k8s-manual-expose-persistence
Mar 20, 2026
Merged

fix(k8s): ClusterIP resolution, manual persistence, safe Service cleanup#95
oleksandr-nc merged 6 commits intomainfrom
fix/k8s-manual-expose-persistence

Conversation

@oleksandr-nc
Copy link
Contributor

During writing CI tests for Ks in AppAPI found some bugs and resolved them:

  1. Use spec.clusterIP instead of DNS name for ClusterIP Service resolution - DNS names only resolve inside the cluster but HaRP often runs outside (Docker on host)
  2. Persist manual expose upstream config as Deployment annotations so it survives cache eviction and HaRP restarts
  3. Only delete Services with managed-by=harp label on ExApp removal - preserves operator-managed Services (manual expose)
  4. Treat pod Succeeded phase as successful start in waitExAppStart - fixes race condition with init-only apps (e.g. app-skeleton-python) that exit before the readiness check runs
  5. Default expose_type changed from nodeport to clusterip to match Kubernetes standard

https://github.com/nextcloud/app_api/actions/runs/23335605674?pr=783
https://github.com/nextcloud/app_api/actions/runs/23335605697?pr=783
https://github.com/nextcloud/app_api/actions/runs/23335605711?pr=783

@oleksandr-nc oleksandr-nc requested a review from kyteinsky as a code owner March 20, 2026 09:35
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc oleksandr-nc force-pushed the fix/k8s-manual-expose-persistence branch from c8407a1 to 99bed2c Compare March 20, 2026 09:36
@oleksandr-nc oleksandr-nc merged commit e306a6b into main Mar 20, 2026
3 checks passed
@oleksandr-nc oleksandr-nc deleted the fix/k8s-manual-expose-persistence branch March 20, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants