【发布时间】:2021-07-07 14:47:43
【问题描述】:
如何使用 images 字段通过kustomization.yaml 为 CRD 中指定的容器图像设置图像名称/标签?
images 字段在 Deployment 或 StatefulSet 中指定容器图像时效果很好,但不能从以下位置转换 CRD 资源:
apiVersion: foo.example.com/v1alpha1
kind: Application
spec:
image: xxx
收件人:
apiVersion: foo.example.com/v1alpha1
kind: Application
spec:
image: new-image:tag
【问题讨论】:
-
使用 ImageTagTransformer 在这里提出了类似的问题,答案是:github.com/kubernetes-sigs/kustomize/issues/3542
标签: kubernetes kustomize