【发布时间】:2019-03-28 22:36:51
【问题描述】:
如何将依赖图表的fullname 传递到values.yaml 中的另一个图表中?
我的values.yaml 看起来像这样:
##
## Prisma chart configuration
##
prisma:
enabled: true
image:
pullPolicy: Always
auth:
enabled: true
secret: scret
database:
host: {{ template "postgresql.fullname" . }}
port: 5432
password: dbpass
##
## Postgreqsl chart configuration
##
postgresql:
enabled: true
imagePullPolicy: Always
postgresqlUsername: prisma
postgresqlPassword: dbpass
persistence:
enabled: true
storageClass: storage-0
在那里,我需要将postgresql 实例的名称传递给prisma。
如果我尝试安装它,它会给我以下错误:
error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{"template \"postgresql.fullname\" .":interface {}(nil)}
【问题讨论】:
标签: kubernetes kubernetes-helm