@Override
	public ResourceStatus status(V1beta2StatefulSet statefulSet) {
		if (statefulSet.getStatus() == null) {
			return ResourceStatus.FAILED;
		} else {
			V1beta2StatefulSetStatus stsStatus = statefulSet.getStatus();
			String currentRevision = stsStatus.getCurrentRevision();
			String updateRevision = stsStatus.getUpdateRevision();
			// stsStatus.getConditions()
			Integer currentReplicas = stsStatus.getCurrentReplicas();
			Integer readyReplicas = stsStatus.getReadyReplicas();
			Integer intendedReplicas = statefulSet.getSpec().getReplicas();
			// Success case update remaining pods status and return
			if (updateRevision != null && updateRevision.equals(currentRevision) && intendedReplicas != null
					&& intendedReplicas.equals(currentReplicas) && intendedReplicas.equals(readyReplicas)) {
				return ResourceStatus.STABLE;
			}
			return ResourceStatus.PENDING;
		}
	}
@param apiClient
@param name
@param namespace
@return true if pods needs to be deleted
@throws HyscaleException
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/V1beta2StatefulSetHandler.java