kustomize-controller
kustomize-controller copied to clipboard
feat: use Artifact object
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 forsourcev1alpha1package to includeArtifactsource type.internal/controller/kustomization_controller.go: UpdatedSetupWithManagermethod to watch forArtifactchanges and enqueue requests for reconciliation when anArtifactchanges.internal/controller/kustomization_controller.go: ModifiedgetSourcemethod to handle fetchingArtifactsources based on theArtifactKind.