最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Git branching for env-specific value files - Stack Overflow

programmeradmin4浏览0评论

We have the following git branch structure for our helm templates (rolled out with argocd):

stage/dev

stage/test

stage/prod

Each branch containing all values.yaml files (values-dev, values-test, values-prod).

This means that our current workflow for changing something in the values-prod.yaml file, is to edit values-prod in stage/dev, and then merge through stage/test to stage/prod.

This generates a lot of overhead for us, when we simply want a small change in the prod env.

What would be the best approach, to keep stage specific changes simple (not merging through all branches) but still being able to merge global changes through branches?

I mean we could just simply create a feature branch of the stage we want, to edit the value, but that would result in different states between each branch, which could potentially lead to confusion.

发布评论

评论列表(0)

  1. 暂无评论