masmovil / masorange_rules_helm

Bazel rules to manipulate and operate Helm charts with Bazel, decrpyt sops secrets, and run operations over cloud services
Apache License 2.0
61 stars 32 forks source link

Allow optional appVersion different from helm_chart_version #30

Closed chickenandpork closed 3 years ago

chickenandpork commented 3 years ago

My users needed a different appVersion than Version in Chart.yaml, so I created this naive change.

This allows:

helm_chart(
    name = "the_chart",
    package_name = "floppydog",
    srcs = ["//some/path:chart_files"],
    image = ":floppydog_image",  # matches docker image target
    helm_chart_version = "1.0.44"
    app_version = "R2021.07.13"
)

...resulting in:

apiVersion: v2
appVersion: R2021.07.13
description: 'Yep, I put a description somewhere...'
name: floppydog
type: application
version: 1.0.44