Skip to content

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

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

refactor(api): migrate DependencyReference to shared apis/meta type#1502
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/v2/reference_types.go DependencyReference struct with type DependencyReference = meta.DependencyReference
  • Used "%s" format verb for dynamic event messages to satisfy non-constant format string lint check

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

@vecil vecil marked this pull request as draft May 22, 2026 05:54
@matheuscscp
Copy link
Copy Markdown
Member

@vecil apis/meta/v1.28.0 is tagged

Signed-off-by: Vincent Dely <vincent.dely@ik.me>
@vecil vecil force-pushed the refactor/import-dependencyreference-type-from-meta branch from a5db0d1 to da3afa4 Compare May 26, 2026 06:04
@vecil vecil marked this pull request as ready for review May 26, 2026 06:05
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