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

@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
@Iam-Karan-Suresh
Copy link
Copy Markdown

Iam-Karan-Suresh commented May 26, 2026

Hi @vecil , please sign-off and force push again. DCO is fails

@stefanprodan stefanprodan added the area/api API related issues and pull requests label Jun 3, 2026
Copy link
Copy Markdown
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@vecil vecil marked this pull request as draft June 3, 2026 12:20
@vecil
Copy link
Copy Markdown
Author

vecil commented Jun 3, 2026

Made it a draft again until the test workflow passes.

@stefanprodan
Copy link
Copy Markdown
Member

@vecil please rebase, the tests are now fixed in the main branch.

Signed-off-by: Vincent Dely <vincent.dely@ik.me>
@vecil vecil force-pushed the refactor/import-dependencyreference-type-from-meta branch from da3afa4 to 626912f Compare June 3, 2026 19:46
@vecil vecil marked this pull request as ready for review June 3, 2026 20:37
@vecil
Copy link
Copy Markdown
Author

vecil commented Jun 3, 2026

@vecil please rebase, the tests are now fixed in the main branch.

The test workflow succeeded in the rebased branch, so I put the draft back to ready 🤝 thank you very much Stefan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api API related issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants