kubesphere/kubekey

feat: add NamespacePreappend in Cluster

Open

#1925 aperta il 19 lug 2023

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)Go (820 fork)auto 404
good first issuekind/feature

Metriche repository

Star
 (2815 star)
Metriche merge PR
 (Merge medio 20g 9h) (31 PR mergiate in 30 g)

Descrizione

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

Guida contributor