mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
* Fix: install dependency is invalid for runtime addon when it's clusters arg is nil Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com> * Fix: add unit test for getDependencyArgs and checkDependencyNeedInstall Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com> * Fix: Simplified the checkDependencyNeedInstall func logic Signed-off-by: zhaohuihui <zhaohuihui_yewu@cmss.chinamobile.com> * Fix: add comments for 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: {}
|
|
}
|
|
}
|
|
},
|
|
]
|
|
}
|
|
}
|