Skip to content

versionincrement: "patch" seems to want to bump Major/Minors also ? #2973

Answered by olblak
SnappyLarry asked this question in Q&A
Discussion options

You must be logged in to vote

If you don't know in advance "32.1.x" then you can build a more advance update scenario by:

  • chaining two sources, one to retrieve the current version, and a second one to get the latest version
  • you can use a transformers to modify the currently used version
  • you need to specify a different sourceid

So something like this

sources:
  currentTraefikVersion:
    kind: yaml
    spec:
      file: "/tmp/values.yaml"
      key: "$.traefik.chart.version"
    transformers:
      - semverinc: minor

  traefik:
    kind: helmchart
    dependson:
      - "currentTraefikVersion"
    spec:
      url: "https://traefik.github.io/charts/"
      name: "traefik"
      versionfilter:
        kind: semver
   …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@SnappyLarry
Comment options

Answer selected by SnappyLarry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants