Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ignore chart version bump, dont publish charts if tag exists #701

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented Nov 19, 2024

Currently our process to skirt the chart increment requirement is to create a feature branch in this repository (eg #694), then make changes to other repositories (eg uselagoon/lagoon#3826). Once this feature branch is merged, we have to revert the changes in other repositories (eg uselagoon/lagoon#3842). This is quite frustrating, and has lead to issues after a release when tests start failing because of some reference that wasn't reverted, or was reverted incorrectly. All could have been avoided if we just continued merging to main and released the chart when we were ready to do so.

The govuk team have described similar frustrations with this enforcement here. While they said they're using ArgoCD, this appears to be similar to how we're consuming the main branch of charts in the uselagoon/lagoon repository where the version of the chart does not matter.

What these changes allow us to do is:

  • increase the number of people in the team that can perform releases without having to manage complex feature branch changes across repositories
  • continue to merge to main leaving other repositories alone
  • not re-publish any existing chart versions even though changes are merged
  • choose when to release the charts by bumping the version in the chart in a separate pull request, when a lagoon-core release is ready.

The act of bumping a chart version will still create and publish that chart. This means when it makes sense to release, or the changes are small patches that can be released in isolation, the existing process can still be followed.

Additionally included a (hopefully working) artifacthub linter, to try and catch issues relating to formatting in the artifacthub change logs that bit us recently.

@shreddedbacon shreddedbacon marked this pull request as ready for review December 3, 2024 00:17
@tobybellwood
Copy link
Member

yes - this gives us the flexibility we need - having long-running release branches requires too much manual handling of variable overrides, and this should clear things up. In 2025, we'll re-evaluate Lagoon versioning/numbering, and having a clear strategy for chart releases will make this easier.

Copy link
Member

@tobybellwood tobybellwood left a comment

Choose a reason for hiding this comment

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

These changes make sense to me, let's get them merged ahead of this next release cycle

@tobybellwood tobybellwood merged commit 724bedf into main Dec 17, 2024
18 checks passed
@tobybellwood tobybellwood deleted the chart-releasing branch December 17, 2024 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants