Skip to content

Commit

Permalink
adds complete status check too
Browse files Browse the repository at this point in the history
  • Loading branch information
KhizerJaan authored and rasheedamir committed Oct 3, 2024
1 parent 5e1017f commit 144002d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ spec:
{{- \$installPlanItem := . -}}
{{- range .spec.clusterServiceVersionNames -}}
{{- if and (eq . "${SUBSCRIPTION_CSV}") (not \$installPlanName) -}}
{{- range \$installPlanItem.metadata.ownerReferences -}}
{{- if eq .uid "${subscriptionUID}" -}}
{{- if eq $installPlanItem.status.phase "RequiresApproval" -}}
{{- if or (eq \$installPlanItem.status.phase "RequiresApproval") (eq \$installPlanItem.status.phase "Complete") -}}
{{- range \$installPlanItem.metadata.ownerReferences -}}
{{- if eq .uid "${subscriptionUID}" -}}
{{- \$installPlanName = \$installPlanItem.metadata.name -}}
{{- end -}}
{{- end -}}
Expand Down

0 comments on commit 144002d

Please sign in to comment.