Skip to content

Push configuration should support spec discovery/inference from GitRepository.spec.ref.name #876

@iAnomaly

Description

@iAnomaly

Currently, ImageUpdateAutomation push configuration only supports discovery/inference of a sourceRef.kind: GitRepository from GitRepository.spec.ref.branch. See code here: https://github.com/fluxcd/image-automation-controller/blob/main/internal/source/git.go#L158-L161

Support should be expanded to handle GitRepository.spec.ref.name such as refs/heads/main. This is especially critical for flux-operator users as the FluxInstance sync configuration via spec.sync.ref produces a GitRepository with .spec.ref.name rather than .spec.ref.branch. As such, any flux-operator user with imageupdateautomations must explicitly set spec.git.checkout.ref instead of relying on the convenience of automatic discovery/inference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions