Skip to content

Conversation

@justinsb
Copy link
Contributor

This also has the nice side-effect that we can't have two
tags on the same commit, which simplifies build tooling
that needs "the tag" for a commit.

This also has the nice side-effect that we can't have two
tags on the same commit, which simplifies build tooling
that needs "the tag" for a commit.
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: justinsb
Once this PR has been reviewed and has the lgtm label, please assign nicslatts for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 22, 2025
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @justinsb ! automating tags instead of handling them manually is definitely the right move - i'm fine starting with shared versioning across components for now and evolving the approach as we learn what we need.

left a few comments below

VERSION=$(grep 'var Version\s*=' version.go | awk '{print $4}' | sed -e 's_"__g')

if [[ ! "${VERSION}" =~ ^([0-9]+[.][0-9]+)[.]([0-9]+)(-(alpha|beta)[.]([0-9]+))?$ ]]; then
echo "Version ${VERSION} must be 'X.Y.Z', 'X.Y.Z-alpha.N', or 'X.Y.Z-beta.N'"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we allow -rc.N?


jobs:
tag-release:
if: ${{ github.repository == 'kubernetes-sigs/kro' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this necessary?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're planning to eventually release controller, cli, and other tools. do we want to make this "controller" specific?

Comment on lines +25 to +26
MINOR=${BASH_REMATCH[1]}
RELEASE_BRANCH="release-${MINOR}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MINOR=${BASH_REMATCH[1]}
RELEASE_BRANCH="release-${MINOR}"

on:
push:
branches:
- master
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- master
- main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants