kubesphere/kubekey

feat: add NamespacePreappend in Cluster

Open

#1,925 创建于 2023年7月19日

在 GitHub 查看
 (0 评论) (0 反应) (1 负责人)Go (820 fork)auto 404
good first issuekind/feature

仓库指标

Star
 (2,815 star)
PR 合并指标
 (平均合并 20天 9小时) (30 天内合并 31 个 PR)

描述

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

贡献者指南