使用其他属性更新掌舵图
Update helm chart with additional properties
我们正在使用 prometheus operator chart
目前,我正在创建自己的 values.yaml
,它会覆盖图表中的默认值,例如
helm install po -f values.yaml stable/prometheus-operator -n po
有一个 Grafana 属性我需要修改,因为操作员带有 grafana 属性
https://github.com/helm/charts/blob/master/stable/prometheus-operator/values.yaml#L486
但是,我想修改prometheus图表的values.yaml
中没有的属性,在这里找到:
https://github.com/helm/charts/blob/master/stable/grafana/values.yaml#L422(图表上有参考)
我的问题是假设我想修改 client_id
,推荐的方法 是什么?
https://github.com/helm/charts/blob/master/stable/grafana/values.yaml#L431
您可以使用依赖名称(对于 prometheus
图表中的 grafana
可以找到 here)作为另一个键来覆盖依赖图表的值values.yml
.
在这种情况下,它只是 grafana
,因此要在您的 values.yml
中覆盖它,请这样做:
# ... config of the original prometheus chart
# overwrite grafana's yaml by using the dependency name
grafana:
grafana.ini:
auth.github:
client_id: 'what you need to put here'
我们正在使用 prometheus operator chart
目前,我正在创建自己的 values.yaml
,它会覆盖图表中的默认值,例如
helm install po -f values.yaml stable/prometheus-operator -n po
有一个 Grafana 属性我需要修改,因为操作员带有 grafana 属性
https://github.com/helm/charts/blob/master/stable/prometheus-operator/values.yaml#L486
但是,我想修改prometheus图表的values.yaml
中没有的属性,在这里找到:
https://github.com/helm/charts/blob/master/stable/grafana/values.yaml#L422(图表上有参考)
我的问题是假设我想修改 client_id
,推荐的方法 是什么?
https://github.com/helm/charts/blob/master/stable/grafana/values.yaml#L431
您可以使用依赖名称(对于 prometheus
图表中的 grafana
可以找到 here)作为另一个键来覆盖依赖图表的值values.yml
.
在这种情况下,它只是 grafana
,因此要在您的 values.yml
中覆盖它,请这样做:
# ... config of the original prometheus chart
# overwrite grafana's yaml by using the dependency name
grafana:
grafana.ini:
auth.github:
client_id: 'what you need to put here'