mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
* Refactor: the addon dependency installation logic is accurate to the cluster Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com> * Fix: optimize the code based on the review Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com> * Feat: add unit test for func checkDependencyNeedInstall Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com> --------- Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com>
25 lines
451 B
CUE
25 lines
451 B
CUE
package main
|
|
_targetNamespace: parameter.myparam
|
|
output: {
|
|
apiVersion: "core.oam.dev/v1beta1"
|
|
kind: "Application"
|
|
spec: {
|
|
components: [],
|
|
policies: [
|
|
{
|
|
type: "topology"
|
|
name: "deploy-mock-dependency-ns"
|
|
properties: {
|
|
namespace: _targetNamespace
|
|
if parameter.clusters != _|_ {
|
|
clusters: parameter.clusters
|
|
}
|
|
if parameter.clusters == _|_ {
|
|
clusterLabelSelector: {}
|
|
}
|
|
}
|
|
},
|
|
]
|
|
}
|
|
}
|