Commit a3ee26c4 authored by 黎博's avatar 黎博

k8s controller全面优化

parent 83aa284d
...@@ -27,7 +27,7 @@ import java.io.IOException; ...@@ -27,7 +27,7 @@ import java.io.IOException;
import java.util.*; import java.util.*;
/** /**
* TKE集群k8s相关操作 * TKE qa集群k8s相关操作
*/ */
@Slf4j @Slf4j
@Component @Component
...@@ -102,6 +102,11 @@ public class TkeService { ...@@ -102,6 +102,11 @@ public class TkeService {
return true; return true;
} }
/**
* 创建TKE qcloudregistrykey类型 Secret
* @param namespace
* @return
*/
public Secret createQcloudRegistryKeySecret(String namespace) { public Secret createQcloudRegistryKeySecret(String namespace) {
Map<String, String> labels = new HashMap<>(); Map<String, String> labels = new HashMap<>();
...@@ -127,6 +132,11 @@ public class TkeService { ...@@ -127,6 +132,11 @@ public class TkeService {
return kubernetesClient.secrets().inNamespace(namespace).create(secret); return kubernetesClient.secrets().inNamespace(namespace).create(secret);
} }
/**
* 创建TKE tencenthubkey 类型 Secret
* @param namespace
* @return
*/
public Secret createTencenthHubKeySecret(String namespace) { public Secret createTencenthHubKeySecret(String namespace) {
Map<String, String> labels = new HashMap<>(); Map<String, String> labels = new HashMap<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment