Skip to content

refactor(api): migrate DependencyReference to shared apis/meta type#1656

Draft
vecil wants to merge 1 commit into
fluxcd:mainfrom
vecil:refactor/import-dependencyreference-type-from-meta
Draft

refactor(api): migrate DependencyReference to shared apis/meta type#1656
vecil wants to merge 1 commit into
fluxcd:mainfrom
vecil:refactor/import-dependencyreference-type-from-meta

Conversation

@vecil
Copy link
Copy Markdown

@vecil vecil commented May 22, 2026

Summary

This PR replaces the local DependencyReference type with the shared meta.DependencyReference from apis/meta, removing the duplicated definition across Applier APIs.

Changes

  • Replaced api/v1/reference_types.go DependencyReference struct with type DependencyReference = meta.DependencyReference
  • Added TODO comments to remove the replace directives once fluxcd/pkg releases with the change

Motivation

DependencyReference was duplicated across KC and HC APIs. Centralizing it in apis/meta removes duplication and enables consistent dependency handling, including CEL-based readiness expressions.

Notes

Signed-off-by: Vincent Dely <vincent.dely@ik.me>
@vecil vecil marked this pull request as draft May 22, 2026 05:54
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.

1 participant