splunk / qbec

configure kubernetes objects on multiple clusters using jsonnet

Home Page:https://qbec.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why does expandHelmTemplate deprecated

vm86 opened this issue · comments

Hi!
I found deprecated warning in docs.
https://github.com/splunk/qbec/blame/main/site/content/reference/jsonnet-native-funcs.md#L10

The commit was created about two years ago.

Why was this function stayed deprecated?
It is very convenient to use.
I suggest to delete this deprecated warning and continue to support this function.

As additional point: if ever #265 helm datasource will be implemented, datasources exists only for qbec, not for jsonnet-qbec.
So some of the functionality of the jsonnet-qbec will be removed.

the only problem is one of maintaining this function that was written for helm2 and make sure it still works for helm3. I'm ok leaving it in if that is what people want.

function that was written for helm2 and make sure it still works for helm3

We tested it with helm3 and it just works.
Documentation need to be updated tho because some options (name) from helm2 doesn't exists for helm3.

Also, could you please take a look at Tanka's implementation of helm integration, maybe you will find it a bit more handy: https://tanka.dev/helm and https://github.com/grafana/jsonnet-libs/blob/master/tanka-util/helm.libsonnet