|
|
@@ -34,10 +34,6 @@ public class K8sNamespaceHandler extends AbstractHandler {
|
|
|
try {
|
|
|
namespace = namespaceApi.create(namespace);
|
|
|
log.info("Namespace创建成功, {}", namespace);
|
|
|
- // todo namespace 镜像secret是否改成从service account注入,待调查
|
|
|
-// //为命名空间配置私有镜像仓库密钥,使得此命名空间可以访问镜像仓库来部署容器
|
|
|
-// ApplicationProperties.Registry registry = context.getApplicationProperties().getRegistry();
|
|
|
-// secretApi.createPrivateRegistrySecret(context.getGroupName(), registry.getHost(), registry.getUsername(), registry.getPassword());
|
|
|
} catch (K8sApiException e){
|
|
|
if (e.getCode() == K8sApiException.ALREADY_EXIST){
|
|
|
log.info("Namespace已经存在, 无需新建");
|