Skip to content

Image tag marker doesn't work in top-level yaml array #624

Open
@antonosmond

Description

@antonosmond

I was trying to use the image update automation to update a tag in a generic YAML file in git.
I found it doesn't update the image tag in the YAML if the YAML file has a top-level array.
A file like this doesn't work i.e. the image automation never updates the tag:

- serviceName: busybox
  containerName: busybox
  tag: 0.0.1 # {"$imagepolicy":"flux-system:busybox:tag"}

But this works:

serviceName: busybox
containerName: busybox
tag: 0.0.1 # {"$imagepolicy":"flux-system:busybox:tag"}

And this also works:

tags:
  - serviceName: busybox
    containerName: busybox
    tag: 0.0.1 # {"$imagepolicy":"flux-system:busybox:tag"}

I'm not sure what versions of flux this applies to but I'm using:

$ flux -v
flux version 2.0.1

And the image automation controller tag is:

image: ghcr.io/fluxcd/image-automation-controller:v0.35.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions