kustomize-controller icon indicating copy to clipboard operation
kustomize-controller copied to clipboard

feat: use Artifact object

Open guilhem opened this issue 10 months ago • 0 comments

This pull request introduces support for the Artifact source type in the KustomizationReconciler. The changes include importing the necessary package, updating the setup with the manager to watch for Artifact changes, and modifying the method to fetch the source accordingly.

Support for Artifact source type:

  • internal/controller/kustomization_controller.go: Added import for sourcev1alpha1 package to include Artifact source type.
  • internal/controller/kustomization_controller.go: Updated SetupWithManager method to watch for Artifact changes and enqueue requests for reconciliation when an Artifact changes.
  • internal/controller/kustomization_controller.go: Modified getSource method to handle fetching Artifact sources based on the ArtifactKind.

guilhem avatar Dec 23 '24 16:12 guilhem