You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR #49 to the build makefile parameterized this but I think the v0.1.7 release didn't set the env var BOOTSTRAP_IMG_TAG for based on the tag name.
It looks like the issue in the makefile and the workflow release script have been fixed with PR #50 which is in release v0.1.7 so I'm not sure how the v0.1.7 release kustomize artifacts ended up with a v0.1.2 tag.
I will add more to this ticket as I learn more.
Problem
I think this is the issue. The Makefile is attempting to determine the tag that is currently checked out on this line:
When I checkout a tag locally and run that git describe --abbrev=0 I get this message (on git version 2.41.0)
> git describe --abbrev=0
fatal: No annotated tags can describe 'e4ea03ae2a8deb9bffc481bd882f5f52b162a569'.
However, there were unannotated tags: try --tags.
So we either need git describe --abbrev=0 --tags or need to annotated the release tags. All the tags are currently so-called "lightweight" tags that point to another commit and are not objects themselves (with their own hash).
The release generating process doesn't actually use the code in the git tag verbatim. This kustomize edit line changes the code of the tag used to build the relesae:
philjb
changed the title
Bootstrap-contoller manager image in v0.1.7 release references a v0.2.0 tag that doesn't exist
Bootstrap-contoller manager image in v0.1.7 release tag references a v0.2.0 tag that doesn't exist
Oct 5, 2023
Issue
The v0.1.7 release references a non-existant tag
v0.2.0
in the config/ Kustomization folder. See the code snippet below from the v0.1.7 git tag.https://github.com/cluster-api-provider-k3s/cluster-api-k3s/blob/e4ea03ae2a8deb9bffc481bd882f5f52b162a569/bootstrap/config/manager/kustomization.yaml#L7-L8
Details
This PR #49 to the build makefile parameterized this but I think the v0.1.7 release didn't set the env var
BOOTSTRAP_IMG_TAG
for based on the tag name.GHCR only shows two images for the bootstrap-controller -
v0.1.6-hotfix.2
andv0.1.7
. https://github.com/cluster-api-provider-k3s/cluster-api-k3s/pkgs/container/cluster-api-k3s%2Fbootstrap-controller/versions?filters%5Bversion_type%5D=taggedThere's no image for the
v0.2.0
tag so my kustomization file to pull in bootstrap controller doesn't work "out of the box".Here's an example of how I generate the manifests for the k3s bootstrap controller
fixed already?
It looks like the issue in the makefile and the workflow release script have been fixed with PR #50 which is in release v0.1.7 so I'm not sure how the v0.1.7 release kustomize artifacts ended up with a v0.1.2 tag.
I will add more to this ticket as I learn more.Problem
I think this is the issue. The Makefile is attempting to determine the tag that is currently checked out on this line:
https://github.com/cluster-api-provider-k3s/cluster-api-k3s/blob/e4ea03ae2a8deb9bffc481bd882f5f52b162a569/Makefile#L94
When I checkout a tag locally and run that
git describe --abbrev=0
I get this message (ongit version 2.41.0
)So we either need
git describe --abbrev=0 --tags
or need to annotated the release tags. All the tags are currently so-called "lightweight" tags that point to another commit and are not objects themselves (with their own hash).The second column would show
tag
for an annotated tag.Typically, release tags are annotated tags as they include a tag message and optionally signing and verifying the tag.
The text was updated successfully, but these errors were encountered: