WIP adding status to Integration
@@ -32,6 +32,10 @@ public interface Integration extends WithId<Integration>, WithName, Serializable
String KIND = "integration";
+ public enum Type {Activated, Deactivated};
+
+ public enum Phase {Pending, Running, Succeeded, Failed, Unknown};
+
/**
*Required Labels
*/
@@ -72,6 +76,10 @@ public interface Integration extends WithId<Integration>, WithName, Serializable
Optional<String> getGitRepo();
+ Optional<Enum<Type>> getStatusType();
+
+ Optional<Enum<Phase>> getStatusPhase();
+
@Override
default Integration withId(String id) {
return new Builder().createFrom(this).id(id).build();
