mirror of https://github.com/alibaba/SREWorks.git
feat: baseline update
This commit is contained in:
parent
cb0e64ca60
commit
d68b72833f
|
@ -0,0 +1,123 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>plugins</artifactId>
|
||||
<groupId>com.alibaba.tesla</groupId>
|
||||
<version>1.0.6-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>plugins-start-standalone</artifactId>
|
||||
|
||||
<name>plugins-start-standalone</name>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.tesla</groupId>
|
||||
<artifactId>tesla-appmanager-trait</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.tesla</groupId>
|
||||
<artifactId>tesla-appmanager-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.tesla</groupId>
|
||||
<artifactId>tesla-appmanager-storage</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.tesla</groupId>
|
||||
<artifactId>tesla-appmanager-meta-k8s-microservice</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.tesla</groupId>
|
||||
<artifactId>tesla-appmanager-meta-helm</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.aspectj</groupId>
|
||||
<artifactId>aspectjweaver</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.janino</groupId>
|
||||
<artifactId>janino</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-stream-test-support</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-core</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.assertj</groupId>
|
||||
<artifactId>assertj-core</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<mainClass>com.alibaba.plugins.Application</mainClass>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<finalName>plugins</finalName>
|
||||
</build>
|
||||
</project>
|
|
@ -98,7 +98,7 @@ class HelmV1Beta1ComponentBuildHandler implements BuildComponentHandler {
|
|||
// 无来源
|
||||
log.info("sourceType: empty")
|
||||
throw new AppException(AppErrorCode.UNKNOWN_ERROR, "sourceType: empty not support", e)
|
||||
}else if("git" == request.getOptions().getString("sourceType")){
|
||||
}else if("git" == request.getOptions().getString("sourceType") || "team-git" == request.getOptions().getString("sourceType") ){
|
||||
// git代码仓库
|
||||
log.info("sourceType: git")
|
||||
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: ComponentDefinition
|
||||
metadata:
|
||||
name: microservice.component.sreworks.io/v1beta1
|
||||
annotations:
|
||||
definition.oam.dev/description: "The microservice for Kubernetes"
|
||||
definition.oam.dev/version: "1.2.9"
|
||||
definition.oam.dev/tags: "a=b,c=d"
|
||||
spec:
|
||||
workload:
|
||||
definition:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
schematic:
|
||||
groovy:
|
||||
files:
|
||||
- kind: COMPONENT
|
||||
name: microservice.component.sreworks.io/v1beta1
|
||||
path: dynamicscripts/MicroServiceV1Beta1ComponentHandler.groovy
|
||||
- kind: COMPONENT_BUILD
|
||||
name: microservice.component.sreworks.io/v1beta1
|
||||
path: dynamicscripts/MicroServiceV1Beta1ComponentBuildHandler.groovy
|
||||
- kind: COMPONENT_DEPLOY
|
||||
name: microservice.component.sreworks.io/v1beta1
|
||||
path: dynamicscripts/MicroServiceV1Beta1ComponentDeployHandler.groovy
|
||||
- kind: COMPONENT_DESTROY
|
||||
name: microservice.component.sreworks.io/v1beta1
|
||||
path: dynamicscripts/MicroServiceV1Beta1ComponentDestroyHandler.groovy
|
||||
frontend:
|
||||
files:
|
||||
- kind: DEPLOY
|
||||
path: frontends/deploy.json
|
||||
- kind: CREATE-SOURCE
|
||||
path: frontends/source.json
|
||||
- kind: UPDATE-SOURCE
|
||||
path: frontends/source.json
|
||||
- kind: CREATE-BUILD
|
||||
path: frontends/build.json
|
||||
- kind: UPDATE-BUILD
|
||||
path: frontends/build.json
|
||||
resources:
|
||||
files:
|
||||
- kind: YAML
|
||||
path: resources/hello.yaml
|
||||
dataInterfaces:
|
||||
outputs:
|
||||
- name: mysql-svc
|
||||
valueFrom: spec.xxx.xxx
|
||||
inputs:
|
||||
- from: mysql-svc
|
||||
parameterKey: xxxxx
|
|
@ -0,0 +1,124 @@
|
|||
package dynamicscripts
|
||||
|
||||
import com.alibaba.fastjson.JSONObject
|
||||
import com.alibaba.fastjson.JSONArray
|
||||
import com.alibaba.tesla.appmanager.common.enums.DynamicScriptKindEnum
|
||||
import com.alibaba.tesla.appmanager.common.exception.AppErrorCode
|
||||
import com.alibaba.tesla.appmanager.common.exception.AppException
|
||||
import com.alibaba.tesla.appmanager.domain.req.componentpackage.BuildComponentHandlerReq
|
||||
import com.alibaba.tesla.appmanager.domain.res.componentpackage.LaunchBuildComponentHandlerRes
|
||||
import com.alibaba.tesla.appmanager.server.assembly.ComponentPackageTaskDtoConvert
|
||||
import com.alibaba.tesla.appmanager.server.service.componentpackage.ComponentPackageBuilderExecutorManager
|
||||
import com.alibaba.tesla.appmanager.server.service.componentpackage.handler.BuildComponentHandler
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
import org.springframework.beans.factory.annotation.Autowired
|
||||
/**
|
||||
* 默认构建 MicroService Groovy Handler
|
||||
*
|
||||
* @author yaoxing.gyx@alibaba-inc.com
|
||||
*/
|
||||
class MicroServiceV1Beta1ComponentBuildHandler implements BuildComponentHandler {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(MicroServiceV1Beta1ComponentBuildHandler.class)
|
||||
|
||||
/**
|
||||
* 当前脚本类型 (ComponentKindEnum)
|
||||
*/
|
||||
public static final String KIND = DynamicScriptKindEnum.COMPONENT_BUILD.toString()
|
||||
|
||||
/**
|
||||
* 当前脚本名称 (指定 SCRIPT_KIND 下唯一)
|
||||
*/
|
||||
public static final String NAME = "microservice.component.sreworks.io/v1beta1"
|
||||
|
||||
/**
|
||||
* 当前内置 Handler 版本
|
||||
*/
|
||||
public static final Integer REVISION = 16
|
||||
|
||||
private static final String TEMPLATE_MICROSERVICE_FILENAME = "default_microservice_%s.tpl"
|
||||
|
||||
private static final String DEFAULT_MICROSERVICE_TYPE = "Deployment"
|
||||
|
||||
|
||||
@Autowired
|
||||
private ComponentPackageBuilderExecutorManager componentPackageBuilderExecutorManager
|
||||
|
||||
@Autowired
|
||||
private ComponentPackageTaskDtoConvert componentPackageTaskDtoConvert
|
||||
|
||||
/**
|
||||
* 构建一个实体 Component Package
|
||||
*
|
||||
* @param request ComponentPackage 创建任务对象
|
||||
* @return 实体包信息
|
||||
*/
|
||||
@Override
|
||||
LaunchBuildComponentHandlerRes launch(BuildComponentHandlerReq request) {
|
||||
def componentType = request.getComponentType()
|
||||
def componentName = request.getComponentName()
|
||||
def version = request.getVersion()
|
||||
def appId = request.getAppId()
|
||||
def options = request.getOptions()
|
||||
def taskDO = componentPackageTaskDtoConvert.from(request.getTaskDTO())
|
||||
def sourceType = request.getOptions().getString("sourceType")
|
||||
|
||||
|
||||
// 构建日志内容输出
|
||||
def logContent = new StringBuilder()
|
||||
|
||||
// 选择源
|
||||
if("empty" == sourceType){
|
||||
// 无来源
|
||||
log.info("sourceType: empty")
|
||||
throw new AppException(AppErrorCode.UNKNOWN_ERROR, "sourceType: empty not support", e)
|
||||
}else if("git" == sourceType || "team-git" == sourceType){
|
||||
// git代码仓库
|
||||
log.info("sourceType: {}", sourceType)
|
||||
|
||||
logContent.append(String.format("git repo clone in kankio build service|repo=%s\n", options.getString("repo")))
|
||||
|
||||
}else{
|
||||
def errorMessage = String.format("no sourceType found|options=%s\n", JSONObject.toJSONString(options))
|
||||
logContent.append(errorMessage)
|
||||
throw new AppException(AppErrorCode.INVALID_USER_ARGS, errorMessage)
|
||||
}
|
||||
|
||||
// 将当前options重新制作成适合老格式的进行兼容
|
||||
log.info("taskDO getPackageOptions={}", taskDO.getPackageOptions())
|
||||
log.info("request options={}", options)
|
||||
def containers = options.getJSONArray("containers")
|
||||
def compatibleOptions = new JSONObject()
|
||||
def compatibleOptionsContainers = new JSONArray()
|
||||
compatibleOptions.put("containers", compatibleOptionsContainers)
|
||||
compatibleOptions.put("initContainers", new JSONArray())
|
||||
compatibleOptions.put("env", new JSONArray())
|
||||
if(containers){
|
||||
for (JSONObject container : containers) {
|
||||
def compatibleOptionsContainer = new JSONObject()
|
||||
def buildOptions = new JSONObject()
|
||||
buildOptions.put("repo", options.getString("repo"))
|
||||
buildOptions.put("imagePush", true)
|
||||
buildOptions.put("branch", options.getString("branch"))
|
||||
buildOptions.put("repoPath", options.getString("repoPath"))
|
||||
buildOptions.put("ciAccount", options.getString("ciAccount"))
|
||||
buildOptions.put("ciToken", options.getString("ciToken"))
|
||||
buildOptions.put("dockerfileTemplate", container.getString("dockerfile"))
|
||||
buildOptions.put("imagePushRegistry", container.getString("imagePushRegistry"))
|
||||
compatibleOptionsContainer.put("name", container.getString("name"))
|
||||
compatibleOptionsContainer.put("build", buildOptions)
|
||||
compatibleOptionsContainers.add(compatibleOptionsContainer)
|
||||
}
|
||||
}
|
||||
log.info("compatibleOptions={}", compatibleOptions.toJSONString())
|
||||
|
||||
taskDO.setPackageOptions(compatibleOptions.toJSONString())
|
||||
|
||||
// 构建方案
|
||||
componentPackageBuilderExecutorManager.getInstance("K8S_MICROSERVICE").exportComponentPackage(taskDO)
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,480 @@
|
|||
package dynamicscripts
|
||||
|
||||
import com.alibaba.fastjson.JSONArray
|
||||
import com.alibaba.fastjson.JSONObject
|
||||
import com.alibaba.tesla.appmanager.autoconfig.SystemProperties
|
||||
import com.alibaba.tesla.appmanager.common.enums.DeployComponentAttrTypeEnum
|
||||
import com.alibaba.tesla.appmanager.common.enums.DeployComponentStateEnum
|
||||
import com.alibaba.tesla.appmanager.common.enums.DynamicScriptKindEnum
|
||||
import com.alibaba.tesla.appmanager.common.exception.AppErrorCode
|
||||
import com.alibaba.tesla.appmanager.common.exception.AppException
|
||||
import com.alibaba.tesla.appmanager.common.util.NetworkUtil
|
||||
import com.alibaba.tesla.appmanager.common.util.SchemaUtil
|
||||
import com.alibaba.tesla.appmanager.common.util.ZipUtil
|
||||
import com.alibaba.tesla.appmanager.domain.req.deploy.GetDeployComponentHandlerReq
|
||||
import com.alibaba.tesla.appmanager.domain.req.deploy.LaunchDeployComponentHandlerReq
|
||||
import com.alibaba.tesla.appmanager.domain.res.deploy.GetDeployComponentHandlerRes
|
||||
import com.alibaba.tesla.appmanager.domain.res.deploy.LaunchDeployComponentHandlerRes
|
||||
import com.alibaba.tesla.appmanager.domain.schema.ComponentSchema
|
||||
import com.alibaba.tesla.appmanager.domain.schema.DeployAppSchema
|
||||
import com.alibaba.tesla.appmanager.kubernetes.KubernetesClientFactory
|
||||
import com.alibaba.tesla.appmanager.server.service.deploy.handler.DeployComponentHandler
|
||||
import io.fabric8.kubernetes.api.model.NamespaceBuilder
|
||||
import io.fabric8.kubernetes.api.model.ObjectMetaBuilder
|
||||
import io.fabric8.kubernetes.client.KubernetesClientException
|
||||
import io.fabric8.kubernetes.client.dsl.base.CustomResourceDefinitionContext
|
||||
import org.apache.commons.collections4.CollectionUtils
|
||||
import org.apache.commons.io.FileUtils
|
||||
import org.apache.commons.lang3.StringUtils
|
||||
import org.apache.commons.lang3.exception.ExceptionUtils
|
||||
import org.joda.time.DateTime
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
import org.springframework.beans.factory.annotation.Autowired
|
||||
|
||||
import java.nio.charset.StandardCharsets
|
||||
import java.nio.file.Files
|
||||
import java.nio.file.Paths
|
||||
/**
|
||||
* 默认构建 Microservice Groovy Handler
|
||||
*
|
||||
* @author yaoxing.gyx@alibaba-inc.com
|
||||
*/
|
||||
class MicroServiceV1Beta1ComponentDeployHandler implements DeployComponentHandler {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(MicroserviceComponentDeployHandler.class)
|
||||
|
||||
private static final String KEY_COMPONENT_PACKAGE_URL = "appmanager_deploy_component_package"
|
||||
|
||||
/**
|
||||
* 当前脚本类型 (ComponentKindEnum)
|
||||
*/
|
||||
public static final String KIND = DynamicScriptKindEnum.COMPONENT_DEPLOY.toString()
|
||||
|
||||
/**
|
||||
* 当前脚本名称 (指定 SCRIPT_KIND 下唯一)
|
||||
*/
|
||||
public static final String NAME = "microservice.component.sreworks.io/v1beta1"
|
||||
|
||||
/**
|
||||
* 当前内置 Handler 版本
|
||||
*/
|
||||
public static final Integer REVISION = 7
|
||||
|
||||
/**
|
||||
* Label Keys
|
||||
*/
|
||||
private static final String LABEL_APP_ID = "labels.appmanager.oam.dev/appId"
|
||||
private static final String LABEL_COMPATIBLE_APP_ID = "appId"
|
||||
|
||||
/**
|
||||
* 云类型
|
||||
*/
|
||||
private final String ENV = System.getenv("CLOUD_TYPE")
|
||||
|
||||
/**
|
||||
* CRD Context
|
||||
*/
|
||||
private static final CustomResourceDefinitionContext CRD_CONTEXT = new CustomResourceDefinitionContext.Builder()
|
||||
.withName("microservices.apps.abm.io")
|
||||
.withGroup("apps.abm.io")
|
||||
.withVersion("v1")
|
||||
.withPlural("microservices")
|
||||
.withScope("Namespaced")
|
||||
.build()
|
||||
|
||||
@Autowired
|
||||
private KubernetesClientFactory kubernetesClientFactory
|
||||
|
||||
@Autowired
|
||||
private SystemProperties systemProperties
|
||||
|
||||
/**
|
||||
* 部署组件过程
|
||||
*
|
||||
* @param request 部署请求
|
||||
*/
|
||||
@Override
|
||||
LaunchDeployComponentHandlerRes launch(LaunchDeployComponentHandlerReq request) {
|
||||
log.info("default deploy launch request|{}", JSONObject.toJSONString(request))
|
||||
def packageDir = getPackageDir(request)
|
||||
def componentSchema = request.getComponentSchema()
|
||||
|
||||
// 如果存在 namespace autoCreate 参数,那么在目标集群中动态创建该 namespace
|
||||
def options = request.getComponentOptions()
|
||||
if (CollectionUtils.isNotEmpty(options.getScopes())) {
|
||||
List<DeployAppSchema.SpecComponentScope> scopeList = options.getScopes()
|
||||
for (DeployAppSchema.SpecComponentScope scope : scopeList) {
|
||||
if ("namespace".equalsIgnoreCase(scope.getScopeRef().getKind())) {
|
||||
def namespace = scope.getScopeRef().getName()
|
||||
if (scope.getScopeRef().getSpec() != null) {
|
||||
// auto create
|
||||
def autoCreate = scope.getScopeRef().getSpec().getBooleanValue("autoCreate")
|
||||
if (autoCreate) {
|
||||
def cluster = request.getClusterId()
|
||||
def client = kubernetesClientFactory.get(cluster)
|
||||
def namespaceObj = client.namespaces().withName(namespace).get()
|
||||
if (namespaceObj == null) {
|
||||
log.info("find autocreate flag in request, create namespace {} in cluster {}",
|
||||
namespace, cluster)
|
||||
def ns = new NamespaceBuilder()
|
||||
.withMetadata(new ObjectMetaBuilder().withName(namespace).build())
|
||||
.build()
|
||||
try {
|
||||
client.namespaces().create(ns)
|
||||
} catch (KubernetesClientException e) {
|
||||
if (e.getCode() == 409) {
|
||||
log.error("namespace {} already exists, skip", namespace);
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
log.info("namespace {} in cluster {} has created", namespace, cluster)
|
||||
} else {
|
||||
log.info("namespace {} in cluster {} already exists", namespace, cluster)
|
||||
}
|
||||
}
|
||||
|
||||
// resource quota
|
||||
def resourceQuota = scope.getScopeRef().getSpec().getJSONObject("resourceQuota")
|
||||
if (resourceQuota) {
|
||||
def name = resourceQuota.getString("name")
|
||||
def spec = resourceQuota.getJSONObject("spec")
|
||||
if (StringUtils.isEmpty(name) || spec == null) {
|
||||
throw new AppException(AppErrorCode.INVALID_USER_ARGS,
|
||||
"cannot find name/spec in namespace resourceQuota configuration")
|
||||
}
|
||||
def cluster = request.getClusterId()
|
||||
def client = kubernetesClientFactory.get(cluster)
|
||||
def resourceQuotaObj = client.resourceQuotas().inNamespace(namespace).withName(name).get()
|
||||
if (resourceQuotaObj == null) {
|
||||
log.info("find resource quota in namespace scope, create resource quota {} in " +
|
||||
"namespace {}", name, namespace)
|
||||
def rq = new JSONObject()
|
||||
rq.put("apiVersion", "v1")
|
||||
rq.put("kind", "ResourceQuota")
|
||||
rq.put("metadata", new JSONObject())
|
||||
rq.getJSONObject("metadata").put("name", name)
|
||||
rq.getJSONObject("metadata").put("namespace", namespace)
|
||||
rq.put("spec", spec)
|
||||
try {
|
||||
def obj = client.resourceQuotas().load(new ByteArrayInputStream(rq.toJSONString()
|
||||
.getBytes(StandardCharsets.UTF_8))).get()
|
||||
client.resourceQuotas().create(obj)
|
||||
} catch (KubernetesClientException e) {
|
||||
if (e.getCode() == 409) {
|
||||
log.error("resource quota {} already exists in namespace {}, skip",
|
||||
name, namespace)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
log.info("resource quota {} in namespace {} has created", name, namespace)
|
||||
} else {
|
||||
log.info("resource quota {} in namespace {} already exists", name, namespace)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
refreshComponentSchemaWorkload(componentSchema)
|
||||
apply(request, componentSchema)
|
||||
|
||||
try {
|
||||
FileUtils.deleteDirectory(Paths.get(packageDir).toFile())
|
||||
} catch (Exception ignored) {
|
||||
log.warn("cannot delete component package directory|directory={}", packageDir)
|
||||
}
|
||||
LaunchDeployComponentHandlerRes res = LaunchDeployComponentHandlerRes.builder()
|
||||
.componentSchema(componentSchema)
|
||||
.build()
|
||||
log.info("default deploy launch res|{}", JSONObject.toJSONString(res))
|
||||
return res
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询部署组件结果
|
||||
*
|
||||
* @param request 部署请求
|
||||
* @return 查询结果
|
||||
*/
|
||||
@Override
|
||||
GetDeployComponentHandlerRes get(GetDeployComponentHandlerReq request) {
|
||||
def schema = SchemaUtil.toSchema(ComponentSchema.class,
|
||||
request.getAttrMap().get(DeployComponentAttrTypeEnum.COMPONENT_SCHEMA.toString()))
|
||||
def name = getMetaName(request.getAppId(), request.getComponentName(), request.getStageId())
|
||||
def userCustomName = ((JSONObject) schema.getSpec().getWorkload().getSpec()).getString("name")
|
||||
if (StringUtils.isNotEmpty(userCustomName)) {
|
||||
name = getMetaName(userCustomName, request.getComponentName(), request.getStageId())
|
||||
}
|
||||
|
||||
def cluster = request.getClusterId()
|
||||
def namespace = request.getNamespaceId()
|
||||
def client = kubernetesClientFactory.get(cluster)
|
||||
def result = null
|
||||
try {
|
||||
result = client.customResource(CRD_CONTEXT).get(namespace, name)
|
||||
} catch (Exception e) {
|
||||
log.warn("exception when get microservice from kubernetes server|namespace={}|name={}|exception={}",
|
||||
namespace, name, ExceptionUtils.getStackTrace(e))
|
||||
return GetDeployComponentHandlerRes.builder()
|
||||
.status(DeployComponentStateEnum.RUNNING)
|
||||
.message(JSONObject.toJSONString(result))
|
||||
.build()
|
||||
}
|
||||
if (result == null) {
|
||||
return GetDeployComponentHandlerRes.builder()
|
||||
.status(DeployComponentStateEnum.FAILURE)
|
||||
.message(String.format("cr not exists|request=%s", JSONObject.toJSONString(request)))
|
||||
.build()
|
||||
} else if (result.get("status") == null) {
|
||||
return GetDeployComponentHandlerRes.builder()
|
||||
.status(DeployComponentStateEnum.RUNNING)
|
||||
.message(JSONObject.toJSONString(result))
|
||||
.build()
|
||||
}
|
||||
|
||||
def statusStr = JSONObject.toJSONString(result.get("status"))
|
||||
def status = JSONObject.parseObject(statusStr).getString("condition")
|
||||
DeployComponentStateEnum finalStatus
|
||||
switch (status) {
|
||||
case "Available":
|
||||
def lastTransitionTime = ""
|
||||
def reconcileSuccessStatus = "False"
|
||||
def conditions = JSONObject.parseObject(statusStr).getJSONArray("conditions")
|
||||
if (conditions == null || conditions.size() == 0) {
|
||||
finalStatus = DeployComponentStateEnum.RUNNING
|
||||
} else {
|
||||
for (Object c : conditions) {
|
||||
def condition = (JSONObject) c
|
||||
if ("ReconcileSuccess" != condition.getString("type")) {
|
||||
continue
|
||||
}
|
||||
lastTransitionTime = condition.getString("lastTransitionTime")
|
||||
reconcileSuccessStatus = condition.getString("status")
|
||||
}
|
||||
if (StringUtils.isEmpty(lastTransitionTime)) {
|
||||
log.error("cannot get last transition time from microservice cr status|status={}", statusStr)
|
||||
finalStatus = DeployComponentStateEnum.FAILURE
|
||||
} else if (reconcileSuccessStatus != "True") {
|
||||
log.error("microservice cr reconcile status is False|status={}", statusStr)
|
||||
finalStatus = DeployComponentStateEnum.RUNNING
|
||||
} else if (System.currentTimeMillis() -
|
||||
(new DateTime(lastTransitionTime).toInstant().getMillis()) > 5 * 1000) {
|
||||
finalStatus = DeployComponentStateEnum.SUCCESS
|
||||
} else {
|
||||
Long now = System.currentTimeMillis()
|
||||
Long calc = new DateTime(lastTransitionTime).toInstant().getMillis()
|
||||
log.info("microservice cr status is ok, but still unstable, waiting for it...|status={}|" +
|
||||
"now={}|calc={}", statusStr, now, calc)
|
||||
finalStatus = DeployComponentStateEnum.RUNNING
|
||||
}
|
||||
}
|
||||
break
|
||||
case "Failure":
|
||||
finalStatus = DeployComponentStateEnum.RUNNING
|
||||
break
|
||||
default:
|
||||
finalStatus = DeployComponentStateEnum.RUNNING
|
||||
break
|
||||
}
|
||||
GetDeployComponentHandlerRes res = GetDeployComponentHandlerRes.builder()
|
||||
.status(finalStatus)
|
||||
.message(statusStr)
|
||||
.build()
|
||||
log.info("fetch microservice deployment result|result={}", JSONObject.toJSONString(res))
|
||||
return res
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 兼容历史版本使用:刷新 workload 中的 env 对象
|
||||
* @param request 部署组件请求
|
||||
* @param componentSchema ComponentSchema 对象
|
||||
*/
|
||||
private static void refreshComponentSchemaWorkload(ComponentSchema componentSchema) {
|
||||
def workload = componentSchema.getSpec().getWorkload()
|
||||
def specJson = (JSONObject) (workload.getSpec())
|
||||
updateEnvironments(specJson)
|
||||
workload.setSpec(JSONObject.parseObject(specJson.toJSONString()))
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载组件包到本地,并解压到临时目录中
|
||||
* @param request
|
||||
* @return 解压后的目录绝对路径
|
||||
*/
|
||||
private static String getPackageDir(LaunchDeployComponentHandlerReq request) {
|
||||
def remoteUrl = request.getComponentPackageUrl()
|
||||
if (StringUtils.isEmpty(remoteUrl)) {
|
||||
throw new AppException(AppErrorCode.INVALID_USER_ARGS, "empty \"componentPackageUrl\" parameter")
|
||||
}
|
||||
def zipFile = Files.createTempFile(KEY_COMPONENT_PACKAGE_URL, ".zip").toFile()
|
||||
def zipFileAbsPath = zipFile.getAbsolutePath()
|
||||
NetworkUtil.download(remoteUrl, zipFile.getAbsolutePath())
|
||||
def workDirFile = Files.createTempDirectory(KEY_COMPONENT_PACKAGE_URL)
|
||||
def workDirAbsPath = workDirFile.toFile().getAbsolutePath()
|
||||
ZipUtil.unzip(zipFileAbsPath, workDirAbsPath)
|
||||
FileUtils.deleteQuietly(zipFile)
|
||||
log.info("action=getPackageDir|zipPath={}|workDir={}", zipFileAbsPath, workDirAbsPath)
|
||||
return workDirAbsPath
|
||||
}
|
||||
|
||||
/**
|
||||
* 将所有的 env 的 value 转换为字符串,避免出现数字
|
||||
* @param workloadResource workload resource
|
||||
*/
|
||||
private static void updateEnvironments(JSONObject specJson) {
|
||||
JSONObject envJson = specJson.getJSONObject("env")
|
||||
if (envJson != null && envJson.size() > 0) {
|
||||
envJson.replaceAll({ k, v -> String.valueOf(envJson.get(k)) })
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 应用 CR 到指定的 Kubernetes 环境中
|
||||
* @param request 部署请求
|
||||
* @param componentSchema ComponentSchema 对象
|
||||
*/
|
||||
private void apply(LaunchDeployComponentHandlerReq request, ComponentSchema componentSchema) {
|
||||
def deployAppId = request.getDeployAppId()
|
||||
def deployComponentId = request.getDeployComponentId()
|
||||
def userCustomName = ((JSONObject) componentSchema.getSpec().getWorkload().getSpec()).getString("name")
|
||||
def appId = request.getAppId()
|
||||
def componentName = request.getComponentName()
|
||||
def cluster = request.getClusterId()
|
||||
def namespace = request.getNamespaceId()
|
||||
def stageId = request.getStageId()
|
||||
def name = getMetaName(appId, componentName, stageId)
|
||||
def logSuffix = String.format("deployAppId=%d|deployComponentId=%d|clusterId=%s|namespaceId=%s|stageId=%s|" +
|
||||
"name=%s|appId=%s|componentName=%s", deployAppId, deployComponentId,
|
||||
cluster, namespace, stageId, name, appId, componentName)
|
||||
|
||||
// 将所有 spec.env 转换为字符串
|
||||
def workload = componentSchema.getSpec().getWorkload()
|
||||
def envObject = ((JSONObject) workload.getSpec()).getJSONObject("env")
|
||||
if (envObject != null) {
|
||||
def transformMap = new HashMap<String, String>()
|
||||
def removeKeyMap = new HashSet<String>()
|
||||
for (Map.Entry<String, Object> entry : envObject.entrySet()) {
|
||||
def key = entry.getKey()
|
||||
def value = entry.getValue()
|
||||
// null 直接忽略
|
||||
if (value == null) {
|
||||
removeKeyMap.add(key)
|
||||
continue
|
||||
}
|
||||
// 字符串直接忽略
|
||||
if (value instanceof String) {
|
||||
if (StringUtils.isEmpty(value)) {
|
||||
removeKeyMap.add(key)
|
||||
}
|
||||
continue
|
||||
}
|
||||
// 其他类型全部 to string
|
||||
transformMap.put(key, String.valueOf(value))
|
||||
}
|
||||
envObject.putAll(transformMap)
|
||||
for (String key : removeKeyMap) {
|
||||
envObject.remove(key)
|
||||
}
|
||||
}
|
||||
|
||||
// 如果用户自定义了名字,那么使用用户自己的
|
||||
if (StringUtils.isNotEmpty(userCustomName)) {
|
||||
name = getMetaName(userCustomName, componentName, stageId)
|
||||
workload.getMetadata().setName(name)
|
||||
((JSONObject) workload.getMetadata().getLabels()).put(LABEL_APP_ID, userCustomName)
|
||||
((JSONObject) workload.getMetadata().getLabels()).put(LABEL_COMPATIBLE_APP_ID, userCustomName)
|
||||
}
|
||||
|
||||
// 将全部的 PLACEHOLDER 进行渲染
|
||||
def cr = JSONObject.toJSONString(workload)
|
||||
try {
|
||||
def client = kubernetesClientFactory.get(cluster)
|
||||
def resource = new JSONObject(client.customResource(CRD_CONTEXT)
|
||||
.load(new ByteArrayInputStream(cr.getBytes(StandardCharsets.UTF_8))))
|
||||
// 以下 id 字段为历史兼容使用
|
||||
resource.getJSONObject("metadata").getJSONObject("annotations").put("id", UUID.randomUUID().toString())
|
||||
// 填入 owner reference 信息
|
||||
if (StringUtils.isNotEmpty(request.getOwnerReference())) {
|
||||
resource.getJSONObject("metadata").put("ownerReferences", new JSONArray())
|
||||
resource.getJSONObject("metadata").getJSONArray("ownerReferences")
|
||||
.add(JSONObject.parseObject(request.getOwnerReference()))
|
||||
}
|
||||
try {
|
||||
def currentCr = client.customResource(CRD_CONTEXT).get(namespace, name)
|
||||
if (currentCr == null || currentCr.size() == 0) {
|
||||
def result = client.customResource(CRD_CONTEXT).create(namespace, resource)
|
||||
log.info("cr yaml has created in kubernetes|{}|cr={}|result={}", logSuffix, cr,
|
||||
JSONObject.toJSONString(result))
|
||||
} else {
|
||||
def current = new JSONObject(currentCr)
|
||||
def labels = resource.getJSONObject("metadata").getJSONObject("labels")
|
||||
def annotations = resource.getJSONObject("metadata").getJSONObject("annotations")
|
||||
current.getJSONObject("metadata").put("labels", labels)
|
||||
current.getJSONObject("metadata").put("annotations", annotations)
|
||||
// 填入 owner reference 信息
|
||||
if (StringUtils.isNotEmpty(request.getOwnerReference())) {
|
||||
current.getJSONObject("metadata").put("ownerReferences", new JSONArray())
|
||||
current.getJSONObject("metadata").getJSONArray("ownerReferences")
|
||||
.add(JSONObject.parseObject(request.getOwnerReference()))
|
||||
}
|
||||
current.put("spec", resource.getJSONObject("spec"))
|
||||
def result = client.customResource(CRD_CONTEXT).edit(namespace, name, current)
|
||||
log.info("cr yaml has updated in kubernetes|{}|cr={}|" +
|
||||
"result={}", logSuffix, cr, JSONObject.toJSONString(result))
|
||||
}
|
||||
} catch (KubernetesClientException e) {
|
||||
if (e.getCode() == 404) {
|
||||
def result = client.customResource(CRD_CONTEXT).create(namespace, resource)
|
||||
log.info("cr yaml has created in kubernetes|{}|cr={}|result={}", logSuffix, cr,
|
||||
JSONObject.toJSONString(result))
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
// 等待 CR 状态变为 Progressing ,如果超过 1min 未改变,那么仍然置为成功 (历史兼容)
|
||||
for (int i = 0; i < 12; i++) {
|
||||
try {
|
||||
Thread.sleep(5 * 1000)
|
||||
def result = client.customResource(CRD_CONTEXT).get(namespace, name)
|
||||
if (result == null || result.get("status") == null) {
|
||||
continue
|
||||
}
|
||||
def statusStr = JSONObject.toJSONString(result.get("status"))
|
||||
def status = JSONObject.parseObject(statusStr).getString("condition")
|
||||
if (status != "Available") {
|
||||
log.info("cr status has changed to {}, break apply waiting|{}", status, logSuffix)
|
||||
break
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("found exception while waiting the cr status changes, continue waiting|{}|exception={}",
|
||||
logSuffix, ExceptionUtils.getStackTrace(e))
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("apply cr yaml to kubernetes failed|{}|" +
|
||||
"exception={}|cr={}", logSuffix, ExceptionUtils.getStackTrace(e), cr)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取部署 Component 的 meta 信息中的 name
|
||||
* @param request 部署组件请求
|
||||
* @return
|
||||
*/
|
||||
private static String getMetaName(String appId, String componentName, String stageId) {
|
||||
def name
|
||||
if (StringUtils.isEmpty(stageId)) {
|
||||
name = String.format("%s-%s", appId, componentName)
|
||||
} else {
|
||||
name = String.format("%s-%s-%s", stageId, appId, componentName)
|
||||
}
|
||||
return name
|
||||
}
|
||||
}
|
|
@ -0,0 +1,112 @@
|
|||
package dynamicscripts
|
||||
|
||||
|
||||
import com.alibaba.tesla.appmanager.common.enums.DynamicScriptKindEnum
|
||||
import com.alibaba.tesla.appmanager.common.exception.AppErrorCode
|
||||
import com.alibaba.tesla.appmanager.common.exception.AppException
|
||||
import com.alibaba.tesla.appmanager.domain.req.destroy.DestroyComponentInstanceReq
|
||||
import com.alibaba.tesla.appmanager.kubernetes.KubernetesClientFactory
|
||||
import com.alibaba.tesla.appmanager.server.dynamicscript.handler.ComponentDestroyHandler
|
||||
import com.alibaba.tesla.appmanager.server.repository.condition.RtAppInstanceQueryCondition
|
||||
import com.alibaba.tesla.appmanager.server.service.rtappinstance.RtAppInstanceService
|
||||
import io.fabric8.kubernetes.client.dsl.base.CustomResourceDefinitionContext
|
||||
import org.apache.commons.lang3.StringUtils
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
import org.springframework.beans.factory.annotation.Autowired
|
||||
|
||||
/**
|
||||
* Microservice 组件销毁 Handler
|
||||
*
|
||||
* @author yaoxing.gyx@alibaba-inc.com
|
||||
*/
|
||||
class MicroServiceV1Beta1ComponentDestroyHandler implements ComponentDestroyHandler {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(MicroServiceV1Beta1ComponentDestroyHandler.class)
|
||||
|
||||
/**
|
||||
* Handler 元信息
|
||||
*/
|
||||
public static final String KIND = DynamicScriptKindEnum.COMPONENT_DESTROY.toString()
|
||||
public static final String NAME = "microservice.component.sreworks.io/v1beta1"
|
||||
public static final Integer REVISION = 4
|
||||
|
||||
/**
|
||||
* CRD Context
|
||||
*/
|
||||
private static final CustomResourceDefinitionContext CRD_CONTEXT = new CustomResourceDefinitionContext.Builder()
|
||||
.withName("microservices.apps.abm.io")
|
||||
.withGroup("apps.abm.io")
|
||||
.withVersion("v1")
|
||||
.withPlural("microservices")
|
||||
.withScope("Namespaced")
|
||||
.build()
|
||||
|
||||
@Autowired
|
||||
private KubernetesClientFactory kubernetesClientFactory
|
||||
|
||||
@Autowired
|
||||
private RtAppInstanceService rtAppInstanceService
|
||||
|
||||
/**
|
||||
* 销毁组件实例
|
||||
*
|
||||
* @param request 销毁请求
|
||||
*/
|
||||
@Override
|
||||
void destroy(DestroyComponentInstanceReq request) {
|
||||
def appId = request.getAppId()
|
||||
def componentName = request.getComponentName()
|
||||
def namespace = request.getNamespaceId()
|
||||
def stageId = request.getStageId()
|
||||
def name = getMetaName(appId, componentName, stageId)
|
||||
def client = kubernetesClientFactory.get(request.getClusterId())
|
||||
def logSuffix = String.format("appId=%s|componentName=%s|namespace=%s|stageId=%s|name=%s",
|
||||
appId, componentName, namespace, stageId, name)
|
||||
|
||||
// 确认是否存在 owner reference 配置
|
||||
def appInstance = rtAppInstanceService.get(RtAppInstanceQueryCondition.builder()
|
||||
.appInstanceId(request.getAppInstanceId())
|
||||
.build())
|
||||
if (appInstance == null) {
|
||||
throw new AppException(AppErrorCode.INVALID_USER_ARGS, "cannot find app instance when destroy component " +
|
||||
"instance|{}", logSuffix)
|
||||
} else if (StringUtils.isNotEmpty(appInstance.getOwnerReference())) {
|
||||
log.info("find owner reference in app instance, no need to delete microservice cr, skip|{}", logSuffix)
|
||||
return
|
||||
}
|
||||
|
||||
// 删除历史上创建出来的 CR/svc/ingress (兼容使用)
|
||||
def microserviceCr = client.customResource(CRD_CONTEXT).inNamespace(namespace).withName(name).get()
|
||||
if (microserviceCr == null || microserviceCr.size() == 0) {
|
||||
log.info("no need to delete microservice cr, skip|{}", logSuffix)
|
||||
} else {
|
||||
client.customResource(CRD_CONTEXT).inNamespace(namespace).withName(name).delete()
|
||||
log.info("delete microservice cr succeed|{}", logSuffix)
|
||||
}
|
||||
def svcCr = client.services().inNamespace(namespace).withName(name).get()
|
||||
if (svcCr == null) {
|
||||
log.info("no need to delete service, skip|{}", logSuffix)
|
||||
} else {
|
||||
client.services().inNamespace(namespace).withName(name).delete()
|
||||
log.info("delete service succeed|{}", logSuffix)
|
||||
}
|
||||
def ingressCr = client.extensions().ingresses().inNamespace(namespace).withName(name).get()
|
||||
if (ingressCr == null) {
|
||||
log.info("no need to delete ingress, skip|{}", logSuffix)
|
||||
} else {
|
||||
client.extensions().ingresses().inNamespace(namespace).withName(name).delete()
|
||||
log.info("delete ingress succeed|{}", logSuffix)
|
||||
}
|
||||
}
|
||||
|
||||
private static String getMetaName(String appId, String componentName, String stageId) {
|
||||
def name
|
||||
if (StringUtils.isEmpty(stageId)) {
|
||||
name = String.format("%s-%s", appId, componentName)
|
||||
} else {
|
||||
name = String.format("%s-%s-%s", stageId, appId, componentName)
|
||||
}
|
||||
return name
|
||||
}
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
package dynamicscripts
|
||||
|
||||
import com.alibaba.tesla.appmanager.server.dynamicscript.handler.ComponentHandler
|
||||
|
||||
/**
|
||||
* MicroService 类型组件
|
||||
*
|
||||
* @author yaoxing.gyx@alibaba-inc.com
|
||||
*/
|
||||
class MicroServiceV1Beta1ComponentHandler implements ComponentHandler {
|
||||
|
||||
/**
|
||||
* Handler 元信息
|
||||
*/
|
||||
public static final String KIND = "COMPONENT"
|
||||
public static final String NAME = "microservice.component.sreworks.io/v1beta1"
|
||||
public static final Integer REVISION = 0
|
||||
|
||||
/**
|
||||
* 获取 `COMPONENT_BUILD` 类型下的映射名称
|
||||
*
|
||||
* @return 示例:`MicroserviceDefault`
|
||||
*/
|
||||
@Override
|
||||
String buildScriptName() {
|
||||
return NAME
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 `COMPONENT_DEPLOY` 类型下的映射名称
|
||||
*
|
||||
* @return 示例:`JobDefault` / `HelmDefault`
|
||||
*/
|
||||
@Override
|
||||
String deployScriptName() {
|
||||
return NAME
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 `COMPONENT_DESTROY` 类型下的映射名称
|
||||
*
|
||||
* @return 示例:`HelmDefault`
|
||||
*/
|
||||
@Override
|
||||
String destroyName() {
|
||||
return NAME
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取状态监听类型
|
||||
*
|
||||
* @return 返回 `KUBERNETES_INFORMER` 或 `CRON`
|
||||
*/
|
||||
@Override
|
||||
String watchKind() {
|
||||
return ""
|
||||
}
|
||||
|
||||
/**
|
||||
* 如果 `watchKind` 返回 `KUBERNETES_INFORMER`,则对应 `COMPONENT_WATCH_KUBERNETES_INFORMER` 类型下的映射名称
|
||||
* <p>
|
||||
* 如果 `watchKind` 返回 `CRON`,则对应 `COMPONENT_WATCH_CRON` 类型下的映射名称
|
||||
*
|
||||
* @return 返回对应类型下的映射名称
|
||||
*/
|
||||
@Override
|
||||
String watchScriptName() {
|
||||
return ""
|
||||
}
|
||||
}
|
|
@ -0,0 +1,96 @@
|
|||
{
|
||||
|
||||
"builds":[{
|
||||
"type": "kaniko",
|
||||
"name": "Kaniko",
|
||||
"parameters":[
|
||||
{
|
||||
"type": 3,
|
||||
"name": "imagePushRegistryValue",
|
||||
"label": "推送镜像仓库",
|
||||
"api": "gateway/sreworks/teammanage/teamRegistry/valueSelector?teamId=$(teamId)",
|
||||
"defModel": {
|
||||
"remote": true
|
||||
},
|
||||
"effectHandler": "function effectHandler(nodeParams,formValues){if(formValues['config--imagePushRegistryValue']){var info=JSON.parse(formValues['config--imagePushRegistryValue']);console.log(info);return {'config--imagePushRegistry':info.url};}else{console.log(formValues);return {}}}"
|
||||
},{
|
||||
"type": 1,
|
||||
"name": "imagePushRegistry",
|
||||
"label": "容器镜像仓库地址"
|
||||
},
|
||||
{
|
||||
"type": 85,
|
||||
"name": "containers",
|
||||
"label": "主容器",
|
||||
"defModel": {
|
||||
"enableRemove": true,
|
||||
"pagination": false,
|
||||
"enableAdd": true,
|
||||
"enableEdit": true,
|
||||
"columns": [
|
||||
{
|
||||
"editProps": {
|
||||
"name": "name",
|
||||
"label": "",
|
||||
"type": 1,
|
||||
"required": false,
|
||||
"inputTip": "container name"
|
||||
},
|
||||
"dataIndex": "name",
|
||||
"title": "名称",
|
||||
"key": "name"
|
||||
},
|
||||
{
|
||||
"editProps": {
|
||||
"name": "dockerfile",
|
||||
"label": "",
|
||||
"type": 1,
|
||||
"required": false,
|
||||
"inputTip": "可用于构建的Dockerfile文件"
|
||||
},
|
||||
"dataIndex": "dockerfile",
|
||||
"title": "Dockerfile路径",
|
||||
"key": "dockerfile"
|
||||
}
|
||||
]
|
||||
}
|
||||
},{
|
||||
"type": 85,
|
||||
"name": "initContainers",
|
||||
"label": "初始化容器",
|
||||
"defModel": {
|
||||
"enableRemove": true,
|
||||
"pagination": false,
|
||||
"enableAdd": true,
|
||||
"enableEdit": true,
|
||||
"columns": [
|
||||
{
|
||||
"editProps": {
|
||||
"name": "name",
|
||||
"label": "",
|
||||
"type": 1,
|
||||
"required": false,
|
||||
"inputTip": "container name"
|
||||
},
|
||||
"dataIndex": "name",
|
||||
"title": "名称",
|
||||
"key": "name"
|
||||
},
|
||||
{
|
||||
"editProps": {
|
||||
"name": "dockerfile",
|
||||
"label": "",
|
||||
"type": 1,
|
||||
"required": false,
|
||||
"inputTip": "可用于构建的Dockerfile文件"
|
||||
},
|
||||
"dataIndex": "dockerfile",
|
||||
"title": "Dockerfile路径",
|
||||
"key": "dockerfile"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"parameters": [{
|
||||
"type": 85,
|
||||
"name": "envs",
|
||||
"label": "环境变量",
|
||||
"tooltip": "启动容器时携带的环境变量参数",
|
||||
"defModel": {
|
||||
"enableRemove": true,
|
||||
"pagination": false,
|
||||
"enableAdd": true,
|
||||
"enableEdit": true,
|
||||
"columns": [
|
||||
{
|
||||
"editProps": {
|
||||
"name": "key",
|
||||
"label": "",
|
||||
"type": 1,
|
||||
"required": false,
|
||||
"inputTip": "key"
|
||||
},
|
||||
"dataIndex": "key",
|
||||
"title": "键",
|
||||
"key": "key"
|
||||
},
|
||||
{
|
||||
"editProps": {
|
||||
"name": "value",
|
||||
"label": "",
|
||||
"type": 1,
|
||||
"required": false,
|
||||
"inputTip": "value"
|
||||
},
|
||||
"dataIndex": "value",
|
||||
"title": "默认值",
|
||||
"key": "value"
|
||||
}
|
||||
]
|
||||
},
|
||||
"toFieldPath": "spec.envs"
|
||||
}]
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
|
||||
"sources":[{
|
||||
"type": "git"
|
||||
},{
|
||||
"type": "team-git"
|
||||
}]
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: demo
|
||||
data:
|
||||
player_initial_lives: "3"
|
|
@ -4,11 +4,12 @@ metadata:
|
|||
name: ingress.trait.sreworks.io/v1beta1
|
||||
annotations:
|
||||
definition.oam.dev/description: "The Kubernetes Ingress"
|
||||
definition.oam.dev/version: "1.1.1"
|
||||
definition.oam.dev/version: "1.1.2"
|
||||
definition.oam.dev/tags: "key=value"
|
||||
spec:
|
||||
appliesToWorkloads:
|
||||
- helm.component.sreworks.io/v1beta1
|
||||
- microservice.component.sreworks.io/v1beta1
|
||||
schematic:
|
||||
groovy:
|
||||
files:
|
||||
|
|
|
@ -4,11 +4,12 @@ metadata:
|
|||
name: nodeport.trait.sreworks.io/v1beta1
|
||||
annotations:
|
||||
definition.oam.dev/description: "The Kubernetes NodePort Service"
|
||||
definition.oam.dev/version: "1.0.4"
|
||||
definition.oam.dev/version: "1.0.5"
|
||||
definition.oam.dev/tags: "key=value"
|
||||
spec:
|
||||
appliesToWorkloads:
|
||||
- helm.component.sreworks.io/v1beta1
|
||||
- microservice.component.sreworks.io/v1beta1
|
||||
schematic:
|
||||
groovy:
|
||||
files:
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 12.7.3+20230307055738569369
|
||||
annotations.appmanager.oam.dev/version: 13.0.8+20230313074709210230
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: app
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 12.7.3+20230307055738569369
|
||||
annotations.appmanager.oam.dev/version: 13.0.8+20230313074709210230
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 9.3.5+20230307055738692140
|
||||
annotations.appmanager.oam.dev/version: 9.6.1+20230313074709237553
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: app
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 9.3.5+20230307055738692140
|
||||
annotations.appmanager.oam.dev/version: 9.6.1+20230313074709237553
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"addons":[{"addonConfig":"{}","addonId":"system-env","addonType":"RESOURCE_ADDON","addonVersion":"_","appId":"app","gmtCreate":1664529678000,"gmtModified":1670231647000,"id":47,"name":"system-env","namespaceId":"sreworks","stageId":"dev"},{"addonConfig":"{}","addonId":"productopsv2","addonType":"INTERNAL_ADDON","addonVersion":"_","appId":"app","gmtCreate":1664466210000,"gmtModified":1670231647000,"id":46,"name":"productopsv2","namespaceId":"sreworks","stageId":"dev"}],"microservices":[{"appId":"app","arch":"","componentType":"K8S_MICROSERVICE","description":"","gmtCreate":1660019661000,"gmtModified":1670231647000,"id":87,"microServiceExt":"{\"initContainerList\":[{\"dockerfilePath\":\"Dockerfile-db-migration\",\"name\":\"db-migration\",\"repoPath\":\"saas/app/api/app\",\"type\":\"shell\"}],\"kind\":\"Deployment\",\"envKeyList\":[\"DB_HOST\",\"DB_PORT\",\"DB_USER\",\"DB_PASSWORD\",\"DB_NAME=sreworks_meta\",\"COOKIE_DOMAIN\",\"APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\",\"APPMANAGER_PACKAGE_ENDPOINT\",\"APPMANAGER_PACKAGE_ACCESS_KEY\",\"APPMANAGER_PACKAGE_SECRET_KEY\",\"APPMANAGER_ENDPOINT=http://sreworks-appmanager\",\"APPMANAGER_USERNAME\",\"APPMANAGER_PASSWORD\",\"APPMANAGER_CLIENT_ID\",\"APPMANAGER_CLIENT_SECRET\",\"AUTHPROXY_ENDPOINT=http://prod-flycore-paas-authproxy\"],\"repo\":{\"ciAccount\":\"default\",\"ciToken\":\"default\",\"dockerfilePath\":\"Dockerfile\",\"repo\":\"https://code.aliyun.com/sreworks_public/mirror.git\",\"repoDomain\":\"code.aliyun.com\",\"repoGroup\":\"sreworks_public\",\"repoPath\":\"saas/app/api/app\",\"repoProject\":\"sreworks\",\"repoType\":\"THIRD_REPO\"},\"launch\":{\"gatewayAuthEnabled\":true,\"gatewayRoute\":\"/sreworks/**\",\"gatewayRouteOrder\":5000,\"replicas\":1,\"servicePorts\":\"7001\"}}","microServiceId":"app","name":"app","namespaceId":"sreworks","options":"options:\n kind: Deployment\n containers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile\n ciAccount: default\n ciToken: default\n repoPath: saas/app/api/app\n branch: master\n name: app\n env:\n - DB_HOST\n - DB_PORT\n - DB_USER\n - DB_PASSWORD\n - DB_NAME\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_ENDPOINT\n - APPMANAGER_USERNAME\n - APPMANAGER_PASSWORD\n - APPMANAGER_CLIENT_ID\n - APPMANAGER_CLIENT_SECRET\n - AUTHPROXY_ENDPOINT\n initContainers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile-db-migration\n ciAccount: default\n ciToken: default\n repoPath: saas/app/api/app\n branch: master\n name: db-migration\n","stageId":"dev"}]}
|
||||
{"REVISION":23,"addons":[{"gmtModified":1670231647000,"addonConfig":"{}","namespaceId":"sreworks","appId":"app","addonType":"RESOURCE_ADDON","addonVersion":"_","name":"system-env","id":47,"gmtCreate":1664529678000,"addonId":"system-env","stageId":"dev"},{"gmtModified":1670231647000,"addonConfig":"{}","namespaceId":"sreworks","appId":"app","addonType":"INTERNAL_ADDON","addonVersion":"_","name":"productopsv2","id":46,"gmtCreate":1664466210000,"addonId":"productopsv2","stageId":"dev"}],"microservices":[{"componentType":"K8S_MICROSERVICE","gmtModified":1670231647000,"microServiceId":"app","microServiceExt":"{\"initContainerList\":[{\"dockerfilePath\":\"Dockerfile-db-migration\",\"name\":\"db-migration\",\"repoPath\":\"saas/app/api/app\",\"type\":\"shell\"}],\"kind\":\"Deployment\",\"envKeyList\":[\"DB_HOST\",\"DB_PORT\",\"DB_USER\",\"DB_PASSWORD\",\"DB_NAME=sreworks_meta\",\"COOKIE_DOMAIN\",\"APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\",\"APPMANAGER_PACKAGE_ENDPOINT\",\"APPMANAGER_PACKAGE_ACCESS_KEY\",\"APPMANAGER_PACKAGE_SECRET_KEY\",\"APPMANAGER_ENDPOINT=http://sreworks-appmanager\",\"APPMANAGER_USERNAME\",\"APPMANAGER_PASSWORD\",\"APPMANAGER_CLIENT_ID\",\"APPMANAGER_CLIENT_SECRET\",\"AUTHPROXY_ENDPOINT=http://prod-flycore-paas-authproxy\"],\"repo\":{\"ciAccount\":\"default\",\"ciToken\":\"default\",\"dockerfilePath\":\"Dockerfile\",\"repo\":\"https://code.aliyun.com/sreworks_public/mirror.git\",\"repoDomain\":\"code.aliyun.com\",\"repoGroup\":\"sreworks_public\",\"repoPath\":\"saas/app/api/app\",\"repoProject\":\"sreworks\",\"repoType\":\"THIRD_REPO\"},\"launch\":{\"gatewayAuthEnabled\":true,\"gatewayRoute\":\"/sreworks/**\",\"gatewayRouteOrder\":5000,\"replicas\":1,\"servicePorts\":\"7001\"}}","description":"","gmtCreate":1660019661000,"namespaceId":"sreworks","appId":"app","name":"app","options":"options:\n kind: Deployment\n containers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile\n ciAccount: default\n ciToken: default\n repoPath: saas/app/api/app\n branch: master\n name: app\n env:\n - DB_HOST\n - DB_PORT\n - DB_USER\n - DB_PASSWORD\n - DB_NAME\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_ENDPOINT\n - APPMANAGER_USERNAME\n - APPMANAGER_PASSWORD\n - APPMANAGER_CLIENT_ID\n - APPMANAGER_CLIENT_SECRET\n - AUTHPROXY_ENDPOINT\n initContainers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile-db-migration\n ciAccount: default\n ciToken: default\n repoPath: saas/app/api/app\n branch: master\n name: db-migration\n","arch":"","export":true,"stageId":"dev"}]}
|
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 12.7.9+20230307055738245371
|
||||
annotations.appmanager.oam.dev/version: 13.1.4+20230313074709969119
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: app
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 12.7.9+20230307055738245371
|
||||
annotations.appmanager.oam.dev/version: 13.1.4+20230313074709969119
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 11.6.5+20230307055738348958
|
||||
annotations.appmanager.oam.dev/version: 12.0.0+20230313074709787197
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: app
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 11.6.5+20230307055738348958
|
||||
annotations.appmanager.oam.dev/version: 12.0.0+20230313074709787197
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
@ -44,7 +44,7 @@ spec:
|
|||
replicas: 1
|
||||
name: ''
|
||||
containers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/app-app-app:1678168658561
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/app-app-app:1678693629026
|
||||
name: app
|
||||
env:
|
||||
COOKIE_DOMAIN: '{{ Global.COOKIE_DOMAIN }}'
|
||||
|
@ -64,5 +64,5 @@ spec:
|
|||
AUTHPROXY_ENDPOINT: '{{ Global.AUTHPROXY_ENDPOINT }}'
|
||||
DB_PASSWORD: '{{ Global.DB_PASSWORD }}'
|
||||
initContainers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/app-app-db-migration:1678168658561
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/app-app-db-migration:1678693629026
|
||||
name: db-migration
|
||||
|
|
|
@ -9,7 +9,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-app-app
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "11.6.5+20230307055738348958"
|
||||
annotations.appmanager.oam.dev/version: "12.0.0+20230313074709787197"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "app"
|
||||
labels.appmanager.oam.dev/componentName: "app"
|
||||
|
@ -39,7 +39,7 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "11.6.5+20230307055738348958"
|
||||
annotations.appmanager.oam.dev/version: "12.0.0+20230313074709787197"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
|
@ -66,13 +66,13 @@ componentPackages:
|
|||
AUTHPROXY_ENDPOINT: "{{ Global.AUTHPROXY_ENDPOINT }}"
|
||||
initContainers:
|
||||
- name: "db-migration"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/app-app-db-migration:1678168658561"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/app-app-db-migration:1678693629026"
|
||||
containers:
|
||||
- name: "app"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/app-app-app:1678168658561"
|
||||
packageMd5: 80cdbc32487d943e7d8199e34461de94
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/app-app-app:1678693629026"
|
||||
packageMd5: 373d5ede2edd5e3841998ab939d40c03
|
||||
packageOptions: '{"kind":"Deployment","containers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile","ciAccount":"default","ciToken":"default","repoPath":"saas/app/api/app","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"app"}],"env":["DB_HOST","DB_PORT","DB_USER","DB_PASSWORD","DB_NAME","COOKIE_DOMAIN","APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL","APPMANAGER_PACKAGE_ENDPOINT","APPMANAGER_PACKAGE_ACCESS_KEY","APPMANAGER_PACKAGE_SECRET_KEY","APPMANAGER_ENDPOINT","APPMANAGER_USERNAME","APPMANAGER_PASSWORD","APPMANAGER_CLIENT_ID","APPMANAGER_CLIENT_SECRET","AUTHPROXY_ENDPOINT"],"initContainers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile-db-migration","ciAccount":"default","ciToken":"default","repoPath":"saas/app/api/app","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"db-migration"}],"componentConfiguration":"revisionName: K8S_MICROSERVICE|app|_\ntraits:\n- name: service.trait.abm.io\n runtime: post\n spec:\n ports:\n - protocol: TCP\n port: 80\n targetPort: 7001\n- name: gateway.trait.abm.io\n runtime: post\n spec:\n path: /sreworks/**\n authEnabled: true\n serviceName: ''{{ Global.STAGE_ID }}-app-app.{{ Global.NAMESPACE_ID }}''\n order: 5000\nscopes:\n- scopeRef:\n apiVersion: core.oam.dev/v1alpha2\n kind: Namespace\n spec:\n autoCreate: true\ndependencies:\n- component: RESOURCE_ADDON|system-env@system-env\nparameterValues:\n- name: REPLICAS\n value: 1\n toFieldPaths:\n - spec.replicas\n- name: Global.DB_NAME\n value: sreworks_meta\n- name: Global.APPMANAGER_ENDPOINT\n value: http://sreworks-appmanager\n- name: Global.AUTHPROXY_ENDPOINT\n value: http://prod-flycore-paas-authproxy\n","binderParameterValues":[],"binderTraits":[],"binderDependencies":[]}'
|
||||
packageVersion: 11.6.5+20230307055738348958
|
||||
packageVersion: 12.0.0+20230313074709787197
|
||||
relativePath: K8S_MICROSERVICE_app.zip
|
||||
- componentName: productopsv2
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -83,7 +83,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-app-productopsv2
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "12.7.9+20230307055738245371"
|
||||
annotations.appmanager.oam.dev/version: "13.1.4+20230313074709969119"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "app"
|
||||
labels.appmanager.oam.dev/componentName: "productopsv2"
|
||||
|
@ -113,15 +113,15 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "12.7.9+20230307055738245371"
|
||||
annotations.appmanager.oam.dev/version: "13.1.4+20230313074709969119"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec:
|
||||
targetEndpoint: ''
|
||||
packageMd5: 73d7b7e6a27e6481c58a09a28c171aa0
|
||||
packageMd5: e9c50fbec9d09ce628b803d6dc17e09e
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"componentConfiguration":"clusterId: ''''\ndataInputs: []\ndataOutputs: []\ndependencies: []\nnamespaceId: ''''\nparameterValues: []\nrevisionName: INTERNAL_ADDON|productopsv2|_\nscopes: []\nstageId: ''''\ntraits: []\n","isDevelop":true,"binderTraits":[]}'
|
||||
packageVersion: 12.7.9+20230307055738245371
|
||||
packageVersion: 13.1.4+20230313074709969119
|
||||
relativePath: INTERNAL_ADDON_productopsv2.zip
|
||||
- componentName: system-env@system-env
|
||||
componentType: RESOURCE_ADDON
|
||||
|
@ -164,9 +164,9 @@ componentPackages:
|
|||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec: {}
|
||||
packageMd5: 7c1c24b00f027bbf5220be0686bd6c32
|
||||
packageMd5: 5fd683c7f361c7ad0ce0f0997a5450f6
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"componentConfiguration":"clusterId: ''''\ndataInputs: []\ndataOutputs:\n- fieldPath: ''{{ spec.env.DB_HOST }}''\n name: Global.DB_HOST\n- fieldPath: ''{{ spec.env.DB_PASSWORD }}''\n name: Global.DB_PASSWORD\n- fieldPath: ''{{ spec.env.DB_PORT }}''\n name: Global.DB_PORT\n- fieldPath: ''{{ spec.env.DB_USER }}''\n name: Global.DB_USER\n- fieldPath: ''{{ spec.env.APPMANAGER_ACCESS_ID }}''\n name: Global.APPMANAGER_USERNAME\n- fieldPath: ''{{ spec.env.APPMANAGER_ACCESS_SECRET }}''\n name: Global.APPMANAGER_PASSWORD\n- fieldPath: ''{{ spec.env.APPMANAGER_CLIENT_ID }}''\n name: Global.APPMANAGER_CLIENT_ID\n- fieldPath: ''{{ spec.env.APPMANAGER_CLIENT_SECRET }}''\n name: Global.APPMANAGER_CLIENT_SECRET\n- fieldPath: ''{{ spec.env.COOKIE_DOMAIN }}''\n name: Global.COOKIE_DOMAIN\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ACCESS_KEY }}''\n name: Global.APPMANAGER_PACKAGE_ACCESS_KEY\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_SECRET_KEY }}''\n name: Global.APPMANAGER_PACKAGE_SECRET_KEY\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL }}''\n name: Global.APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ENDPOINT }}''\n name: Global.APPMANAGER_PACKAGE_ENDPOINT\n- fieldPath: ''{{ spec.env.STORAGE_CLASS }}''\n name: Global.STORAGE_CLASS\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_CLIENT_ID }}''\n name: Global.ACCOUNT_SUPER_CLIENT_ID\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_CLIENT_SECRET }}''\n name: Global.ACCOUNT_SUPER_CLIENT_SECRET\n- fieldPath: ''{{ spec.env.DATA_ES_PASSWORD }}''\n name: Global.DATA_ES_PASSWORD\n- fieldPath: ''{{ spec.env.DATA_ES_USER }}''\n name: Global.DATA_ES_USER\n- fieldPath: ''{{ spec.env.DATA_ES_HOST }}''\n name: Global.DATA_ES_HOST\n- fieldPath: ''{{ spec.env.DATA_ES_PORT }}''\n name: Global.DATA_ES_PORT\n- fieldPath: ''{{ spec.env.DATA_PROM_HOST }}''\n name: Global.DATA_PROM_HOST\n- fieldPath: ''{{ spec.env.DATA_PROM_PORT }}''\n name: Global.DATA_PROM_PORT\n- fieldPath: ''{{ spec.env.DATA_DB_PORT }}''\n name: Global.DATA_DB_PORT\n- fieldPath: ''{{ spec.env.DATA_DB_HOST }}''\n name: Global.DATA_DB_HOST\n- fieldPath: ''{{ spec.env.DATA_DB_USER }}''\n name: Global.DATA_DB_USER\n- fieldPath: ''{{ spec.env.DATA_DB_PASSWORD }}''\n name: Global.DATA_DB_PASSWORD\n- fieldPath: ''{{ spec.env.KAFKA_ENDPOINT }}''\n name: Global.KAFKA_ENDPOINT\n- fieldPath: ''{{ spec.env.MINIO_ENDPOINT }}''\n name: Global.MINIO_ENDPOINT\n- fieldPath: ''{{ spec.env.MINIO_ACCESS_KEY }}''\n name: Global.MINIO_ACCESS_KEY\n- fieldPath: ''{{ spec.env.MINIO_SECRET_KEY }}''\n name: Global.MINIO_SECRET_KEY\n- fieldPath: ''{{ spec.env.HOME_URL }}''\n name: Global.HOME_URL\n- fieldPath: ''{{ spec.env.REDIS_ENDPOINT }}''\n name: Global.REDIS_ENDPOINT\n- fieldPath: ''{{ spec.env.APPMANAGER_REDIS_PORT }}''\n name: Global.APPMANAGER_REDIS_PORT\n- fieldPath: ''{{ spec.env.REDIS_PASSWORD }}''\n name: Global.REDIS_PASSWORD\n- fieldPath: ''{{ spec.env.APPMANAGER_JWT_SECRET_KEY }}''\n name: Global.APPMANAGER_JWT_SECRET_KEY\n- fieldPath: ''{{ spec.env.PLATFORM_NAME }}''\n name: Global.PLATFORM_NAME\n- fieldPath: ''{{ spec.env.PLATFORM_LOGO }}''\n name: Global.PLATFORM_LOGO\n- fieldPath: ''{{ spec.env.K8S_NAMESPACE }}''\n name: Global.K8S_NAMESPACE\n- fieldPath: ''{{ spec.env.ENDPOINT_PAAS_MINIO }}''\n name: Global.ENDPOINT_PAAS_MINIO\n- fieldPath: ''{{ spec.env.ZOOKEEPER_ENDPOINT }}''\n name: Global.ZOOKEEPER_ENDPOINT\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_SECRET_KEY }}''\n name: Global.ACCOUNT_SUPER_SECRET_KEY\n- fieldPath: ''{{ spec.env.ADMIN_INIT_PASSWORD }}''\n name: Global.ADMIN_INIT_PASSWORD\ndependencies: []\nnamespaceId: ''''\nparameterValues:\n- name: keys\n toFieldPaths:\n - spec.keys\n value:\n - DB_HOST\n - DB_PASSWORD\n - DB_PORT\n - DB_USER\n - APPMANAGER_ACCESS_ID\n - APPMANAGER_ACCESS_SECRET\n - APPMANAGER_CLIENT_ID\n - APPMANAGER_CLIENT_SECRET\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - STORAGE_CLASS\n - ACCOUNT_SUPER_CLIENT_ID\n - ACCOUNT_SUPER_CLIENT_SECRET\n - DATA_ES_PASSWORD\n - DATA_ES_USER\n - DATA_ES_HOST\n - DATA_ES_PORT\n - DATA_PROM_HOST\n - DATA_PROM_PORT\n - DATA_DB_HOST\n - DATA_DB_PORT\n - DATA_DB_USER\n - DATA_DB_PASSWORD\n - KAFKA_ENDPOINT\n - MINIO_ENDPOINT\n - MINIO_ACCESS_KEY\n - MINIO_SECRET_KEY\n - HOME_URL\n - REDIS_ENDPOINT\n - APPMANAGER_REDIS_PORT\n - REDIS_PASSWORD\n - APPMANAGER_JWT_SECRET_KEY\n - PLATFORM_NAME\n - PLATFORM_LOGO\n - K8S_NAMESPACE\n - ENDPOINT_PAAS_MINIO\n - ZOOKEEPER_ENDPOINT\n - ACCOUNT_SUPER_SECRET_KEY\n - ADMIN_INIT_PASSWORD\nrevisionName: RESOURCE_ADDON|system-env@system-env|1.0\nscopes: []\nstageId: ''''\ntraits: []\n","binderTraits":[]}'
|
||||
packageVersion: 8.6.9+20230307055738610163
|
||||
packageVersion: 9.0.4+20230313074709199922
|
||||
relativePath: RESOURCE_ADDON_system-env@system-env.zip
|
||||
- componentName: developmentmeta
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -177,7 +177,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: internal-addon-app-developmentmeta
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "9.3.5+20230307055738692140"
|
||||
annotations.appmanager.oam.dev/version: "9.6.1+20230313074709237553"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "app"
|
||||
labels.appmanager.oam.dev/componentName: "developmentmeta"
|
||||
|
@ -207,14 +207,14 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "9.3.5+20230307055738692140"
|
||||
annotations.appmanager.oam.dev/version: "9.6.1+20230313074709237553"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec: {}
|
||||
packageMd5: 6caba9851b58d6870f5b7bb1b5605a08
|
||||
packageMd5: 45d3b1277035a772071d9f96ae6d7256
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"binderTraits":[]}'
|
||||
packageVersion: 9.3.5+20230307055738692140
|
||||
packageVersion: 9.6.1+20230313074709237553
|
||||
relativePath: INTERNAL_ADDON_developmentmeta.zip
|
||||
- componentName: appmeta
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -225,7 +225,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: internal-addon-app-appmeta
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "12.7.3+20230307055738569369"
|
||||
annotations.appmanager.oam.dev/version: "13.0.8+20230313074709210230"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "app"
|
||||
labels.appmanager.oam.dev/componentName: "appmeta"
|
||||
|
@ -255,19 +255,19 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "12.7.3+20230307055738569369"
|
||||
annotations.appmanager.oam.dev/version: "13.0.8+20230313074709210230"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec:
|
||||
overwriteIsDevelopment: false
|
||||
overwriteBuiltIn: false
|
||||
packageMd5: af1261ff914906d7e57f555f2552e87e
|
||||
packageMd5: 7c49941b3030f03f80dd4e5a6663b027
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"binderTraits":[]}'
|
||||
packageVersion: 12.7.3+20230307055738569369
|
||||
packageVersion: 13.0.8+20230313074709210230
|
||||
relativePath: INTERNAL_ADDON_appmeta.zip
|
||||
packageCreator: '999999999'
|
||||
packageVersion: 1.1.8+20230307061437873712
|
||||
packageVersion: 1.2.0+20230313075542341561
|
||||
tags:
|
||||
- release=sreworks/x86_64
|
||||
- on-sale
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230203220934882648
|
||||
annotations.appmanager.oam.dev/version: 1.3.4+20230313100300739666
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: cluster
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230203220934882648
|
||||
annotations.appmanager.oam.dev/version: 1.3.4+20230313100300739666
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230203220934742440
|
||||
annotations.appmanager.oam.dev/version: 1.3.4+20230313100300371707
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: cluster
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230203220934742440
|
||||
annotations.appmanager.oam.dev/version: 1.3.4+20230313100300371707
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"addons":[{"addonConfig":"{}","addonId":"system-env","addonType":"RESOURCE_ADDON","addonVersion":"_","appId":"cluster","gmtCreate":1660019811000,"gmtModified":1670231647000,"id":16,"name":"system-env","namespaceId":"sreworks","stageId":"dev"},{"addonConfig":"{}","addonId":"productopsv2","addonType":"INTERNAL_ADDON","addonVersion":"_","appId":"cluster","gmtCreate":1660019811000,"gmtModified":1670231647000,"id":15,"name":"productopsv2","namespaceId":"sreworks","stageId":"dev"}],"microservices":[{"appId":"cluster","arch":"","componentType":"K8S_MICROSERVICE","description":"","gmtCreate":1661468889000,"gmtModified":1670231647000,"id":151,"microServiceExt":"{\"initContainerList\":[{\"dockerfilePath\":\"Dockerfile-db-migration\",\"name\":\"db-migration\",\"repoPath\":\"saas/cluster/api/clustermanage\",\"type\":\"sql\"},{\"dockerfilePath\":\"Dockerfile-init-cluster\",\"name\":\"init-cluster\",\"repoPath\":\"saas/cluster/api/clustermanage\",\"type\":\"shell\"}],\"kind\":\"Deployment\",\"envKeyList\":[\"DB_HOST\",\"DB_PORT\",\"DB_USER\",\"DB_PASSWORD\",\"DB_NAME=sreworks_meta\",\"COOKIE_DOMAIN\",\"APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\",\"APPMANAGER_PACKAGE_ENDPOINT\",\"APPMANAGER_PACKAGE_ACCESS_KEY\",\"APPMANAGER_PACKAGE_SECRET_KEY\",\"APPMANAGER_ENDPOINT=http://sreworks-appmanager\",\"AUTHPROXY_ENDPOINT=http://prod-flycore-paas-authproxy\",\"APPMANAGER_USERNAME\",\"APPMANAGER_PASSWORD\",\"APPMANAGER_CLIENT_ID\",\"APPMANAGER_CLIENT_SECRET\"],\"repo\":{\"ciAccount\":\"public\",\"ciToken\":\"public\",\"dockerfilePath\":\"Dockerfile\",\"repo\":\"https://code.aliyun.com/sreworks_public/mirror.git\",\"repoDomain\":\"https:\",\"repoGroup\":\"\",\"repoPath\":\"saas/cluster/api/clustermanage\",\"repoProject\":\"code.aliyun.com\",\"repoType\":\"THIRD_REPO\"},\"launch\":{\"gatewayAuthEnabled\":true,\"gatewayRoute\":\"/sreworks/clustermanage/**\",\"replicas\":1,\"servicePorts\":\"7001\"}}","microServiceId":"clustermanage","name":"clustermanage","namespaceId":"sreworks","options":"options:\n kind: Deployment\n containers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile\n ciAccount: public\n ciToken: public\n repoPath: saas/cluster/api/clustermanage\n branch: master\n name: clustermanage\n env:\n - DB_HOST\n - DB_PORT\n - DB_USER\n - DB_PASSWORD\n - DB_NAME\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_ENDPOINT\n - AUTHPROXY_ENDPOINT\n - APPMANAGER_USERNAME\n - APPMANAGER_PASSWORD\n - APPMANAGER_CLIENT_ID\n - APPMANAGER_CLIENT_SECRET\n initContainers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile-db-migration\n ciAccount: public\n ciToken: public\n repoPath: saas/cluster/api/clustermanage\n branch: master\n name: db-migration\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile-init-cluster\n ciAccount: public\n ciToken: public\n repoPath: saas/cluster/api/clustermanage\n branch: master\n name: init-cluster\n","stageId":"dev"}]}
|
||||
{"REVISION":23,"addons":[{"gmtModified":1670231647000,"addonConfig":"{}","namespaceId":"sreworks","appId":"cluster","addonType":"RESOURCE_ADDON","addonVersion":"_","name":"system-env","id":16,"gmtCreate":1660019811000,"addonId":"system-env","stageId":"dev"},{"gmtModified":1670231647000,"addonConfig":"{}","namespaceId":"sreworks","appId":"cluster","addonType":"INTERNAL_ADDON","addonVersion":"_","name":"productopsv2","id":15,"gmtCreate":1660019811000,"addonId":"productopsv2","stageId":"dev"}],"microservices":[{"componentType":"K8S_MICROSERVICE","gmtModified":1670231647000,"microServiceId":"clustermanage","microServiceExt":"{\"initContainerList\":[{\"dockerfilePath\":\"Dockerfile-db-migration\",\"name\":\"db-migration\",\"repoPath\":\"saas/cluster/api/clustermanage\",\"type\":\"sql\"},{\"dockerfilePath\":\"Dockerfile-init-cluster\",\"name\":\"init-cluster\",\"repoPath\":\"saas/cluster/api/clustermanage\",\"type\":\"shell\"}],\"kind\":\"Deployment\",\"envKeyList\":[\"DB_HOST\",\"DB_PORT\",\"DB_USER\",\"DB_PASSWORD\",\"DB_NAME=sreworks_meta\",\"COOKIE_DOMAIN\",\"APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\",\"APPMANAGER_PACKAGE_ENDPOINT\",\"APPMANAGER_PACKAGE_ACCESS_KEY\",\"APPMANAGER_PACKAGE_SECRET_KEY\",\"APPMANAGER_ENDPOINT=http://sreworks-appmanager\",\"AUTHPROXY_ENDPOINT=http://prod-flycore-paas-authproxy\",\"APPMANAGER_USERNAME\",\"APPMANAGER_PASSWORD\",\"APPMANAGER_CLIENT_ID\",\"APPMANAGER_CLIENT_SECRET\"],\"repo\":{\"ciAccount\":\"public\",\"ciToken\":\"public\",\"dockerfilePath\":\"Dockerfile\",\"repo\":\"https://code.aliyun.com/sreworks_public/mirror.git\",\"repoDomain\":\"https:\",\"repoGroup\":\"\",\"repoPath\":\"saas/cluster/api/clustermanage\",\"repoProject\":\"code.aliyun.com\",\"repoType\":\"THIRD_REPO\"},\"launch\":{\"gatewayAuthEnabled\":true,\"gatewayRoute\":\"/sreworks/clustermanage/**\",\"replicas\":1,\"servicePorts\":\"7001\"}}","description":"","gmtCreate":1661468889000,"namespaceId":"sreworks","appId":"cluster","name":"clustermanage","options":"options:\n kind: Deployment\n containers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile\n ciAccount: public\n ciToken: public\n repoPath: saas/cluster/api/clustermanage\n branch: master\n name: clustermanage\n env:\n - DB_HOST\n - DB_PORT\n - DB_USER\n - DB_PASSWORD\n - DB_NAME\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_ENDPOINT\n - AUTHPROXY_ENDPOINT\n - APPMANAGER_USERNAME\n - APPMANAGER_PASSWORD\n - APPMANAGER_CLIENT_ID\n - APPMANAGER_CLIENT_SECRET\n initContainers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile-db-migration\n ciAccount: public\n ciToken: public\n repoPath: saas/cluster/api/clustermanage\n branch: master\n name: db-migration\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile-init-cluster\n ciAccount: public\n ciToken: public\n repoPath: saas/cluster/api/clustermanage\n branch: master\n name: init-cluster\n","arch":"","export":true,"stageId":"dev"}]}
|
|
@ -157,7 +157,7 @@
|
|||
"label":"82aa1a14-a2b0-48c8-9f9f-f236de734252",
|
||||
"nodeTypePath":"cluster|app|T:nVD8rgqSO::OZN4Fw2DP",
|
||||
"appId":"cluster",
|
||||
"elements":"[{\"type\":\"FluidGrid\",\"config\":{\"rows\":[{\"spans\":\"24\",\"uniqueKey\":\"0c1f7934-241b-4ee6-a2c6-77550d7d2748\",\"elements\":[{\"type\":\"TABLE\",\"config\":{\"outputs\":[],\"hasWrapper\":\"default\",\"columns\":[{\"dataIndex\":\"name\",\"label\":\"名称\",\"render\":\"<a href='/#/cluster/single_cluster/summary?clusterId=$(row.id)'>$(row.name)</a>\"},{\"dataIndex\":\"importMode\",\"label\":\"接入模式\"},{\"dataIndex\":\"accountType\",\"label\":\"云平台\"},{\"dataIndex\":\"teamName\",\"label\":\"归属团队\",\"render\":\"<a href='#/team/single_team/summary?teamId=$(row.teamId)' target='_blank'>$(row.teamName)</a>\\t\"},{\"defaultSortOrder\":\"descend\",\"dataIndex\":\"dateCreate\",\"label\":\"接入时间\"}],\"emptyText\":\"\",\"uniqueKey\":\"6998ce9b-7974-4e1a-9652-8df00ac5d5d5\",\"cardBorder\":true,\"wrapper\":\"transparent\",\"paging\":false,\"bordered\":false,\"title\":\"集群实例\",\"gridPos\":{\"static\":false,\"moved\":false,\"w\":12,\"h\":27,\"x\":0,\"i\":\"6998ce9b-7974-4e1a-9652-8df00ac5d5d5\",\"y\":0},\"hiddenEnable\":false,\"toolbar\":{\"docList\":[{\"path\":\"/help/book/documents/moptgx.html\",\"label\":\"集群管理\"}],\"actionList\":[{\"layout\":\"horizontal\",\"displayType\":\"drawer\",\"size\":\"default\",\"icon\":\"cluster\",\"block\":\"cluster:BLOCK:9a590234-7fff-4a6e-aaa4-a4a7671f00c9\",\"label\":\"添加集群\",\"type\":\"primary\"}],\"type\":\"button\"},\"itemToolbar\":{\"actionList\":[{\"layout\":\"horizontal\",\"displayType\":\"drawer\",\"size\":\"default\",\"icon\":\"eye\",\"block\":\"cluster:BLOCK:7a87662b-84f6-45aa-ab3a-97f8784bfcc3\",\"label\":\"纳管状态\",\"type\":\"default\"},{\"layout\":\"horizontal\",\"displayType\":\"drawer\",\"size\":\"default\",\"icon\":\"delete\",\"block\":\"cluster:BLOCK:e1774ba3-c807-4d86-8993-e4b143e19dcc\",\"label\":\"删除\",\"type\":\"default\"}],\"type\":\"link\"},\"dependParams\":[],\"foldEnable\":false,\"size\":\"default\",\"dataSourceMeta\":{\"method\":\"GET\",\"api\":\"gateway/sreworks/clustermanage/cluster/list\",\"afterResponseHandler\":\"function afterResponse(respData){\\n respData.forEach(function(row){\\n if(row.accountId == null){\\n row.importMode = \\\"kubeconfig接入\\\";\\n }else{\\n row.importMode = \\\"云账号接入\\\";\\n }\\n })\\n console.log(respData);\\n return respData;\\n}\",\"type\":\"API\",\"params\":{\"name\":\"$(name)\"}},\"visibleExp\":\"nodeParams.hasTeam\",\"style\":{}}}],\"rang\":[0,24],\"selected\":false,\"chosen\":false},{\"spans\":\"24\",\"uniqueKey\":\"8e2854dc-f15d-4cc8-a0d5-8edb9cb66811\",\"elements\":[{\"type\":\"CustomRender\",\"config\":{\"outputs\":[],\"toolbar\":{\"docList\":[],\"actionList\":[],\"type\":\"button\"},\"dependParams\":[],\"hasWrapper\":\"none\",\"dataSourceMeta\":{\"beforeRequestHandler\":\"function beforeRequest(nodeParams){\\n console.log(nodeParams);\\n nodeParams[\\\"aaa\\\"] = true;\\n return {}\\n}\",\"method\":\"GET\",\"api\":\"gateway/sreworks/teammanage/teamUser/nameIdSelector\",\"type\":\"API\"},\"uniqueKey\":\"21d23842-6381-42f3-9260-813a65c46a8c\",\"cardBorder\":true,\"visibleExp\":\"!nodeParams.hasTeam\",\"wrapper\":\"default\",\"title\":\"\",\"gridPos\":{\"w\":50,\"x\":0,\"h\":36,\"y\":0,\"i\":\"init\"},\"jsxDom\":\"<br/>\\n<br/>\\n <antd.Row>\\n <antd.Col span={4}></antd.Col>\\n <antd.Col span={16} style=\\\"text-align:center\\\"><b>您还没有团队</b></antd.Col>\\n <antd.Col span={4}></antd.Col>\\n </antd.Row>\\n<br/>\\n<br/>\\n <antd.Row style=\\\"text-align:center\\\">\\n <antd.Col span={24}>\\n <a href=\\\"#/team/\\\">加入或创建一个团队</a>\\n\\n</antd.Col>\\n </antd.Row>\\n\\n<br/>\\n<br/>\"}}],\"rang\":[0,24],\"selected\":false,\"chosen\":false}]}}]",
|
||||
"elements":"[{\"type\":\"FluidGrid\",\"config\":{\"rows\":[{\"spans\":\"24\",\"uniqueKey\":\"0c1f7934-241b-4ee6-a2c6-77550d7d2748\",\"elements\":[{\"type\":\"TABLE\",\"config\":{\"outputs\":[],\"hasWrapper\":\"default\",\"columns\":[{\"dataIndex\":\"name\",\"label\":\"名称\",\"render\":\"<a href='/#/cluster/single_cluster/summary?clusterId=$(row.id)'>$(row.name)</a>\"},{\"dataIndex\":\"importMode\",\"label\":\"接入模式\"},{\"dataIndex\":\"accountType\",\"label\":\"云平台\"},{\"dataIndex\":\"teamName\",\"label\":\"归属团队\",\"render\":\"<a href='#/team/single_team/summary?teamId=$(row.teamId)' target='_blank'>$(row.teamName)</a>\\t\"},{\"defaultSortOrder\":\"descend\",\"dataIndex\":\"dateCreate\",\"label\":\"接入时间\"}],\"emptyText\":\"\",\"uniqueKey\":\"6998ce9b-7974-4e1a-9652-8df00ac5d5d5\",\"cardBorder\":true,\"wrapper\":\"transparent\",\"paging\":false,\"bordered\":false,\"title\":\"集群实例\",\"gridPos\":{\"static\":false,\"moved\":false,\"w\":12,\"h\":27,\"x\":0,\"i\":\"6998ce9b-7974-4e1a-9652-8df00ac5d5d5\",\"y\":0},\"hiddenEnable\":false,\"toolbar\":{\"type\":\"button\",\"label\":\"操作\",\"actionList\":[{\"layout\":\"horizontal\",\"displayType\":\"drawer\",\"size\":\"default\",\"icon\":\"cluster\",\"block\":\"cluster:BLOCK:9a590234-7fff-4a6e-aaa4-a4a7671f00c9\",\"label\":\"添加集群\",\"type\":\"primary\"}],\"docList\":[{\"path\":\"/help/book/documents/moptgx.html\",\"label\":\"集群管理\"}]},\"itemToolbar\":{\"actionList\":[{\"layout\":\"horizontal\",\"displayType\":\"drawer\",\"size\":\"default\",\"icon\":\"eye\",\"block\":\"cluster:BLOCK:7a87662b-84f6-45aa-ab3a-97f8784bfcc3\",\"label\":\"纳管状态\",\"type\":\"default\",\"hiddenExp\":\"row.name==='default'\"},{\"layout\":\"horizontal\",\"displayType\":\"drawer\",\"size\":\"default\",\"icon\":\"delete\",\"block\":\"cluster:BLOCK:e1774ba3-c807-4d86-8993-e4b143e19dcc\",\"label\":\"删除\",\"type\":\"default\"}],\"type\":\"link\"},\"dependParams\":[],\"foldEnable\":false,\"size\":\"default\",\"dataSourceMeta\":{\"method\":\"GET\",\"api\":\"gateway/sreworks/clustermanage/cluster/list\",\"afterResponseHandler\":\"function afterResponse(respData){\\n respData.forEach(function(row){\\n if(row.accountId == null){\\n row.importMode = \\\"kubeconfig接入\\\";\\n }else{\\n row.importMode = \\\"云账号接入\\\";\\n }\\n })\\n console.log(respData);\\n return respData;\\n}\",\"type\":\"API\",\"params\":{\"name\":\"$(name)\"}},\"visibleExp\":\"nodeParams.hasTeam\",\"style\":{},\"rowColorMapping\":{\"dataIndex\":\"key\",\"mapping\":{\"value1\":\"green\"}}}}],\"rang\":[0,24],\"selected\":false,\"chosen\":false},{\"spans\":\"24\",\"uniqueKey\":\"8e2854dc-f15d-4cc8-a0d5-8edb9cb66811\",\"elements\":[{\"type\":\"CustomRender\",\"config\":{\"outputs\":[],\"toolbar\":{\"docList\":[],\"actionList\":[],\"type\":\"button\"},\"dependParams\":[],\"hasWrapper\":\"none\",\"dataSourceMeta\":{\"beforeRequestHandler\":\"function beforeRequest(nodeParams){\\n console.log(nodeParams);\\n nodeParams[\\\"aaa\\\"] = true;\\n return {}\\n}\",\"method\":\"GET\",\"api\":\"gateway/sreworks/teammanage/teamUser/nameIdSelector\",\"type\":\"API\"},\"uniqueKey\":\"21d23842-6381-42f3-9260-813a65c46a8c\",\"cardBorder\":true,\"visibleExp\":\"!nodeParams.hasTeam\",\"wrapper\":\"default\",\"title\":\"\",\"gridPos\":{\"w\":50,\"x\":0,\"h\":36,\"y\":0,\"i\":\"init\"},\"jsxDom\":\"<br/>\\n<br/>\\n <antd.Row>\\n <antd.Col span={4}></antd.Col>\\n <antd.Col span={16} style=\\\"text-align:center\\\"><b>您还没有团队</b></antd.Col>\\n <antd.Col span={4}></antd.Col>\\n </antd.Row>\\n<br/>\\n<br/>\\n <antd.Row style=\\\"text-align:center\\\">\\n <antd.Col span={24}>\\n <a href=\\\"#/team/\\\">加入或创建一个团队</a>\\n\\n</antd.Col>\\n </antd.Row>\\n\\n<br/>\\n<br/>\"}}],\"rang\":[0,24],\"selected\":false,\"chosen\":false}]}}]",
|
||||
"name":"82aa1a14-a2b0-48c8-9f9f-f236de734252",
|
||||
"config":"{\"dataSourceMeta\":{\"method\":\"GET\",\"api\":\"gateway/sreworks/teammanage/teamUser/nameIdSelector\",\"afterResponseHandler\":\"function afterResponse(respData){\\n if(respData.options && respData.options.length > 0){\\n return {\\\"hasTeam\\\": true}\\n }else{\\n return {\\\"hasTeam\\\": false}\\n }\\n}\",\"type\":\"API\"},\"functionMeta\":[]}",
|
||||
"stageId":"dev"
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230203220934698015
|
||||
annotations.appmanager.oam.dev/version: 1.3.4+20230313100300754135
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: cluster
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230203220934698015
|
||||
annotations.appmanager.oam.dev/version: 1.3.4+20230313100300754135
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 16.2.0+20230203220934150273
|
||||
annotations.appmanager.oam.dev/version: 16.2.5+20230313100300495711
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: cluster
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 16.2.0+20230203220934150273
|
||||
annotations.appmanager.oam.dev/version: 16.2.5+20230313100300495711
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
@ -44,7 +44,7 @@ spec:
|
|||
replicas: 1
|
||||
name: ''
|
||||
containers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-clustermanage:1675462174319
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-clustermanage:1678701780593
|
||||
name: clustermanage
|
||||
env:
|
||||
COOKIE_DOMAIN: '{{ Global.COOKIE_DOMAIN }}'
|
||||
|
@ -64,7 +64,7 @@ spec:
|
|||
AUTHPROXY_ENDPOINT: '{{ Global.AUTHPROXY_ENDPOINT }}'
|
||||
DB_PASSWORD: '{{ Global.DB_PASSWORD }}'
|
||||
initContainers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-db-migration:1675462174319
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-db-migration:1678701780593
|
||||
name: db-migration
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-init-cluster:1675462174319
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-init-cluster:1678701780593
|
||||
name: init-cluster
|
||||
|
|
|
@ -9,7 +9,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-cluster-clustermanage
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "16.2.0+20230203220934150273"
|
||||
annotations.appmanager.oam.dev/version: "16.2.5+20230313100300495711"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "cluster"
|
||||
labels.appmanager.oam.dev/componentName: "clustermanage"
|
||||
|
@ -39,7 +39,7 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "16.2.0+20230203220934150273"
|
||||
annotations.appmanager.oam.dev/version: "16.2.5+20230313100300495711"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
|
@ -66,15 +66,15 @@ componentPackages:
|
|||
APPMANAGER_CLIENT_SECRET: "{{ Global.APPMANAGER_CLIENT_SECRET }}"
|
||||
initContainers:
|
||||
- name: "db-migration"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-db-migration:1675462174319"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-db-migration:1678701780593"
|
||||
- name: "init-cluster"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-init-cluster:1675462174319"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-init-cluster:1678701780593"
|
||||
containers:
|
||||
- name: "clustermanage"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-clustermanage:1675462174319"
|
||||
packageMd5: a3d66855e604f10a685c6b5bffb1ed2b
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/cluster-clustermanage-clustermanage:1678701780593"
|
||||
packageMd5: ea342e41022dbab61ddf901f05193763
|
||||
packageOptions: '{"kind":"Deployment","containers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile","ciAccount":"public","ciToken":"public","repoPath":"saas/cluster/api/clustermanage","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"clustermanage"}],"env":["DB_HOST","DB_PORT","DB_USER","DB_PASSWORD","DB_NAME","COOKIE_DOMAIN","APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL","APPMANAGER_PACKAGE_ENDPOINT","APPMANAGER_PACKAGE_ACCESS_KEY","APPMANAGER_PACKAGE_SECRET_KEY","APPMANAGER_ENDPOINT","AUTHPROXY_ENDPOINT","APPMANAGER_USERNAME","APPMANAGER_PASSWORD","APPMANAGER_CLIENT_ID","APPMANAGER_CLIENT_SECRET"],"initContainers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile-db-migration","ciAccount":"public","ciToken":"public","repoPath":"saas/cluster/api/clustermanage","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"db-migration"},{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile-init-cluster","ciAccount":"public","ciToken":"public","repoPath":"saas/cluster/api/clustermanage","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"init-cluster"}],"componentConfiguration":"revisionName: K8S_MICROSERVICE|clustermanage|_\ntraits:\n- name: service.trait.abm.io\n runtime: post\n spec:\n ports:\n - protocol: TCP\n port: 80\n targetPort: 7001\n- name: gateway.trait.abm.io\n runtime: post\n spec:\n path: /sreworks/clustermanage/**\n authEnabled: true\n serviceName: ''{{ Global.STAGE_ID }}-cluster-clustermanage.{{ Global.NAMESPACE_ID }}''\nscopes:\n- scopeRef:\n apiVersion: core.oam.dev/v1alpha2\n kind: Namespace\n spec:\n autoCreate: true\ndependencies:\n- component: RESOURCE_ADDON|system-env@system-env\nparameterValues:\n- name: REPLICAS\n value: 1\n toFieldPaths:\n - spec.replicas\n- name: Global.DB_NAME\n value: sreworks_meta\n- name: Global.APPMANAGER_ENDPOINT\n value: http://sreworks-appmanager\n- name: Global.AUTHPROXY_ENDPOINT\n value: http://prod-flycore-paas-authproxy\n","binderParameterValues":[],"binderTraits":[],"binderDependencies":[]}'
|
||||
packageVersion: 16.2.0+20230203220934150273
|
||||
packageVersion: 16.2.5+20230313100300495711
|
||||
relativePath: K8S_MICROSERVICE_clustermanage.zip
|
||||
- componentName: productopsv2
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -85,7 +85,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-cluster-productopsv2
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230203220934698015"
|
||||
annotations.appmanager.oam.dev/version: "1.3.4+20230313100300754135"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "cluster"
|
||||
labels.appmanager.oam.dev/componentName: "productopsv2"
|
||||
|
@ -115,15 +115,15 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230203220934698015"
|
||||
annotations.appmanager.oam.dev/version: "1.3.4+20230313100300754135"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec:
|
||||
targetEndpoint: ''
|
||||
packageMd5: 15b4fce3b959a0dbd7d3215d3886ea8e
|
||||
packageMd5: e543e8e2fc4ce6816327cf64d5d18537
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"componentConfiguration":"clusterId: ''''\ndataInputs: []\ndataOutputs: []\ndependencies: []\nnamespaceId: ''''\nparameterValues: []\nrevisionName: INTERNAL_ADDON|productopsv2|_\nscopes: []\nstageId: ''''\ntraits: []\n","isDevelop":true,"binderTraits":[]}'
|
||||
packageVersion: 1.3.2+20230203220934698015
|
||||
packageVersion: 1.3.4+20230313100300754135
|
||||
relativePath: INTERNAL_ADDON_productopsv2.zip
|
||||
- componentName: system-env@system-env
|
||||
componentType: RESOURCE_ADDON
|
||||
|
@ -166,9 +166,9 @@ componentPackages:
|
|||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec: {}
|
||||
packageMd5: 3eccc17efbeb0790a224db5797e299c6
|
||||
packageMd5: a533e8e7d0c9c8a512811ad25adccf7b
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"componentConfiguration":"clusterId: ''''\ndataInputs: []\ndataOutputs:\n- fieldPath: ''{{ spec.env.DB_HOST }}''\n name: Global.DB_HOST\n- fieldPath: ''{{ spec.env.DB_PASSWORD }}''\n name: Global.DB_PASSWORD\n- fieldPath: ''{{ spec.env.DB_PORT }}''\n name: Global.DB_PORT\n- fieldPath: ''{{ spec.env.DB_USER }}''\n name: Global.DB_USER\n- fieldPath: ''{{ spec.env.APPMANAGER_ACCESS_ID }}''\n name: Global.APPMANAGER_USERNAME\n- fieldPath: ''{{ spec.env.APPMANAGER_ACCESS_SECRET }}''\n name: Global.APPMANAGER_PASSWORD\n- fieldPath: ''{{ spec.env.APPMANAGER_CLIENT_ID }}''\n name: Global.APPMANAGER_CLIENT_ID\n- fieldPath: ''{{ spec.env.APPMANAGER_CLIENT_SECRET }}''\n name: Global.APPMANAGER_CLIENT_SECRET\n- fieldPath: ''{{ spec.env.COOKIE_DOMAIN }}''\n name: Global.COOKIE_DOMAIN\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ACCESS_KEY }}''\n name: Global.APPMANAGER_PACKAGE_ACCESS_KEY\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_SECRET_KEY }}''\n name: Global.APPMANAGER_PACKAGE_SECRET_KEY\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL }}''\n name: Global.APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ENDPOINT }}''\n name: Global.APPMANAGER_PACKAGE_ENDPOINT\n- fieldPath: ''{{ spec.env.STORAGE_CLASS }}''\n name: Global.STORAGE_CLASS\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_CLIENT_ID }}''\n name: Global.ACCOUNT_SUPER_CLIENT_ID\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_CLIENT_SECRET }}''\n name: Global.ACCOUNT_SUPER_CLIENT_SECRET\n- fieldPath: ''{{ spec.env.DATA_ES_PASSWORD }}''\n name: Global.DATA_ES_PASSWORD\n- fieldPath: ''{{ spec.env.DATA_ES_USER }}''\n name: Global.DATA_ES_USER\n- fieldPath: ''{{ spec.env.DATA_ES_HOST }}''\n name: Global.DATA_ES_HOST\n- fieldPath: ''{{ spec.env.DATA_ES_PORT }}''\n name: Global.DATA_ES_PORT\n- fieldPath: ''{{ spec.env.DATA_PROM_HOST }}''\n name: Global.DATA_PROM_HOST\n- fieldPath: ''{{ spec.env.DATA_PROM_PORT }}''\n name: Global.DATA_PROM_PORT\n- fieldPath: ''{{ spec.env.DATA_DB_PORT }}''\n name: Global.DATA_DB_PORT\n- fieldPath: ''{{ spec.env.DATA_DB_HOST }}''\n name: Global.DATA_DB_HOST\n- fieldPath: ''{{ spec.env.DATA_DB_USER }}''\n name: Global.DATA_DB_USER\n- fieldPath: ''{{ spec.env.DATA_DB_PASSWORD }}''\n name: Global.DATA_DB_PASSWORD\n- fieldPath: ''{{ spec.env.KAFKA_ENDPOINT }}''\n name: Global.KAFKA_ENDPOINT\n- fieldPath: ''{{ spec.env.MINIO_ENDPOINT }}''\n name: Global.MINIO_ENDPOINT\n- fieldPath: ''{{ spec.env.MINIO_ACCESS_KEY }}''\n name: Global.MINIO_ACCESS_KEY\n- fieldPath: ''{{ spec.env.MINIO_SECRET_KEY }}''\n name: Global.MINIO_SECRET_KEY\n- fieldPath: ''{{ spec.env.HOME_URL }}''\n name: Global.HOME_URL\n- fieldPath: ''{{ spec.env.REDIS_ENDPOINT }}''\n name: Global.REDIS_ENDPOINT\n- fieldPath: ''{{ spec.env.APPMANAGER_REDIS_PORT }}''\n name: Global.APPMANAGER_REDIS_PORT\n- fieldPath: ''{{ spec.env.REDIS_PASSWORD }}''\n name: Global.REDIS_PASSWORD\n- fieldPath: ''{{ spec.env.APPMANAGER_JWT_SECRET_KEY }}''\n name: Global.APPMANAGER_JWT_SECRET_KEY\n- fieldPath: ''{{ spec.env.PLATFORM_NAME }}''\n name: Global.PLATFORM_NAME\n- fieldPath: ''{{ spec.env.PLATFORM_LOGO }}''\n name: Global.PLATFORM_LOGO\n- fieldPath: ''{{ spec.env.K8S_NAMESPACE }}''\n name: Global.K8S_NAMESPACE\n- fieldPath: ''{{ spec.env.ENDPOINT_PAAS_MINIO }}''\n name: Global.ENDPOINT_PAAS_MINIO\n- fieldPath: ''{{ spec.env.ZOOKEEPER_ENDPOINT }}''\n name: Global.ZOOKEEPER_ENDPOINT\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_SECRET_KEY }}''\n name: Global.ACCOUNT_SUPER_SECRET_KEY\n- fieldPath: ''{{ spec.env.ADMIN_INIT_PASSWORD }}''\n name: Global.ADMIN_INIT_PASSWORD\ndependencies: []\nnamespaceId: ''''\nparameterValues:\n- name: keys\n toFieldPaths:\n - spec.keys\n value:\n - DB_HOST\n - DB_PASSWORD\n - DB_PORT\n - DB_USER\n - APPMANAGER_ACCESS_ID\n - APPMANAGER_ACCESS_SECRET\n - APPMANAGER_CLIENT_ID\n - APPMANAGER_CLIENT_SECRET\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - STORAGE_CLASS\n - ACCOUNT_SUPER_CLIENT_ID\n - ACCOUNT_SUPER_CLIENT_SECRET\n - DATA_ES_PASSWORD\n - DATA_ES_USER\n - DATA_ES_HOST\n - DATA_ES_PORT\n - DATA_PROM_HOST\n - DATA_PROM_PORT\n - DATA_DB_HOST\n - DATA_DB_PORT\n - DATA_DB_USER\n - DATA_DB_PASSWORD\n - KAFKA_ENDPOINT\n - MINIO_ENDPOINT\n - MINIO_ACCESS_KEY\n - MINIO_SECRET_KEY\n - HOME_URL\n - REDIS_ENDPOINT\n - APPMANAGER_REDIS_PORT\n - REDIS_PASSWORD\n - APPMANAGER_JWT_SECRET_KEY\n - PLATFORM_NAME\n - PLATFORM_LOGO\n - K8S_NAMESPACE\n - ENDPOINT_PAAS_MINIO\n - ZOOKEEPER_ENDPOINT\n - ACCOUNT_SUPER_SECRET_KEY\n - ADMIN_INIT_PASSWORD\nrevisionName: RESOURCE_ADDON|system-env@system-env|1.0\nscopes: []\nstageId: ''''\ntraits: []\n","binderTraits":[]}'
|
||||
packageVersion: 1.3.1+20230203220934714076
|
||||
packageVersion: 1.3.3+20230313100300841626
|
||||
relativePath: RESOURCE_ADDON_system-env@system-env.zip
|
||||
- componentName: developmentmeta
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -179,7 +179,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: internal-addon-cluster-developmentmeta
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230203220934742440"
|
||||
annotations.appmanager.oam.dev/version: "1.3.4+20230313100300371707"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "cluster"
|
||||
labels.appmanager.oam.dev/componentName: "developmentmeta"
|
||||
|
@ -209,14 +209,14 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230203220934742440"
|
||||
annotations.appmanager.oam.dev/version: "1.3.4+20230313100300371707"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec: {}
|
||||
packageMd5: 081bf50320c928a441b0165b6a5c7598
|
||||
packageMd5: ce49edcd98c550d2171502b6137132fa
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"binderTraits":[]}'
|
||||
packageVersion: 1.3.2+20230203220934742440
|
||||
packageVersion: 1.3.4+20230313100300371707
|
||||
relativePath: INTERNAL_ADDON_developmentmeta.zip
|
||||
- componentName: appmeta
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -227,7 +227,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: internal-addon-cluster-appmeta
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230203220934882648"
|
||||
annotations.appmanager.oam.dev/version: "1.3.4+20230313100300739666"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "cluster"
|
||||
labels.appmanager.oam.dev/componentName: "appmeta"
|
||||
|
@ -257,19 +257,19 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230203220934882648"
|
||||
annotations.appmanager.oam.dev/version: "1.3.4+20230313100300739666"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec:
|
||||
overwriteIsDevelopment: false
|
||||
overwriteBuiltIn: false
|
||||
packageMd5: e6129f8c53770f5515eb1d360074adcf
|
||||
packageMd5: 05a18b0d223576c3ad93ee14855fe2ca
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"binderTraits":[]}'
|
||||
packageVersion: 1.3.2+20230203220934882648
|
||||
packageVersion: 1.3.4+20230313100300739666
|
||||
relativePath: INTERNAL_ADDON_appmeta.zip
|
||||
packageCreator: '999999999'
|
||||
packageVersion: 1.0.4+20230207041530610243
|
||||
packageVersion: 1.0.5+20230313101037428901
|
||||
tags:
|
||||
- release=sreworks/x86_64
|
||||
- on-sale
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 1.3.0+20230310061757569900
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230313090727915626
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: flycore
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 1.3.0+20230310061757569900
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230313090727915626
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 1.3.0+20230310061757340319
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230313090727353115
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: flycore
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 1.3.0+20230310061757340319
|
||||
annotations.appmanager.oam.dev/version: 1.3.2+20230313090727353115
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 9.2.5+20230310061757531102
|
||||
annotations.appmanager.oam.dev/version: 9.2.7+20230313090727990486
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: flycore
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 9.2.5+20230310061757531102
|
||||
annotations.appmanager.oam.dev/version: 9.2.7+20230313090727990486
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
@ -44,7 +44,7 @@ spec:
|
|||
replicas: 1
|
||||
name: ''
|
||||
containers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-action-paas-action:1678429077164
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-action-paas-action:1678698447242
|
||||
name: paas-action
|
||||
env:
|
||||
ENDPOINT_PAAS_HOME: '{{ Global.ENDPOINT_PAAS_HOME }}'
|
||||
|
@ -56,5 +56,5 @@ spec:
|
|||
DB_HOST: '{{ Global.DB_HOST }}'
|
||||
DB_PASSWORD: '{{ Global.DB_PASSWORD }}'
|
||||
initContainers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-action-db-migration:1678429077164
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-action-db-migration:1678698447242
|
||||
name: db-migration
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 9.2.8+20230310061757721846
|
||||
annotations.appmanager.oam.dev/version: 9.3.0+20230313090727913535
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: flycore
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 9.2.8+20230310061757721846
|
||||
annotations.appmanager.oam.dev/version: 9.3.0+20230313090727913535
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
@ -44,7 +44,7 @@ spec:
|
|||
replicas: 1
|
||||
name: ''
|
||||
containers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-authproxy-paas-authproxy:1678429077162
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-authproxy-paas-authproxy:1678698447239
|
||||
name: paas-authproxy
|
||||
env:
|
||||
REDIS_HOST: '{{ Global.REDIS_HOST }}'
|
||||
|
@ -71,5 +71,5 @@ spec:
|
|||
OAUTH2_JWT_SECRET_KEY: '{{ Global.OAUTH2_JWT_SECRET_KEY }}'
|
||||
DB_PASSWORD: '{{ Global.DB_PASSWORD }}'
|
||||
initContainers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-authproxy-db-migration:1678429077162
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-authproxy-db-migration:1678698447239
|
||||
name: db-migration
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 9.2.2+20230310061757296714
|
||||
annotations.appmanager.oam.dev/version: 9.2.4+20230313090727141052
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: flycore
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 9.2.2+20230310061757296714
|
||||
annotations.appmanager.oam.dev/version: 9.2.4+20230313090727141052
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
@ -44,7 +44,7 @@ spec:
|
|||
replicas: 1
|
||||
name: ''
|
||||
containers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-paas-frontend:1678429077158
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-paas-frontend:1678698447231
|
||||
name: paas-frontend
|
||||
env:
|
||||
K8S_NAMESPACE: '{{ Global.K8S_NAMESPACE }}'
|
||||
|
@ -78,7 +78,7 @@ spec:
|
|||
DB_NAME_AUTHPROXY: '{{ Global.DB_NAME_AUTHPROXY }}'
|
||||
DB_PASSWORD: '{{ Global.DB_PASSWORD }}'
|
||||
initContainers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-authproxy-init:1678429077158
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-authproxy-init:1678698447231
|
||||
name: authproxy-init
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-route-config:1678429077158
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-route-config:1678698447231
|
||||
name: route-config
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 9.2.4+20230310061757562716
|
||||
annotations.appmanager.oam.dev/version: 9.2.6+20230313090727741978
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: flycore
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 9.2.4+20230310061757562716
|
||||
annotations.appmanager.oam.dev/version: 9.2.6+20230313090727741978
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
@ -44,7 +44,7 @@ spec:
|
|||
replicas: 1
|
||||
name: ''
|
||||
containers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-gateway-paas-gateway:1678429077162
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-gateway-paas-gateway:1678698447239
|
||||
name: paas-gateway
|
||||
env:
|
||||
REDIS_HOST: '{{ Global.REDIS_HOST }}'
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 9.2.7+20230310061757568436
|
||||
annotations.appmanager.oam.dev/version: 9.2.9+20230313090727395804
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: flycore
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 9.2.7+20230310061757568436
|
||||
annotations.appmanager.oam.dev/version: 9.2.9+20230313090727395804
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
@ -44,7 +44,7 @@ spec:
|
|||
replicas: 1
|
||||
name: ''
|
||||
containers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-nacos-paas-nacos:1678429077162
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-nacos-paas-nacos:1678698447243
|
||||
name: paas-nacos
|
||||
env:
|
||||
DB_PORT: '{{ Global.DB_PORT }}'
|
||||
|
@ -53,5 +53,5 @@ spec:
|
|||
DB_HOST: '{{ Global.DB_HOST }}'
|
||||
DB_PASSWORD: '{{ Global.DB_PASSWORD }}'
|
||||
initContainers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-nacos-db-migration:1678429077162
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-nacos-db-migration:1678698447243
|
||||
name: db-migration
|
||||
|
|
|
@ -9,7 +9,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-flycore-paas-frontend
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "9.2.2+20230310061757296714"
|
||||
annotations.appmanager.oam.dev/version: "9.2.4+20230313090727141052"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "flycore"
|
||||
labels.appmanager.oam.dev/componentName: "paas-frontend"
|
||||
|
@ -39,7 +39,7 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "9.2.2+20230310061757296714"
|
||||
annotations.appmanager.oam.dev/version: "9.2.4+20230313090727141052"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
|
@ -80,15 +80,15 @@ componentPackages:
|
|||
CORE_APP_ID: "{{ Global.CORE_APP_ID }}"
|
||||
initContainers:
|
||||
- name: "authproxy-init"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-authproxy-init:1678429077158"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-authproxy-init:1678698447231"
|
||||
- name: "route-config"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-route-config:1678429077158"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-route-config:1678698447231"
|
||||
containers:
|
||||
- name: "paas-frontend"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-paas-frontend:1678429077158"
|
||||
packageMd5: c5c7b62a41bdbef515876b32d47a1c9d
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-frontend-paas-frontend:1678698447231"
|
||||
packageMd5: 898f9600e74ebc5c52387777097586ab
|
||||
packageOptions: '{"kind":"Deployment","containers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"app/Dockerfile","ciAccount":"public","ciToken":"public","repoPath":"paas/frontend","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"paas-frontend"}],"env":["ENDPOINT_PAAS_GATEWAY","ENDPOINT_PAAS_APPMANAGER","NETWORK_PROTOCOL","ENV_TYPE","DNS_PAAS_HOME","DB_NAME_AUTHPROXY","DB_PORT","DB_NAME","DEFAULT_AMDIN_AVATOR","DB_HOST","URL_PAAS_HOME","LOGIN_URL","ENDPOINT_PAAS_AUTHPROXY","DB_USER","PLATFORM_NAME","DB_PASSWORD","PLATFORM_LOGO","K8S_NAMESPACE","NAMESPACE_DATAOPS","ACCOUNT_SUPER_ID","ACCOUNT_SUPER_ACCESS_ID","ACCOUNT_SUPER_SECRET_KEY","ENDPOINT_PAAS_MINIO","ACCOUNT_SUPER_CLIENT_SECRET","ACCOUNT_SUPER_CLIENT_ID","ACCOUNT_SUPER_ACCESS_KEY","ACCOUNT_SUPER_PK","POSTRUN_WAIT_TIME","CORE_STAGE_ID","CORE_APP_ID"],"initContainers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile_postrun","ciAccount":"public","ciToken":"public","repoPath":"paas/tesla-authproxy","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"authproxy-init"},{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile_route_config","ciAccount":"public","ciToken":"public","repoPath":"paas/tesla-gateway","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"route-config"}],"componentConfiguration":"revisionName: K8S_MICROSERVICE|paas-frontend|_\ntraits:\n- name: service.trait.abm.io\n runtime: post\n spec:\n ports:\n - protocol: TCP\n port: 80\n targetPort: 80\nscopes:\n- scopeRef:\n apiVersion: core.oam.dev/v1alpha2\n kind: Namespace\n spec:\n autoCreate: true\ndependencies:\n- component: RESOURCE_ADDON|system-env@system-env\nparameterValues:\n- name: REPLICAS\n value: 1\n toFieldPaths:\n - spec.replicas\n- name: Global.ENDPOINT_PAAS_GATEWAY\n value: prod-flycore-paas-gateway\n- name: Global.ENDPOINT_PAAS_APPMANAGER\n value: sreworks-appmanager\n- name: Global.NETWORK_PROTOCOL\n value: http\n- name: Global.ENV_TYPE\n value: Standalone\n- name: Global.DNS_PAAS_HOME\n value: ''{{Global.COOKIE_DOMAIN}}''\n- name: Global.DB_NAME_AUTHPROXY\n value: abm_paas_authproxy\n- name: Global.DB_NAME\n value: abm_paas_authproxy\n- name: Global.DEFAULT_AMDIN_AVATOR\n value: /static/icons/aliyun.png\n- name: Global.URL_PAAS_HOME\n value: ''{{Global.HOME_URL}}''\n- name: Global.LOGIN_URL\n value: fake-login-url\n- name: Global.ENDPOINT_PAAS_AUTHPROXY\n value: prod-flycore-paas-authproxy\n- name: Global.NAMESPACE_DATAOPS\n value: sreworks-dataops\n- name: Global.ACCOUNT_SUPER_ID\n value: admin\n- name: Global.ACCOUNT_SUPER_ACCESS_ID\n value: test-access-id\n- name: Global.ACCOUNT_SUPER_ACCESS_KEY\n value: test-access-key\n- name: Global.ACCOUNT_SUPER_PK\n value: ''999999999''\n- name: Global.POSTRUN_WAIT_TIME\n value: 5s\n- name: Global.CORE_STAGE_ID\n value: prod\n- name: Global.CORE_APP_ID\n value: flycore\n","binderParameterValues":[],"binderTraits":[],"binderDependencies":[]}'
|
||||
packageVersion: 9.2.2+20230310061757296714
|
||||
packageVersion: 9.2.4+20230313090727141052
|
||||
relativePath: K8S_MICROSERVICE_paas-frontend.zip
|
||||
- componentName: paas-gateway
|
||||
componentType: K8S_MICROSERVICE
|
||||
|
@ -99,7 +99,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-flycore-paas-gateway
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "9.2.4+20230310061757562716"
|
||||
annotations.appmanager.oam.dev/version: "9.2.6+20230313090727741978"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "flycore"
|
||||
labels.appmanager.oam.dev/componentName: "paas-gateway"
|
||||
|
@ -129,7 +129,7 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "9.2.4+20230310061757562716"
|
||||
annotations.appmanager.oam.dev/version: "9.2.6+20230313090727741978"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
|
@ -156,10 +156,10 @@ componentPackages:
|
|||
AUTH_ADMIN_TOKEN: "{{ Global.AUTH_ADMIN_TOKEN }}"
|
||||
containers:
|
||||
- name: "paas-gateway"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-gateway-paas-gateway:1678429077162"
|
||||
packageMd5: 3ffee628fd0ed617b54604d5d4f89994
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-gateway-paas-gateway:1678698447239"
|
||||
packageMd5: f31131088b630ed4acaa409a674a126d
|
||||
packageOptions: '{"kind":"Deployment","containers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile_paas","ciAccount":"public","ciToken":"public","repoPath":"paas/tesla-gateway","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"paas-gateway"}],"env":["DB_HOST","DB_PASSWORD","NACOS_NAMESPACE","DB_PORT","REDIS_HOST","REDIS_PORT","REDIS_PASSWORD","NACOS_ENDPOINT","MANAGER_SERVER_PORT","STORE_NACOS_GROUP","STORE_NACOS_DATA_ID","REDIS_DB","ENDPOINT_PAAS_AUTHPROXY","AUTH_JWT_SECRET","STORE_NACOS_DATA_ID","AUTH_ADMIN_TOKEN"],"componentConfiguration":"revisionName: K8S_MICROSERVICE|paas-gateway|_\ntraits:\n- name: service.trait.abm.io\n runtime: post\n spec:\n ports:\n - protocol: TCP\n port: 80\n targetPort: 7001\nscopes:\n- scopeRef:\n apiVersion: core.oam.dev/v1alpha2\n kind: Namespace\n spec:\n autoCreate: true\ndependencies:\n- component: RESOURCE_ADDON|system-env@system-env\nparameterValues:\n- name: REPLICAS\n value: 1\n toFieldPaths:\n - spec.replicas\n- name: Global.NACOS_NAMESPACE\n value: ad2d92c6-1a21-47ac-9da8-203fcbed9146\n- name: Global.REDIS_HOST\n value: ''{{Global.REDIS_ENDPOINT}}''\n- name: Global.REDIS_PORT\n value: ''{{Global.APPMANAGER_REDIS_PORT}}''\n- name: Global.NACOS_ENDPOINT\n value: prod-flycore-paas-nacos:8848\n- name: Global.MANAGER_SERVER_PORT\n value: ''7002''\n- name: Global.STORE_NACOS_GROUP\n value: DEFAULT_GROUP\n- name: Global.STORE_NACOS_DATA_ID\n value: abm-paas-gateway.route.config_default_default\n- name: Global.REDIS_DB\n value: ''0''\n- name: Global.ENDPOINT_PAAS_AUTHPROXY\n value: prod-flycore-paas-authproxy\n- name: Global.AUTH_JWT_SECRET\n value: ''{{Global.APPMANAGER_JWT_SECRET_KEY}}''\n- name: Global.AUTH_ADMIN_TOKEN\n value: ''{{Global.APPMANAGER_JWT_SECRET_KEY}}''\n","binderParameterValues":[],"binderTraits":[],"binderDependencies":[]}'
|
||||
packageVersion: 9.2.4+20230310061757562716
|
||||
packageVersion: 9.2.6+20230313090727741978
|
||||
relativePath: K8S_MICROSERVICE_paas-gateway.zip
|
||||
- componentName: paas-action
|
||||
componentType: K8S_MICROSERVICE
|
||||
|
@ -170,7 +170,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-flycore-paas-action
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "9.2.5+20230310061757531102"
|
||||
annotations.appmanager.oam.dev/version: "9.2.7+20230313090727990486"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "flycore"
|
||||
labels.appmanager.oam.dev/componentName: "paas-action"
|
||||
|
@ -200,7 +200,7 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "9.2.5+20230310061757531102"
|
||||
annotations.appmanager.oam.dev/version: "9.2.7+20230313090727990486"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
|
@ -219,13 +219,13 @@ componentPackages:
|
|||
DB_USER: "{{ Global.DB_USER }}"
|
||||
initContainers:
|
||||
- name: "db-migration"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-action-db-migration:1678429077164"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-action-db-migration:1678698447242"
|
||||
containers:
|
||||
- name: "paas-action"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-action-paas-action:1678429077164"
|
||||
packageMd5: 9eb25b5df31a6e5dabb78b24f8866da4
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-action-paas-action:1678698447242"
|
||||
packageMd5: 35c32d3f08a500112646cd3d550aea46
|
||||
packageOptions: '{"kind":"Deployment","containers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile","ciAccount":"public","ciToken":"public","repoPath":"paas/action","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"paas-action"}],"env":["ENDPOINT_PAAS_HOME","ENDPOINT_PAAS_TKGONE","URL_PAAS_HOME","DB_HOST","DB_NAME","DB_PASSWORD","DB_PORT","DB_USER"],"initContainers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile-db-migration","ciAccount":"public","ciToken":"public","repoPath":"paas/action","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"db-migration"}],"componentConfiguration":"revisionName: K8S_MICROSERVICE|paas-action|_\ntraits:\n- name: service.trait.abm.io\n runtime: post\n spec:\n ports:\n - protocol: TCP\n port: 80\n targetPort: 7001\nscopes:\n- scopeRef:\n apiVersion: core.oam.dev/v1alpha2\n kind: Namespace\n spec:\n autoCreate: true\ndependencies:\n- component: RESOURCE_ADDON|system-env@system-env\nparameterValues:\n- name: REPLICAS\n value: 1\n toFieldPaths:\n - spec.replicas\n- name: Global.ENDPOINT_PAAS_HOME\n value: prod-flycore-paas-frontend\n- name: Global.ENDPOINT_PAAS_TKGONE\n value: prod-flycore-paas-tkgone\n- name: Global.URL_PAAS_HOME\n value: ''{{Global.HOME_URL}}''\n- name: Global.DB_NAME\n value: abm_paas_action\n","binderParameterValues":[],"binderTraits":[],"binderDependencies":[]}'
|
||||
packageVersion: 9.2.5+20230310061757531102
|
||||
packageVersion: 9.2.7+20230313090727990486
|
||||
relativePath: K8S_MICROSERVICE_paas-action.zip
|
||||
- componentName: paas-nacos
|
||||
componentType: K8S_MICROSERVICE
|
||||
|
@ -236,7 +236,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-flycore-paas-nacos
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "9.2.7+20230310061757568436"
|
||||
annotations.appmanager.oam.dev/version: "9.2.9+20230313090727395804"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "flycore"
|
||||
labels.appmanager.oam.dev/componentName: "paas-nacos"
|
||||
|
@ -266,7 +266,7 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "9.2.7+20230310061757568436"
|
||||
annotations.appmanager.oam.dev/version: "9.2.9+20230313090727395804"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
|
@ -282,13 +282,13 @@ componentPackages:
|
|||
DB_NAME: "{{ Global.DB_NAME }}"
|
||||
initContainers:
|
||||
- name: "db-migration"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-nacos-db-migration:1678429077162"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-nacos-db-migration:1678698447243"
|
||||
containers:
|
||||
- name: "paas-nacos"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-nacos-paas-nacos:1678429077162"
|
||||
packageMd5: 0e2283a5528f9f316c6229eca6d00bf4
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-nacos-paas-nacos:1678698447243"
|
||||
packageMd5: 8511414b7aaa8f77314cd1d00722e2ab
|
||||
packageOptions: '{"kind":"Deployment","containers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile","ciAccount":"public","ciToken":"public","repoPath":"paas/nacos","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"paas-nacos"}],"env":["DB_HOST","DB_PORT","DB_USER","DB_PASSWORD","DB_NAME"],"initContainers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile-db-migration","ciAccount":"public","ciToken":"public","repoPath":"paas/nacos","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"db-migration"}],"componentConfiguration":"revisionName: K8S_MICROSERVICE|paas-nacos|_\ntraits:\n- name: service.trait.abm.io\n runtime: post\n spec:\n ports:\n - protocol: TCP\n port: ''8848''\n targetPort: 8848\nscopes:\n- scopeRef:\n apiVersion: core.oam.dev/v1alpha2\n kind: Namespace\n spec:\n autoCreate: true\ndependencies:\n- component: RESOURCE_ADDON|system-env@system-env\nparameterValues:\n- name: REPLICAS\n value: 1\n toFieldPaths:\n - spec.replicas\n- name: Global.DB_NAME\n value: abm_paas_nacos\n","binderParameterValues":[],"binderTraits":[],"binderDependencies":[]}'
|
||||
packageVersion: 9.2.7+20230310061757568436
|
||||
packageVersion: 9.2.9+20230313090727395804
|
||||
relativePath: K8S_MICROSERVICE_paas-nacos.zip
|
||||
- componentName: paas-authproxy
|
||||
componentType: K8S_MICROSERVICE
|
||||
|
@ -299,7 +299,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-flycore-paas-authproxy
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "9.2.8+20230310061757721846"
|
||||
annotations.appmanager.oam.dev/version: "9.3.0+20230313090727913535"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "flycore"
|
||||
labels.appmanager.oam.dev/componentName: "paas-authproxy"
|
||||
|
@ -329,7 +329,7 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "9.2.8+20230310061757721846"
|
||||
annotations.appmanager.oam.dev/version: "9.3.0+20230313090727913535"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
|
@ -364,13 +364,13 @@ componentPackages:
|
|||
OAUTH2_JWT_SECRET_KEY: "{{ Global.OAUTH2_JWT_SECRET_KEY }}"
|
||||
initContainers:
|
||||
- name: "db-migration"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-authproxy-db-migration:1678429077162"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-authproxy-db-migration:1678698447239"
|
||||
containers:
|
||||
- name: "paas-authproxy"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-authproxy-paas-authproxy:1678429077162"
|
||||
packageMd5: bacf2fc197269749d07c8cc92accbb09
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/flycore-paas-authproxy-paas-authproxy:1678698447239"
|
||||
packageMd5: 545e216633c250cd3389ee8b92edb8f6
|
||||
packageOptions: '{"kind":"Deployment","containers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile","ciAccount":"public","ciToken":"public","repoPath":"paas/tesla-authproxy","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"paas-authproxy"}],"env":["DB_NAME","DB_HOST","DB_PASSWORD","DB_PORT","DB_USER","REDIS_HOST","REDIS_PORT","REDIS_PASSWORD","REDIS_DB","ZOOKEEPER_ENDPOINT","DATABASE_AUTH_SERVICE_MGR_CLASS_NAME","DATABASE_LOGIN_INTERCEPTOR_CLASS_NAME","ACCOUNT_SUPER_PK","ACCOUNT_SUPER_ACCESS_KEY","ACCOUNT_SUPER_PK","ACCOUNT_SUPER_CLIENT_SECRET","ACCOUNT_SUPER_SECRET_KEY","ACCOUNT_SUPER_ACCESS_ID","ACCOUNT_SUPER_ID","DNS_PAAS_HOME","NETWORK_PROTOCOL","URL_PAAS_HOME","ADMIN_INIT_PASSWORD","OAUTH2_JWT_SECRET_KEY"],"initContainers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile-db-migration","ciAccount":"public","ciToken":"public","repoPath":"paas/tesla-authproxy","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"db-migration"}],"componentConfiguration":"revisionName: K8S_MICROSERVICE|paas-authproxy|_\ntraits:\n- name: service.trait.abm.io\n runtime: post\n spec:\n ports:\n - protocol: TCP\n port: 80\n targetPort: 7001\nscopes:\n- scopeRef:\n apiVersion: core.oam.dev/v1alpha2\n kind: Namespace\n spec:\n autoCreate: true\ndependencies:\n- component: RESOURCE_ADDON|system-env@system-env\nparameterValues:\n- name: REPLICAS\n value: 1\n toFieldPaths:\n - spec.replicas\n- name: Global.DB_NAME\n value: abm_paas_authproxy\n- name: Global.REDIS_HOST\n value: ''{{Global.REDIS_ENDPOINT}}''\n- name: Global.REDIS_PORT\n value: ''{{Global.APPMANAGER_REDIS_PORT}}''\n- name: Global.REDIS_DB\n value: ''0''\n- name: Global.DATABASE_AUTH_SERVICE_MGR_CLASS_NAME\n value: com.alibaba.tesla.authproxy.service.impl.DataBaseAuthServiceManager\n- name: Global.DATABASE_LOGIN_INTERCEPTOR_CLASS_NAME\n value: com.alibaba.tesla.authproxy.interceptor.DataBaseLoginInterceptor\n- name: Global.ACCOUNT_SUPER_ACCESS_KEY\n value: test-access-key\n- name: Global.ACCOUNT_SUPER_PK\n value: ''999999999''\n- name: Global.ACCOUNT_SUPER_ACCESS_ID\n value: test-access-id\n- name: Global.ACCOUNT_SUPER_ID\n value: admin\n- name: Global.DNS_PAAS_HOME\n value: ''{{Global.COOKIE_DOMAIN}}''\n- name: Global.NETWORK_PROTOCOL\n value: http\n- name: Global.URL_PAAS_HOME\n value: ''{{Global.HOME_URL}}''\n- name: Global.OAUTH2_JWT_SECRET_KEY\n value: ''{{Global.APPMANAGER_JWT_SECRET_KEY}}''\n","binderParameterValues":[],"binderTraits":[],"binderDependencies":[]}'
|
||||
packageVersion: 9.2.8+20230310061757721846
|
||||
packageVersion: 9.3.0+20230313090727913535
|
||||
relativePath: K8S_MICROSERVICE_paas-authproxy.zip
|
||||
- componentName: system-env@system-env
|
||||
componentType: RESOURCE_ADDON
|
||||
|
@ -413,9 +413,9 @@ componentPackages:
|
|||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec: {}
|
||||
packageMd5: a53dbb9e242e7aa04caef544e675e676
|
||||
packageMd5: fba51f59e143b857b4539b393f22dbb5
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"componentConfiguration":"clusterId: ''''\ndataInputs: []\ndataOutputs:\n- fieldPath: ''{{ spec.env.DB_HOST }}''\n name: Global.DB_HOST\n- fieldPath: ''{{ spec.env.DB_PASSWORD }}''\n name: Global.DB_PASSWORD\n- fieldPath: ''{{ spec.env.DB_PORT }}''\n name: Global.DB_PORT\n- fieldPath: ''{{ spec.env.DB_USER }}''\n name: Global.DB_USER\n- fieldPath: ''{{ spec.env.APPMANAGER_ACCESS_ID }}''\n name: Global.APPMANAGER_USERNAME\n- fieldPath: ''{{ spec.env.APPMANAGER_ACCESS_SECRET }}''\n name: Global.APPMANAGER_PASSWORD\n- fieldPath: ''{{ spec.env.APPMANAGER_CLIENT_ID }}''\n name: Global.APPMANAGER_CLIENT_ID\n- fieldPath: ''{{ spec.env.APPMANAGER_CLIENT_SECRET }}''\n name: Global.APPMANAGER_CLIENT_SECRET\n- fieldPath: ''{{ spec.env.COOKIE_DOMAIN }}''\n name: Global.COOKIE_DOMAIN\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ACCESS_KEY }}''\n name: Global.APPMANAGER_PACKAGE_ACCESS_KEY\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_SECRET_KEY }}''\n name: Global.APPMANAGER_PACKAGE_SECRET_KEY\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL }}''\n name: Global.APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ENDPOINT }}''\n name: Global.APPMANAGER_PACKAGE_ENDPOINT\n- fieldPath: ''{{ spec.env.STORAGE_CLASS }}''\n name: Global.STORAGE_CLASS\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_CLIENT_ID }}''\n name: Global.ACCOUNT_SUPER_CLIENT_ID\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_CLIENT_SECRET }}''\n name: Global.ACCOUNT_SUPER_CLIENT_SECRET\n- fieldPath: ''{{ spec.env.DATA_ES_PASSWORD }}''\n name: Global.DATA_ES_PASSWORD\n- fieldPath: ''{{ spec.env.DATA_ES_USER }}''\n name: Global.DATA_ES_USER\n- fieldPath: ''{{ spec.env.DATA_ES_HOST }}''\n name: Global.DATA_ES_HOST\n- fieldPath: ''{{ spec.env.DATA_ES_PORT }}''\n name: Global.DATA_ES_PORT\n- fieldPath: ''{{ spec.env.DATA_PROM_HOST }}''\n name: Global.DATA_PROM_HOST\n- fieldPath: ''{{ spec.env.DATA_PROM_PORT }}''\n name: Global.DATA_PROM_PORT\n- fieldPath: ''{{ spec.env.DATA_DB_PORT }}''\n name: Global.DATA_DB_PORT\n- fieldPath: ''{{ spec.env.DATA_DB_HOST }}''\n name: Global.DATA_DB_HOST\n- fieldPath: ''{{ spec.env.DATA_DB_USER }}''\n name: Global.DATA_DB_USER\n- fieldPath: ''{{ spec.env.DATA_DB_PASSWORD }}''\n name: Global.DATA_DB_PASSWORD\n- fieldPath: ''{{ spec.env.KAFKA_ENDPOINT }}''\n name: Global.KAFKA_ENDPOINT\n- fieldPath: ''{{ spec.env.MINIO_ENDPOINT }}''\n name: Global.MINIO_ENDPOINT\n- fieldPath: ''{{ spec.env.MINIO_ACCESS_KEY }}''\n name: Global.MINIO_ACCESS_KEY\n- fieldPath: ''{{ spec.env.MINIO_SECRET_KEY }}''\n name: Global.MINIO_SECRET_KEY\n- fieldPath: ''{{ spec.env.HOME_URL }}''\n name: Global.HOME_URL\n- fieldPath: ''{{ spec.env.REDIS_ENDPOINT }}''\n name: Global.REDIS_ENDPOINT\n- fieldPath: ''{{ spec.env.APPMANAGER_REDIS_PORT }}''\n name: Global.APPMANAGER_REDIS_PORT\n- fieldPath: ''{{ spec.env.REDIS_PASSWORD }}''\n name: Global.REDIS_PASSWORD\n- fieldPath: ''{{ spec.env.APPMANAGER_JWT_SECRET_KEY }}''\n name: Global.APPMANAGER_JWT_SECRET_KEY\n- fieldPath: ''{{ spec.env.PLATFORM_NAME }}''\n name: Global.PLATFORM_NAME\n- fieldPath: ''{{ spec.env.PLATFORM_LOGO }}''\n name: Global.PLATFORM_LOGO\n- fieldPath: ''{{ spec.env.K8S_NAMESPACE }}''\n name: Global.K8S_NAMESPACE\n- fieldPath: ''{{ spec.env.ENDPOINT_PAAS_MINIO }}''\n name: Global.ENDPOINT_PAAS_MINIO\n- fieldPath: ''{{ spec.env.ZOOKEEPER_ENDPOINT }}''\n name: Global.ZOOKEEPER_ENDPOINT\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_SECRET_KEY }}''\n name: Global.ACCOUNT_SUPER_SECRET_KEY\n- fieldPath: ''{{ spec.env.ADMIN_INIT_PASSWORD }}''\n name: Global.ADMIN_INIT_PASSWORD\ndependencies: []\nnamespaceId: ''''\nparameterValues:\n- name: keys\n toFieldPaths:\n - spec.keys\n value:\n - DB_HOST\n - DB_PASSWORD\n - DB_PORT\n - DB_USER\n - APPMANAGER_ACCESS_ID\n - APPMANAGER_ACCESS_SECRET\n - APPMANAGER_CLIENT_ID\n - APPMANAGER_CLIENT_SECRET\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - STORAGE_CLASS\n - ACCOUNT_SUPER_CLIENT_ID\n - ACCOUNT_SUPER_CLIENT_SECRET\n - DATA_ES_PASSWORD\n - DATA_ES_USER\n - DATA_ES_HOST\n - DATA_ES_PORT\n - DATA_PROM_HOST\n - DATA_PROM_PORT\n - DATA_DB_HOST\n - DATA_DB_PORT\n - DATA_DB_USER\n - DATA_DB_PASSWORD\n - KAFKA_ENDPOINT\n - MINIO_ENDPOINT\n - MINIO_ACCESS_KEY\n - MINIO_SECRET_KEY\n - HOME_URL\n - REDIS_ENDPOINT\n - APPMANAGER_REDIS_PORT\n - REDIS_PASSWORD\n - APPMANAGER_JWT_SECRET_KEY\n - PLATFORM_NAME\n - PLATFORM_LOGO\n - K8S_NAMESPACE\n - ENDPOINT_PAAS_MINIO\n - ZOOKEEPER_ENDPOINT\n - ACCOUNT_SUPER_SECRET_KEY\n - ADMIN_INIT_PASSWORD\nrevisionName: RESOURCE_ADDON|system-env@system-env|1.0\nscopes: []\nstageId: ''''\ntraits: []\n","binderTraits":[]}'
|
||||
packageVersion: 1.2.2+20230310061757672265
|
||||
packageVersion: 1.2.4+20230313090727789343
|
||||
relativePath: RESOURCE_ADDON_system-env@system-env.zip
|
||||
- componentName: developmentmeta
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -426,7 +426,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: internal-addon-flycore-developmentmeta
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "1.3.0+20230310061757340319"
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230313090727353115"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "flycore"
|
||||
labels.appmanager.oam.dev/componentName: "developmentmeta"
|
||||
|
@ -456,14 +456,14 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "1.3.0+20230310061757340319"
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230313090727353115"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec: {}
|
||||
packageMd5: 5cec21d93749558db1ba8d15abbeae0e
|
||||
packageMd5: bb28b0ad1ff6bde3b74fb8e66acfacf2
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"binderTraits":[]}'
|
||||
packageVersion: 1.3.0+20230310061757340319
|
||||
packageVersion: 1.3.2+20230313090727353115
|
||||
relativePath: INTERNAL_ADDON_developmentmeta.zip
|
||||
- componentName: appmeta
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -474,7 +474,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: internal-addon-flycore-appmeta
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "1.3.0+20230310061757569900"
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230313090727915626"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "flycore"
|
||||
labels.appmanager.oam.dev/componentName: "appmeta"
|
||||
|
@ -504,19 +504,19 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "1.3.0+20230310061757569900"
|
||||
annotations.appmanager.oam.dev/version: "1.3.2+20230313090727915626"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec:
|
||||
overwriteIsDevelopment: false
|
||||
overwriteBuiltIn: false
|
||||
packageMd5: de7e33361e7144bba3f3c2d8d8b4402a
|
||||
packageMd5: 35e4b82a8c0c5fd82c2c01c32ae60235
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"binderTraits":[]}'
|
||||
packageVersion: 1.3.0+20230310061757569900
|
||||
packageVersion: 1.3.2+20230313090727915626
|
||||
relativePath: INTERNAL_ADDON_appmeta.zip
|
||||
packageCreator: '999999999'
|
||||
packageVersion: 1.2.0+20230310063201474778
|
||||
packageVersion: 1.2.1+20230313092144480589
|
||||
tags:
|
||||
- release=sreworks/x86_64
|
||||
- on-sale
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 1.1.2+20221228001338891828
|
||||
annotations.appmanager.oam.dev/version: 1.1.4+20230321072720978522
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: team
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 1.1.2+20221228001338891828
|
||||
annotations.appmanager.oam.dev/version: 1.1.4+20230321072720978522
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 1.1.2+20221228001338986322
|
||||
annotations.appmanager.oam.dev/version: 1.1.4+20230321072720637928
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: team
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 1.1.2+20221228001338986322
|
||||
annotations.appmanager.oam.dev/version: 1.1.4+20230321072720637928
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"addons":[{"addonConfig":"{}","addonId":"productopsv2","addonType":"INTERNAL_ADDON","addonVersion":"_","appId":"team","gmtCreate":1662536561000,"gmtModified":1670231652000,"id":34,"name":"productopsv2","namespaceId":"sreworks","stageId":"dev"},{"addonConfig":"{}","addonId":"system-env","addonType":"RESOURCE_ADDON","addonVersion":"_","appId":"team","gmtCreate":1660019756000,"gmtModified":1670231652000,"id":9,"name":"system-env","namespaceId":"sreworks","stageId":"dev"}],"microservices":[{"appId":"team","arch":"","componentType":"K8S_MICROSERVICE","description":"","gmtCreate":1662535573000,"gmtModified":1670231652000,"id":152,"microServiceExt":"{\"initContainerList\":[{\"dockerfilePath\":\"Dockerfile-db-migration\",\"name\":\"db-migration\",\"repoPath\":\"saas/team/api/teammanage\",\"type\":\"shell\"}],\"kind\":\"Deployment\",\"envKeyList\":[\"DB_HOST\",\"DB_PORT\",\"DB_USER\",\"DB_PASSWORD\",\"COOKIE_DOMAIN\",\"APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\",\"APPMANAGER_PACKAGE_ENDPOINT\",\"APPMANAGER_PACKAGE_ACCESS_KEY\",\"APPMANAGER_PACKAGE_SECRET_KEY\",\"APPMANAGER_ENDPOINT=http://sreworks-appmanager\",\"AUTHPROXY_ENDPOINT=http://prod-flycore-paas-authproxy\",\"TEAM_DEFAULT_REPO=eyJuYW1lIjoiZGVmYXVsdCIsInVybCI6Imh0dHBzOi8vY29kZS5hbGl5dW4uY29tL3NyZXdvcmtzIiwiY2lUb2tlbiI6IiIsImNpQWNjb3VudCI6IiJ9\",\"DB_NAME=sreworks_meta\"],\"repo\":{\"ciAccount\":\"public\",\"ciToken\":\"public\",\"dockerfilePath\":\"Dockerfile\",\"repo\":\"https://code.aliyun.com/sreworks_public/mirror.git\",\"repoDomain\":\"https:\",\"repoGroup\":\"\",\"repoPath\":\"saas/team/api/teammanage\",\"repoProject\":\"code.aliyun.com\",\"repoType\":\"THIRD_REPO\"},\"launch\":{\"gatewayAuthEnabled\":true,\"gatewayRoute\":\"/sreworks/teammanage/**\",\"replicas\":1,\"servicePorts\":\"7001\"}}","microServiceId":"team","name":"team","namespaceId":"sreworks","options":"options:\n kind: Deployment\n containers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile\n ciAccount: public\n ciToken: public\n repoPath: saas/team/api/teammanage\n branch: master\n name: team\n env:\n - DB_HOST\n - DB_PORT\n - DB_USER\n - DB_PASSWORD\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_ENDPOINT\n - AUTHPROXY_ENDPOINT\n - TEAM_DEFAULT_REPO\n - DB_NAME\n initContainers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile-db-migration\n ciAccount: public\n ciToken: public\n repoPath: saas/team/api/teammanage\n branch: master\n name: db-migration\n","stageId":"dev"}]}
|
||||
{"REVISION":23,"addons":[{"gmtModified":1670231652000,"addonConfig":"{}","namespaceId":"sreworks","appId":"team","addonType":"INTERNAL_ADDON","addonVersion":"_","name":"productopsv2","id":34,"gmtCreate":1662536561000,"addonId":"productopsv2","stageId":"dev"},{"gmtModified":1670231652000,"addonConfig":"{}","namespaceId":"sreworks","appId":"team","addonType":"RESOURCE_ADDON","addonVersion":"_","name":"system-env","id":9,"gmtCreate":1660019756000,"addonId":"system-env","stageId":"dev"}],"microservices":[{"componentType":"K8S_MICROSERVICE","gmtModified":1670231652000,"microServiceId":"team","microServiceExt":"{\"initContainerList\":[{\"dockerfilePath\":\"Dockerfile-db-migration\",\"name\":\"db-migration\",\"repoPath\":\"saas/team/api/teammanage\",\"type\":\"shell\"}],\"kind\":\"Deployment\",\"envKeyList\":[\"DB_HOST\",\"DB_PORT\",\"DB_USER\",\"DB_PASSWORD\",\"COOKIE_DOMAIN\",\"APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\",\"APPMANAGER_PACKAGE_ENDPOINT\",\"APPMANAGER_PACKAGE_ACCESS_KEY\",\"APPMANAGER_PACKAGE_SECRET_KEY\",\"APPMANAGER_ENDPOINT=http://sreworks-appmanager\",\"AUTHPROXY_ENDPOINT=http://prod-flycore-paas-authproxy\",\"TEAM_DEFAULT_REPO=eyJuYW1lIjoiZGVmYXVsdCIsInVybCI6Imh0dHBzOi8vY29kZS5hbGl5dW4uY29tL3NyZXdvcmtzIiwiY2lUb2tlbiI6IiIsImNpQWNjb3VudCI6IiJ9\",\"DB_NAME=sreworks_meta\"],\"repo\":{\"ciAccount\":\"public\",\"ciToken\":\"public\",\"dockerfilePath\":\"Dockerfile\",\"repo\":\"https://code.aliyun.com/sreworks_public/mirror.git\",\"repoDomain\":\"https:\",\"repoGroup\":\"\",\"repoPath\":\"saas/team/api/teammanage\",\"repoProject\":\"code.aliyun.com\",\"repoType\":\"THIRD_REPO\"},\"launch\":{\"gatewayAuthEnabled\":true,\"gatewayRoute\":\"/sreworks/teammanage/**\",\"replicas\":1,\"servicePorts\":\"7001\"}}","description":"","gmtCreate":1662535573000,"namespaceId":"sreworks","appId":"team","name":"team","options":"options:\n kind: Deployment\n containers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile\n ciAccount: public\n ciToken: public\n repoPath: saas/team/api/teammanage\n branch: master\n name: team\n env:\n - DB_HOST\n - DB_PORT\n - DB_USER\n - DB_PASSWORD\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_ENDPOINT\n - AUTHPROXY_ENDPOINT\n - TEAM_DEFAULT_REPO\n - DB_NAME\n initContainers:\n - build:\n args: {}\n dockerfileTemplateArgs: {}\n repo: https://code.aliyun.com/sreworks_public/mirror.git\n dockerfileTemplate: Dockerfile-db-migration\n ciAccount: public\n ciToken: public\n repoPath: saas/team/api/teammanage\n branch: master\n name: db-migration\n","arch":"","export":true,"stageId":"dev"}]}
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 1.1.2+20221228001338890883
|
||||
annotations.appmanager.oam.dev/version: 1.1.4+20230321072720680877
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: team
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 1.1.2+20221228001338890883
|
||||
annotations.appmanager.oam.dev/version: 1.1.4+20230321072720680877
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: core.oam.dev/v1alpha2
|
|||
kind: Component
|
||||
metadata:
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: 4.4.8+20221228001338580836
|
||||
annotations.appmanager.oam.dev/version: 4.5.3+20230321072720165720
|
||||
labels:
|
||||
labels.appmanager.oam.dev/clusterId: PLACEHOLDER_CLUSTER_ID
|
||||
appId: team
|
||||
|
@ -22,7 +22,7 @@ spec:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: PLACEHOLDER_DEPLOY_APP_ID
|
||||
annotations.appmanager.oam.dev/deployComponentId: PLACEHOLDER_DEPLOY_COMPONENT_ID
|
||||
annotations.appmanager.oam.dev/version: 4.4.8+20221228001338580836
|
||||
annotations.appmanager.oam.dev/version: 4.5.3+20230321072720165720
|
||||
annotations.appmanager.oam.dev/appInstanceId: PLACEHOLDER_APP_INSTANCE_ID
|
||||
annotations.appmanager.oam.dev/appInstanceName: PLACEHOLDER_APP_INSTANCE_NAME
|
||||
annotations.appmanager.oam.dev/componentInstanceId: PLACEHOLDER_COMPONENT_INSTANCE_ID
|
||||
|
@ -44,7 +44,7 @@ spec:
|
|||
replicas: 1
|
||||
name: ''
|
||||
containers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/team-team-team:1672186418504
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/team-team-team:1679383640868
|
||||
name: team
|
||||
env:
|
||||
COOKIE_DOMAIN: '{{ Global.COOKIE_DOMAIN }}'
|
||||
|
@ -61,5 +61,5 @@ spec:
|
|||
AUTHPROXY_ENDPOINT: '{{ Global.AUTHPROXY_ENDPOINT }}'
|
||||
DB_PASSWORD: '{{ Global.DB_PASSWORD }}'
|
||||
initContainers:
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/team-team-db-migration:1672186418504
|
||||
- image: sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/team-team-db-migration:1679383640868
|
||||
name: db-migration
|
||||
|
|
|
@ -9,7 +9,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-team-team
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "4.4.8+20221228001338580836"
|
||||
annotations.appmanager.oam.dev/version: "4.5.3+20230321072720165720"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "team"
|
||||
labels.appmanager.oam.dev/componentName: "team"
|
||||
|
@ -39,7 +39,7 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "4.4.8+20221228001338580836"
|
||||
annotations.appmanager.oam.dev/version: "4.5.3+20230321072720165720"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
|
@ -63,13 +63,13 @@ componentPackages:
|
|||
DB_NAME: "{{ Global.DB_NAME }}"
|
||||
initContainers:
|
||||
- name: "db-migration"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/team-team-db-migration:1672186418504"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/team-team-db-migration:1679383640868"
|
||||
containers:
|
||||
- name: "team"
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/team-team-team:1672186418504"
|
||||
packageMd5: d7bc2cfc0d6e76c2fe2f113c0a39717f
|
||||
image: "sreworks-registry.cn-beijing.cr.aliyuncs.com/hub/team-team-team:1679383640868"
|
||||
packageMd5: 4db300aab8a15357f30cfb1e032e4241
|
||||
packageOptions: '{"kind":"Deployment","containers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile","ciAccount":"public","ciToken":"public","repoPath":"saas/team/api/teammanage","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"team"}],"env":["DB_HOST","DB_PORT","DB_USER","DB_PASSWORD","COOKIE_DOMAIN","APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL","APPMANAGER_PACKAGE_ENDPOINT","APPMANAGER_PACKAGE_ACCESS_KEY","APPMANAGER_PACKAGE_SECRET_KEY","APPMANAGER_ENDPOINT","AUTHPROXY_ENDPOINT","TEAM_DEFAULT_REPO","DB_NAME"],"initContainers":[{"build":{"args":{},"dockerfileTemplateArgs":{},"repo":"https://code.aliyun.com/sreworks_public/mirror.git","dockerfileTemplate":"Dockerfile-db-migration","ciAccount":"public","ciToken":"public","repoPath":"saas/team/api/teammanage","branch":"master","imagePush":true,"imagePushRegistry":"sreworks-registry.cn-beijing.cr.aliyuncs.com/hub"},"name":"db-migration"}],"componentConfiguration":"revisionName: K8S_MICROSERVICE|team|_\ntraits:\n- name: service.trait.abm.io\n runtime: post\n spec:\n ports:\n - protocol: TCP\n port: 80\n targetPort: 7001\n- name: gateway.trait.abm.io\n runtime: post\n spec:\n path: /sreworks/teammanage/**\n authEnabled: true\n serviceName: ''{{ Global.STAGE_ID }}-team-team.{{ Global.NAMESPACE_ID }}''\nscopes:\n- scopeRef:\n apiVersion: core.oam.dev/v1alpha2\n kind: Namespace\n spec:\n autoCreate: true\ndependencies:\n- component: RESOURCE_ADDON|system-env@system-env\nparameterValues:\n- name: REPLICAS\n value: 1\n toFieldPaths:\n - spec.replicas\n- name: Global.APPMANAGER_ENDPOINT\n value: http://sreworks-appmanager\n- name: Global.AUTHPROXY_ENDPOINT\n value: http://prod-flycore-paas-authproxy\n- name: Global.TEAM_DEFAULT_REPO\n value: eyJuYW1lIjoiZGVmYXVsdCIsInVybCI6Imh0dHBzOi8vY29kZS5hbGl5dW4uY29tL3NyZXdvcmtzIiwiY2lUb2tlbiI6IiIsImNpQWNjb3VudCI6IiJ9\n- name: Global.DB_NAME\n value: sreworks_meta\n","binderParameterValues":[],"binderTraits":[],"binderDependencies":[]}'
|
||||
packageVersion: 4.4.8+20221228001338580836
|
||||
packageVersion: 4.5.3+20230321072720165720
|
||||
relativePath: K8S_MICROSERVICE_team.zip
|
||||
- componentName: productopsv2
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -80,7 +80,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: microservice-team-productopsv2
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "1.1.2+20221228001338890883"
|
||||
annotations.appmanager.oam.dev/version: "1.1.4+20230321072720680877"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "team"
|
||||
labels.appmanager.oam.dev/componentName: "productopsv2"
|
||||
|
@ -110,15 +110,15 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "1.1.2+20221228001338890883"
|
||||
annotations.appmanager.oam.dev/version: "1.1.4+20230321072720680877"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec:
|
||||
targetEndpoint: ''
|
||||
packageMd5: 6ef1a86f20e8f8b050b52b780dcd7655
|
||||
packageMd5: 01751ee52e86bc4e9fe9a2a9cf039674
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"componentConfiguration":"clusterId: ''''\ndataInputs: []\ndataOutputs: []\ndependencies: []\nnamespaceId: ''''\nparameterValues: []\nrevisionName: INTERNAL_ADDON|productopsv2|_\nscopes: []\nstageId: ''''\ntraits: []\n","isDevelop":true,"binderTraits":[]}'
|
||||
packageVersion: 1.1.2+20221228001338890883
|
||||
packageVersion: 1.1.4+20230321072720680877
|
||||
relativePath: INTERNAL_ADDON_productopsv2.zip
|
||||
- componentName: system-env@system-env
|
||||
componentType: RESOURCE_ADDON
|
||||
|
@ -161,9 +161,9 @@ componentPackages:
|
|||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec: {}
|
||||
packageMd5: 053a56cea559aca1128ed440fbf750c5
|
||||
packageMd5: ad56749dfc684a78d4fac41a40ba3831
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"componentConfiguration":"clusterId: ''''\ndataInputs: []\ndataOutputs:\n- fieldPath: ''{{ spec.env.DB_HOST }}''\n name: Global.DB_HOST\n- fieldPath: ''{{ spec.env.DB_PASSWORD }}''\n name: Global.DB_PASSWORD\n- fieldPath: ''{{ spec.env.DB_PORT }}''\n name: Global.DB_PORT\n- fieldPath: ''{{ spec.env.DB_USER }}''\n name: Global.DB_USER\n- fieldPath: ''{{ spec.env.APPMANAGER_ACCESS_ID }}''\n name: Global.APPMANAGER_USERNAME\n- fieldPath: ''{{ spec.env.APPMANAGER_ACCESS_SECRET }}''\n name: Global.APPMANAGER_PASSWORD\n- fieldPath: ''{{ spec.env.APPMANAGER_CLIENT_ID }}''\n name: Global.APPMANAGER_CLIENT_ID\n- fieldPath: ''{{ spec.env.APPMANAGER_CLIENT_SECRET }}''\n name: Global.APPMANAGER_CLIENT_SECRET\n- fieldPath: ''{{ spec.env.COOKIE_DOMAIN }}''\n name: Global.COOKIE_DOMAIN\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ACCESS_KEY }}''\n name: Global.APPMANAGER_PACKAGE_ACCESS_KEY\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_SECRET_KEY }}''\n name: Global.APPMANAGER_PACKAGE_SECRET_KEY\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL }}''\n name: Global.APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n- fieldPath: ''{{ spec.env.APPMANAGER_PACKAGE_ENDPOINT }}''\n name: Global.APPMANAGER_PACKAGE_ENDPOINT\n- fieldPath: ''{{ spec.env.STORAGE_CLASS }}''\n name: Global.STORAGE_CLASS\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_CLIENT_ID }}''\n name: Global.ACCOUNT_SUPER_CLIENT_ID\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_CLIENT_SECRET }}''\n name: Global.ACCOUNT_SUPER_CLIENT_SECRET\n- fieldPath: ''{{ spec.env.DATA_ES_PASSWORD }}''\n name: Global.DATA_ES_PASSWORD\n- fieldPath: ''{{ spec.env.DATA_ES_USER }}''\n name: Global.DATA_ES_USER\n- fieldPath: ''{{ spec.env.DATA_ES_HOST }}''\n name: Global.DATA_ES_HOST\n- fieldPath: ''{{ spec.env.DATA_ES_PORT }}''\n name: Global.DATA_ES_PORT\n- fieldPath: ''{{ spec.env.DATA_PROM_HOST }}''\n name: Global.DATA_PROM_HOST\n- fieldPath: ''{{ spec.env.DATA_PROM_PORT }}''\n name: Global.DATA_PROM_PORT\n- fieldPath: ''{{ spec.env.DATA_DB_PORT }}''\n name: Global.DATA_DB_PORT\n- fieldPath: ''{{ spec.env.DATA_DB_HOST }}''\n name: Global.DATA_DB_HOST\n- fieldPath: ''{{ spec.env.DATA_DB_USER }}''\n name: Global.DATA_DB_USER\n- fieldPath: ''{{ spec.env.DATA_DB_PASSWORD }}''\n name: Global.DATA_DB_PASSWORD\n- fieldPath: ''{{ spec.env.KAFKA_ENDPOINT }}''\n name: Global.KAFKA_ENDPOINT\n- fieldPath: ''{{ spec.env.MINIO_ENDPOINT }}''\n name: Global.MINIO_ENDPOINT\n- fieldPath: ''{{ spec.env.MINIO_ACCESS_KEY }}''\n name: Global.MINIO_ACCESS_KEY\n- fieldPath: ''{{ spec.env.MINIO_SECRET_KEY }}''\n name: Global.MINIO_SECRET_KEY\n- fieldPath: ''{{ spec.env.HOME_URL }}''\n name: Global.HOME_URL\n- fieldPath: ''{{ spec.env.REDIS_ENDPOINT }}''\n name: Global.REDIS_ENDPOINT\n- fieldPath: ''{{ spec.env.APPMANAGER_REDIS_PORT }}''\n name: Global.APPMANAGER_REDIS_PORT\n- fieldPath: ''{{ spec.env.REDIS_PASSWORD }}''\n name: Global.REDIS_PASSWORD\n- fieldPath: ''{{ spec.env.APPMANAGER_JWT_SECRET_KEY }}''\n name: Global.APPMANAGER_JWT_SECRET_KEY\n- fieldPath: ''{{ spec.env.PLATFORM_NAME }}''\n name: Global.PLATFORM_NAME\n- fieldPath: ''{{ spec.env.PLATFORM_LOGO }}''\n name: Global.PLATFORM_LOGO\n- fieldPath: ''{{ spec.env.K8S_NAMESPACE }}''\n name: Global.K8S_NAMESPACE\n- fieldPath: ''{{ spec.env.ENDPOINT_PAAS_MINIO }}''\n name: Global.ENDPOINT_PAAS_MINIO\n- fieldPath: ''{{ spec.env.ZOOKEEPER_ENDPOINT }}''\n name: Global.ZOOKEEPER_ENDPOINT\n- fieldPath: ''{{ spec.env.ACCOUNT_SUPER_SECRET_KEY }}''\n name: Global.ACCOUNT_SUPER_SECRET_KEY\n- fieldPath: ''{{ spec.env.ADMIN_INIT_PASSWORD }}''\n name: Global.ADMIN_INIT_PASSWORD\ndependencies: []\nnamespaceId: ''''\nparameterValues:\n- name: keys\n toFieldPaths:\n - spec.keys\n value:\n - DB_HOST\n - DB_PASSWORD\n - DB_PORT\n - DB_USER\n - APPMANAGER_ACCESS_ID\n - APPMANAGER_ACCESS_SECRET\n - APPMANAGER_CLIENT_ID\n - APPMANAGER_CLIENT_SECRET\n - COOKIE_DOMAIN\n - APPMANAGER_PACKAGE_ACCESS_KEY\n - APPMANAGER_PACKAGE_SECRET_KEY\n - APPMANAGER_PACKAGE_ENDPOINT_PROTOCOL\n - APPMANAGER_PACKAGE_ENDPOINT\n - STORAGE_CLASS\n - ACCOUNT_SUPER_CLIENT_ID\n - ACCOUNT_SUPER_CLIENT_SECRET\n - DATA_ES_PASSWORD\n - DATA_ES_USER\n - DATA_ES_HOST\n - DATA_ES_PORT\n - DATA_PROM_HOST\n - DATA_PROM_PORT\n - DATA_DB_HOST\n - DATA_DB_PORT\n - DATA_DB_USER\n - DATA_DB_PASSWORD\n - KAFKA_ENDPOINT\n - MINIO_ENDPOINT\n - MINIO_ACCESS_KEY\n - MINIO_SECRET_KEY\n - HOME_URL\n - REDIS_ENDPOINT\n - APPMANAGER_REDIS_PORT\n - REDIS_PASSWORD\n - APPMANAGER_JWT_SECRET_KEY\n - PLATFORM_NAME\n - PLATFORM_LOGO\n - K8S_NAMESPACE\n - ENDPOINT_PAAS_MINIO\n - ZOOKEEPER_ENDPOINT\n - ACCOUNT_SUPER_SECRET_KEY\n - ADMIN_INIT_PASSWORD\nrevisionName: RESOURCE_ADDON|system-env@system-env|1.0\nscopes: []\nstageId: ''''\ntraits: []\n","binderTraits":[]}'
|
||||
packageVersion: 1.1.1+20221228001338798779
|
||||
packageVersion: 1.1.3+20230321072720552618
|
||||
relativePath: RESOURCE_ADDON_system-env@system-env.zip
|
||||
- componentName: developmentmeta
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -174,7 +174,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: internal-addon-team-developmentmeta
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "1.1.2+20221228001338986322"
|
||||
annotations.appmanager.oam.dev/version: "1.1.4+20230321072720637928"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "team"
|
||||
labels.appmanager.oam.dev/componentName: "developmentmeta"
|
||||
|
@ -204,14 +204,14 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "1.1.2+20221228001338986322"
|
||||
annotations.appmanager.oam.dev/version: "1.1.4+20230321072720637928"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec: {}
|
||||
packageMd5: f5d82781f6fdbfc08eb5719144616876
|
||||
packageMd5: 0e23ccf85d06c30a3cb2912009457ee0
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"binderTraits":[]}'
|
||||
packageVersion: 1.1.2+20221228001338986322
|
||||
packageVersion: 1.1.4+20230321072720637928
|
||||
relativePath: INTERNAL_ADDON_developmentmeta.zip
|
||||
- componentName: appmeta
|
||||
componentType: INTERNAL_ADDON
|
||||
|
@ -222,7 +222,7 @@ componentPackages:
|
|||
metadata:
|
||||
name: internal-addon-team-appmeta
|
||||
annotations:
|
||||
annotations.appmanager.oam.dev/version: "1.1.2+20221228001338891828"
|
||||
annotations.appmanager.oam.dev/version: "1.1.4+20230321072720978522"
|
||||
labels:
|
||||
labels.appmanager.oam.dev/appId: "team"
|
||||
labels.appmanager.oam.dev/componentName: "appmeta"
|
||||
|
@ -252,19 +252,19 @@ componentPackages:
|
|||
annotations:
|
||||
annotations.appmanager.oam.dev/deployAppId: "PLACEHOLDER_DEPLOY_APP_ID"
|
||||
annotations.appmanager.oam.dev/deployComponentId: "PLACEHOLDER_DEPLOY_COMPONENT_ID"
|
||||
annotations.appmanager.oam.dev/version: "1.1.2+20221228001338891828"
|
||||
annotations.appmanager.oam.dev/version: "1.1.4+20230321072720978522"
|
||||
annotations.appmanager.oam.dev/appInstanceId: "PLACEHOLDER_APP_INSTANCE_ID"
|
||||
annotations.appmanager.oam.dev/appInstanceName: "PLACEHOLDER_APP_INSTANCE_NAME"
|
||||
annotations.appmanager.oam.dev/componentInstanceId: "PLACEHOLDER_COMPONENT_INSTANCE_ID"
|
||||
spec:
|
||||
overwriteIsDevelopment: false
|
||||
overwriteBuiltIn: false
|
||||
packageMd5: cac69a5886de28be4353a23563cf4148
|
||||
packageMd5: 5f916fbbb058d546d5a42f8b5ffe38d9
|
||||
packageOptions: '{"binderParameterValues":[],"binderDependencies":[],"binderTraits":[]}'
|
||||
packageVersion: 1.1.2+20221228001338891828
|
||||
packageVersion: 1.1.4+20230321072720978522
|
||||
relativePath: INTERNAL_ADDON_appmeta.zip
|
||||
packageCreator: '999999999'
|
||||
packageVersion: 1.0.3+20221228010048784665
|
||||
packageVersion: 1.0.5+20230321074308534770
|
||||
tags:
|
||||
- release=sreworks/x86_64
|
||||
- on-sale
|
||||
|
|
Loading…
Reference in New Issue