CI/CD的舵图版本 [英] Helm chart versions for CI/CD

查看:74
本文介绍了CI/CD的舵图版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为CI/CD管道设置了一个helm存储库,但是我遇到的一件事是helm的版本控制系统,该系统专注于x.x.x中的语义版本系统.

I have a helm repository set up for my CI/CD pipeline, but the one thing I am having trouble with is helm's versioning system which is focused on a semantic versioning system as in x.x.x.

我希望能够指定诸如"staging","latest"和"production"之类的标签,尽管我能够成功上传带有字符串版本的图表

I want to be able to specify tags like "staging", "latest", and "production", and although I am able to successfully upload charts with string versions

NAME CHART VERSION APP VERSION chartmuseum/myrchart latest 1.0

NAME CHART VERSION APP VERSION chartmuseum/myrchart latest 1.0

任何实际访问图表的尝试都会失败,例如

Any attempt to actually access the chart fails, such as

helm inspect chartmuseum/mychart --version=latest

产生错误:

Error: failed to download "chartmuseum/mychart" (hint: running 'helm repo update' may help)

在开发的这一点上,我真的不是很想进入受控语义版本控制,也不希望将哈希添加到版本中.有什么办法可以掌控非语义标记的图表版本?

I don't really want to get into controlled semantic versioning at this point in development, or the mess that is appending hashes to a version. Is there any way to get helm to pull non-semantically tagged chart versions?

推荐答案

我发现了一些对我有用的东西.由于semvar允许您在最后一个数字之后附加值,例如0.1.0-aebcaber,因此我倾向于仅使用0.1.0-latest并在上载的Chartmuseum中覆盖它.

I found something that worked for me. Since the semvar allows you to append values after the last number like 0.1.0-aebcaber, I've taken to simply using 0.1.0-latest and overwriting that in chartmuseum on uploads.

这篇关于CI/CD的舵图版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆