Package: helm-tag-updater
⎈ helm_tag_updaterA python CLI application which updates a helm `values.yaml` image tagIntroducinghelm_tag_updateris a python cli tool which can updatevalues.yamlfields inside a CI/CD pipeline. Also it's an easy to use tool for implementingGitOpsprinciples.Whyhelm_tag_updater/ Alternativeshelm_tag_updateris a simple to use cli which is also supportregular expression tag matchingandprodmode.ToolEasy to useAdditional setup requiredAdditional checkshelm_tag_updater✅No additional setup requiredRegular expression matching, production modeyq✅No additional setup required, but yq breaks yaml structure (https://github.com/mikefarah/yq/issues/1248)❎kustomize✅Require additionalkustomization.yamlfile❎sed❎Supported by all Linux systems❎You can setup tag checking and regular expression matching using linux tools, buthelm_tag_updatersupport it out of the boxInstallationYou can installhelm_tag_updaterusing:Dockerdockerpullfayvori/helm_tag_updaterpippipinstallhelm_tag_updaterUsageflagdefaultpurpose--help,-hNonePrintshelpmessage and exit--tag,-tNoneTag that should be applied onvalues.yamlfile. NOTE: If you set-por--prodflag tag should match regular expression-e--expressionflag--filepath,-fNonePath to thevalues.yamlfile--prod,-pFalseEnablesprodmode (e.g. enables regular expression matching)--expression,-ev[0-9].[0-9].[0-9]Expression that tag should match ifprodmode is enabled--yaml_path,-yimage.tagA field that should be changed, nested fields separated withQuick startFor quick start you can runhelm_tag_updaterlocally in a container and downloadexamples/manifest.yamlfile.dockerrun-it--rm--namehelm_tag_updaterfayvori/helm_tag_updater:1.0/bin/sh
wgethttps://raw.githubusercontent.com/fayvori/helm_tag_updater/main/examples/manifest.yamlUpdate tag in development modehelm_tag_updater-t3c5aec6-f$(pwd)/manifest.yaml

catmanifest.yaml|head-n15Production mode regular expression matching (for default value seeUsage)helm_tag_updater-tv0.0.1-f$(pwd)/manifest.yaml-p

catmanifest.yaml|head-n15Attempt to run in production mode with not matching tagRunning with custom tag matching regular expression and yaml pathContributingIf you want to submit a pull request to fix a bug or enhance an existing
feature, please first open an issue and link to that issue when you
submit your pull request.If you have any questions about a possible submission, feel free to open
an issue too.Pull request processFork this repositoryCreate a branch in your fork to implement the changes. We recommend using
the issue number as part of your branch name, e.g.1234-fixesEnsure that any documentation is updated with the changes that are required
by your fix.Ensure that any samples are updated if the base image has been changed.Submit the pull request.Do not leave the pull request blank. Explain exactly
what your changes are meant to do and provide simple steps on how to validate
your changes. Ensure that you reference the issue you created as well.
The pull request will be review before it is merged.Made byfayvoriLicenseMIT License

Copyright (c) 2023 Ignat Belousov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.