Skip to content

Commit

Permalink
fix: actually checking finished status now...
Browse files Browse the repository at this point in the history
  • Loading branch information
secondsun committed Mar 16, 2021
1 parent bdfa17c commit af6f880
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.openshift.cloud.v1alpha.models.CloudServiceAccountRequest;
import com.openshift.cloud.v1alpha.models.CloudServicesRequest;
import com.openshift.cloud.v1alpha.models.KafkaCondition;
import com.openshift.cloud.v1alpha.models.KafkaCondition.Status;
import com.openshift.cloud.v1alpha.models.KafkaCondition.Type;
import com.openshift.cloud.v1alpha.models.KafkaConnection;
import io.fabric8.kubernetes.client.CustomResource;
Expand Down Expand Up @@ -77,7 +78,15 @@ private boolean shouldProcess(T resource) {
< resource.getMetadata().getGeneration()) {
return true;
}
return false;

if (Status.True.equals(finishedCondition.getStatus())) {
//everything is up to date and the resource had finished, then skip
return false;
} else {
return true;
}


}

private List<KafkaCondition> getConditions(T resource) {
Expand Down

0 comments on commit af6f880

Please sign in to comment.