Skip to content

Conversation

@kaessert
Copy link
Collaborator

@kaessert kaessert commented Nov 6, 2025

This commit migrates the configuration-gitops-flux project from Crossplane v1 to v2, implementing the new resource model and API structure.

Key changes:

  • Upgraded upbound.yaml from v1alpha1 to v2alpha1 with explicit package references
  • Migrated XRD from apiextensions.crossplane.io/v1 to v2
  • Changed resource scope from Cluster to Namespaced
  • Removed claimNames from XRD (not supported with Namespaced scope in v2)
  • Renamed resource type from XFlux to Flux throughout codebase
  • Updated dependency declarations to use explicit apiVersion, kind, and package fields
  • Replaced deletionPolicy parameter with managementPolicies array
  • Added namespace field to example resources
  • Renamed all test and function directories from xflux to flux
  • Updated function code to work with v2 composition model

Description of your changes

Fixes #

I have:

  • Read and followed Upbound's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR, as appropriate.

How has this code been tested

This commit migrates the configuration-gitops-flux project from Crossplane v1
to v2, implementing the new resource model and API structure.

Key changes:
- Upgraded upbound.yaml from v1alpha1 to v2alpha1 with explicit package references
- Migrated XRD from apiextensions.crossplane.io/v1 to v2
- Changed resource scope from Cluster to Namespaced
- Removed claimNames from XRD (not supported with Namespaced scope in v2)
- Renamed resource type from XFlux to Flux throughout codebase
- Updated dependency declarations to use explicit apiVersion, kind, and package fields
- Replaced deletionPolicy parameter with managementPolicies array
- Added namespace field to example resources
- Renamed all test and function directories from xflux to flux
- Updated function code to work with v2 composition model
kind: Flux
mode: Pipeline
pipeline:
- functionRef:
Copy link

Choose a reason for hiding this comment

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

[yamllint] reported by reviewdog 🐶
[error] wrong indentation: expected 4 but found 2 (indentation)

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