mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
Fix: fix component definition status message (#3054)
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
@@ -494,12 +494,7 @@ spec:
|
||||
replica: strconv.FormatInt(context.output.status.readyReplicas, 10)
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.status.replicas, 10)
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
message: ""
|
||||
}
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.spec.replicas, 10)
|
||||
healthPolicy: |-
|
||||
ready: {
|
||||
if context.output.status.readyReplicas == _|_ {
|
||||
@@ -509,12 +504,7 @@ spec:
|
||||
replica: context.output.status.readyReplicas
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
isHealth: context.output.status.replicas == ready.replica
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
isHealth: false
|
||||
}
|
||||
isHealth: context.output.spec.replicas == ready.replica
|
||||
workload:
|
||||
definition:
|
||||
apiVersion: apps/v1
|
||||
|
||||
@@ -405,12 +405,7 @@ spec:
|
||||
replica: strconv.FormatInt(context.output.status.readyReplicas, 10)
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.status.replicas, 10)
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
message: ""
|
||||
}
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.spec.replicas, 10)
|
||||
healthPolicy: |-
|
||||
ready: {
|
||||
if context.output.status.readyReplicas == _|_ {
|
||||
@@ -420,12 +415,7 @@ spec:
|
||||
replica: context.output.status.readyReplicas
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
isHealth: context.output.status.replicas == ready.replica
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
isHealth: false
|
||||
}
|
||||
isHealth: context.output.spec.replicas == ready.replica
|
||||
workload:
|
||||
definition:
|
||||
apiVersion: apps/v1
|
||||
|
||||
@@ -494,12 +494,7 @@ spec:
|
||||
replica: strconv.FormatInt(context.output.status.readyReplicas, 10)
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.status.replicas, 10)
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
message: ""
|
||||
}
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.spec.replicas, 10)
|
||||
healthPolicy: |-
|
||||
ready: {
|
||||
if context.output.status.readyReplicas == _|_ {
|
||||
@@ -509,12 +504,7 @@ spec:
|
||||
replica: context.output.status.readyReplicas
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
isHealth: context.output.status.replicas == ready.replica
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
isHealth: false
|
||||
}
|
||||
isHealth: context.output.spec.replicas == ready.replica
|
||||
workload:
|
||||
definition:
|
||||
apiVersion: apps/v1
|
||||
|
||||
@@ -405,12 +405,7 @@ spec:
|
||||
replica: strconv.FormatInt(context.output.status.readyReplicas, 10)
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.status.replicas, 10)
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
message: ""
|
||||
}
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.spec.replicas, 10)
|
||||
healthPolicy: |-
|
||||
ready: {
|
||||
if context.output.status.readyReplicas == _|_ {
|
||||
@@ -420,12 +415,7 @@ spec:
|
||||
replica: context.output.status.readyReplicas
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
isHealth: context.output.status.replicas == ready.replica
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
isHealth: false
|
||||
}
|
||||
isHealth: context.output.spec.replicas == ready.replica
|
||||
workload:
|
||||
definition:
|
||||
apiVersion: apps/v1
|
||||
|
||||
@@ -22,12 +22,7 @@ webservice: {
|
||||
replica: strconv.FormatInt(context.output.status.readyReplicas, 10)
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.status.replicas, 10)
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
message: ""
|
||||
}
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.spec.replicas, 10)
|
||||
"""#
|
||||
healthPolicy: #"""
|
||||
ready: {
|
||||
@@ -38,12 +33,7 @@ webservice: {
|
||||
replica: context.output.status.readyReplicas
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
isHealth: context.output.status.replicas == ready.replica
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
isHealth: false
|
||||
}
|
||||
isHealth: context.output.spec.replicas == ready.replica
|
||||
"""#
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,12 +24,7 @@ worker: {
|
||||
replica: strconv.FormatInt(context.output.status.readyReplicas, 10)
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.status.replicas, 10)
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
message: ""
|
||||
}
|
||||
message: "Ready:" + ready.replica + "/" + strconv.FormatInt(context.output.spec.replicas, 10)
|
||||
"""#
|
||||
healthPolicy: #"""
|
||||
ready: {
|
||||
@@ -40,12 +35,7 @@ worker: {
|
||||
replica: context.output.status.readyReplicas
|
||||
}
|
||||
}
|
||||
if context.output.status.replicas != _|_ {
|
||||
isHealth: context.output.status.replicas == ready.replica
|
||||
}
|
||||
if context.output.status.replicas == _|_ {
|
||||
isHealth: false
|
||||
}
|
||||
isHealth: context.output.spec.replicas == ready.replica
|
||||
"""#
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user