k8s operator 部署emqx5.0.8 配置私有镜像仓库报错

环境信息

  • EMQX 版本:5.0.8
  • 操作系统及版本:k8s 1.22.10
  • 其他

问题描述

k8s operator 部署emqx5.0.8 配置私有镜像仓库报错,配置参考github完整配置文件

配置文件及日志

error: error validating “emqx.yaml”: error validating data: ValidationError(EMQX.spec.imagePullSecrets[0]): invalid type for io.emqx.apps.v2alpha1.EMQX.spec.imagePullSecrets: got “string”, expected “map”; if you choose to ignore these errors, turn validation off with --validate=false

[root@k8s-m1 emqx]# cat emqx.yaml
apiVersion: apps.emqx.io/v2alpha1
kind: EMQX
metadata:
name: emqx
spec:
image: g6/emqx:5.0.8
imagePullPolicy: IfNotPresent
imagePullSecrets: [huawei-token]
coreTemplate:
spec:
volumeClaimTemplates:
storageClassName: local
resources:
requests:
storage: 5Gi
accessModes:
- ReadWriteOnce

imagePullSecrets 字段应该是下面这种格式

image