kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

feat: add NamespacePreappend in Cluster

Open wongearl opened this issue 1 year ago • 0 comments

Your current KubeKey version

master

Describe this feature

需求背景 使用kk的离线方式安装k8s集群及其他组件,在create cluster的配置文件中已存在一个参数NamespaceOverride,通过覆盖镜像的namespace可以将artifact中的镜像推送到镜像仓库的同一个项目中,但是相应不是覆盖原有镜像namespace,例如存在镜像a/b:v1和镜像c/b:v1, 想要推送镜像到 d/a/b:v1,d/c/b:v1, 即都推送到名为d的namespace,后面的镜像路径保持。

Describe the solution you'd like

想要在create cluster的配置文件中添一个参数实现此功能。例如该字段名为NamespacePreappend,该字段不为空是则在所有镜像中追加一个相同的namespace,如果原有namespace和NamespacePreappend相同,则不再追加

Additional information

No response

wongearl avatar Jul 19 '23 07:07 wongearl