kubesphere/kubekey

feat: add NamespacePreappend in Cluster

Open

#1.925 aberto em 19 de jul. de 2023

Ver no GitHub
 (0 comments) (0 reactions) (1 assignee)Go (820 forks)auto 404
good first issuekind/feature

Métricas do repositório

Stars
 (2.815 stars)
Métricas de merge de PR
 (Mesclagem média 20d 9h) (31 fundiu PRs em 30d)

Description

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

Guia do colaborador