use of io.strimzi.operator.common.model.ValidationVisitor in project strimzi by strimzi.
the class AbstractConnectOperator method validate.
public Set<Condition> validate(Reconciliation reconciliation, KafkaConnector resource) {
if (resource != null) {
Set<Condition> warningConditions = new LinkedHashSet<>(0);
ResourceVisitor.visit(reconciliation, resource, new ValidationVisitor(resource, LOGGER, warningConditions));
return warningConditions;
}
return Collections.emptySet();
}
use of io.strimzi.operator.common.model.ValidationVisitor in project strimzi-kafka-operator by strimzi.
the class AbstractConnectOperator method validate.
public Set<Condition> validate(Reconciliation reconciliation, KafkaConnector resource) {
if (resource != null) {
Set<Condition> warningConditions = new LinkedHashSet<>(0);
ResourceVisitor.visit(reconciliation, resource, new ValidationVisitor(resource, LOGGER, warningConditions));
return warningConditions;
}
return Collections.emptySet();
}
use of io.strimzi.operator.common.model.ValidationVisitor in project strimzi by strimzi.
the class AbstractOperator method validate.
/**
* Validate the Custom Resource.
* This should log at the WARN level (rather than throwing)
* if the resource can safely be reconciled (e.g. it merely using deprecated API).
* @param reconciliation The reconciliation
* @param resource The custom resource
* @throws InvalidResourceException if the resource cannot be safely reconciled.
* @return set of conditions
*/
/*test*/
public Set<Condition> validate(Reconciliation reconciliation, T resource) {
if (resource != null) {
Set<Condition> warningConditions = new LinkedHashSet<>(0);
ResourceVisitor.visit(reconciliation, resource, new ValidationVisitor(resource, LOGGER, warningConditions));
return warningConditions;
}
return Collections.emptySet();
}
use of io.strimzi.operator.common.model.ValidationVisitor in project strimzi-kafka-operator by strimzi.
the class AbstractOperator method validate.
/**
* Validate the Custom Resource.
* This should log at the WARN level (rather than throwing)
* if the resource can safely be reconciled (e.g. it merely using deprecated API).
* @param reconciliation The reconciliation
* @param resource The custom resource
* @throws InvalidResourceException if the resource cannot be safely reconciled.
* @return set of conditions
*/
/*test*/
public Set<Condition> validate(Reconciliation reconciliation, T resource) {
if (resource != null) {
Set<Condition> warningConditions = new LinkedHashSet<>(0);
ResourceVisitor.visit(reconciliation, resource, new ValidationVisitor(resource, LOGGER, warningConditions));
return warningConditions;
}
return Collections.emptySet();
}
Aggregations