Skip to content

feat(api): allow dependencies on any Kubernetes resource#1653

Open
vecil wants to merge 1 commit into
fluxcd:mainfrom
vecil:refactor/allow-dependencies-on-any-k8s-resource
Open

feat(api): allow dependencies on any Kubernetes resource#1653
vecil wants to merge 1 commit into
fluxcd:mainfrom
vecil:refactor/allow-dependencies-on-any-k8s-resource

Conversation

@vecil
Copy link
Copy Markdown

@vecil vecil commented May 6, 2026

Summary

Kustomizations can now depend on any Kubernetes object, improving flexibility in ordering and readiness handling.

Dependencies can reference arbitrary Kubernetes resources and are considered satisfied based on either existence or readiness (via the ready field). Defaults are applied during reconciliation for Kustomization entries to ensure backward compatibility.

Changes include:

  • Extend DependencyReference with optional apiVersion, kind, and ready fields
  • Use the fluxcd/cli-utils/pkg/kstatus/status package for readiness evaluation of referenced resources
  • Improve tests to cover dependencies on arbitrary resource types

Relates fluxcd/flux2#5879

@matheuscscp
Copy link
Copy Markdown
Member

Curious in what world this is a refactor? 😅

@vecil
Copy link
Copy Markdown
Author

vecil commented May 7, 2026

Curious in what world this is a refactor? 😅

You’re definitely right, I treated the added fields as a non-breaking refactor, but they do change the contract. I apologize for the misclassification.

@vecil vecil changed the title refactor(api): allow dependencies on any Kubernetes resource feat(api): allow dependencies on any Kubernetes resource May 7, 2026
@vecil vecil force-pushed the refactor/allow-dependencies-on-any-k8s-resource branch from a87d6d4 to 1a488be Compare May 7, 2026 21:05
@vecil vecil marked this pull request as draft May 7, 2026 21:07
Kustomizations can now depend on any Kubernetes object, improving
flexibility in release ordering and readiness behavior.

Signed-off-by: Vincent Dely <vincent.dely@ik.me>
@vecil vecil force-pushed the refactor/allow-dependencies-on-any-k8s-resource branch from 1a488be to 794e447 Compare May 11, 2026 20:45
@vecil vecil marked this pull request as ready for review May 11, 2026 20:46
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