Files
kubevela/pkg/addon/testdata/test-disable-addon/definitions/traitDef.cue
wyike a6460d67b6 Feat: check if an addon is been used while disabling. (#3457)
* first commit

add more tests

Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>

fix ci

Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>

fix ci

fix test

Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>

* fetch only definitions from registry for lagacy addon app

Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>

fix ci

* fix error test

Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
2022-03-21 10:38:56 +08:00

20 lines
378 B
CUE

"my-trait": {
type: "trait"
annotations: {}
description: "Rollout the component."
attributes: {
manageWorkload: true
status: {
customStatus: #"""
message: context.outputs.rollout.status.rollingState
"""#
healthPolicy: #"""
isHealth: context.outputs.rollout.status.batchRollingState == "batchReady"
"""#
}
}
}
template: {
outputs: rollout: {}
}