Helm v3的Secret.data.couchbase_password

时间:2019-12-30 08:35:29

标签: kubernetes-helm

仅使用头盔3时出现此错误。在头盔2中,它按预期工作,这是秘密对象的清单 secret.yaml

apiVersion: v1
data:
  couchbase_password: {{ .Values.secrets.cbPass | quote }} 
kind: Secret
metadata:
  name: {{ include "persistence.name" .}}-cb-pass
type: Opaque

---

apiVersion: v1
data:
  couchbase.crt: {{ .Values.secrets.encodedCouchbaseCrt | quote }} 
kind: Secret
metadata:
  name: {{ include "persistence.name" .}}-cb-crt
type: Opaque

这是values.yaml文件的一些内容

configmap:
  #support for oxtrust API
  gluuOxtrustApiEnabled: false
  gluuOxtrustApiTestMode: false
  gluuCasaEnabled: true

secrets: 
  cbPass: UEBzc3cwcmQK # UEBzc3cwcmQK
  encodedCouchbaseCrt: LS0tLS1CRUdJTiBDR

当我helm template test .收到

---
# Source: gluu-server-helm/charts/persistence/templates/secrets.yaml
apiVersion: v1
data:
  couchbase.crt: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUROVENDQWgyZ0F3SUJBZ0lKQU93NzNOV2x5cTE3TUEwR0NTcUdTSWIzRFFFQkN3VUFNQll4RkRBU0JnTlYKQkFNTUMyTmlMbWRzZFhVdWIzSm5NQjRYRFRFNU1USXlOakE0TXpBd04xb1hEVEk1TVRJeU16QTRNekF3TjFvdwpGakVVTUJJR0ExVUVBd3dMWTJJdVoyeDFkUzV2Y21jd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3CmdnRUtBb0lCQVFDZjhySjhNcHJYMFFEQTdaamVXWkNjQTExd0FnMFpzSERYV2gwRU5BWE9JYjdObkM5c0diWEYKeG1PVnpNL3pGcWhqNWU4Zi9hZnBPQUlSV1RhMzhTeGFiQ3VPR1pUU2pTZ3dtclQ3bmVPK0pSNDA3REdzYzlrSgp5d1lNc083S3FtcFJTMWpsckZTWXpMNGQ4VW5xa3k3OHFMMEw3R3F2Y0hSTTZKYkM4QXpBdDUwW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gluu-server-helm/charts/persistence/templates/secrets.yaml
apiVersion: v1
data:
  couchbase_password:  "UEBzc3cwcmQK" 
kind: Secret
metadata:
  name: persistence-cb-pass
type: Opaque

当我直接使用默认数据而不引用值文件时,它仍然不起作用。

头盔版本 version.BuildInfo{Version:"v3.0.2", GitCommit:"19e47ee3283ae98139d98460de796c1be1e3975f", GitTreeState:"clean", GoVersion:"go1.13.5"}

kubectl版本

Client Version: v1.16.3
Server Version: v1.17.0

0 个答案:

没有答案