Skip to content

Commit

Permalink
Update condition for sts ready in Wait tests (#1889)
Browse files Browse the repository at this point in the history
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
  • Loading branch information
PrasadG193 authored Feb 7, 2023
1 parent 795471e commit f658f6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/function/wait_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ func waitStatefulSetPhase(namespace, sts string) crv1alpha1.BlueprintPhase {
Name: "waitStsReady",
Func: WaitFuncName,
Args: map[string]interface{}{
WaitTimeoutArg: "1m",
WaitTimeoutArg: "5m",
WaitConditionsArg: map[string]interface{}{
"allOf": []interface{}{
map[string]interface{}{
"condition": `{{ if (eq "{$.spec.replicas}" "{$.status.availableReplicas}" )}}
"condition": `{{ if (eq "{$.spec.replicas}" "{$.status.currentReplicas}" )}}
true
{{ else }}
false
Expand Down
4 changes: 2 additions & 2 deletions pkg/function/waitv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ func waitV2StatefulSetPhase(namespace, sts string) crv1alpha1.BlueprintPhase {
Name: "waitV2StsReady",
Func: WaitV2FuncName,
Args: map[string]interface{}{
WaitV2TimeoutArg: "1m",
WaitV2TimeoutArg: "5m",
WaitV2ConditionsArg: map[string]interface{}{
"allOf": []interface{}{
map[string]interface{}{
"condition": `{{ if (eq .spec.replicas .status.availableReplicas )}}true{{ else }}false{{ end }}`,
"condition": `{{ if (eq .spec.replicas .status.currentReplicas )}}true{{ else }}false{{ end }}`,
"objectReference": map[string]interface{}{
"apiVersion": "v1",
"group": "apps",
Expand Down

0 comments on commit f658f6f

Please sign in to comment.