Skip to content

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

Merged
stefanprodan merged 1 commit into
fluxcd:mainfrom
vecil:refactor/import-dependencyreference-type-from-meta
Jun 3, 2026
Merged

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

Conversation

@vecil
Copy link
Copy Markdown
Contributor

@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

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 b69c9b5 to 0892f4f Compare May 26, 2026 05:26
@vecil vecil marked this pull request as ready for review May 26, 2026 05:27
@vecil vecil force-pushed the refactor/import-dependencyreference-type-from-meta branch from 0892f4f to a3d27c9 Compare May 26, 2026 06:03
@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

Signed-off-by: Vincent Dely <vincent.dely@ik.me>
@vecil vecil force-pushed the refactor/import-dependencyreference-type-from-meta branch from a3d27c9 to 38a3770 Compare May 31, 2026 20:18
Copy link
Copy Markdown
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @vecil

@stefanprodan stefanprodan added the area/api API related issues and pull requests label Jun 3, 2026
@stefanprodan stefanprodan merged commit 8b08db6 into fluxcd:main Jun 3, 2026
6 checks passed
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