Search in sources :

Example 1 with DbOpsSpec

use of io.stackgres.apiweb.dto.dbops.DbOpsSpec in project stackgres by ongres.

the class DbOpsTransformer method getResourceSpec.

private DbOpsSpec getResourceSpec(StackGresDbOpsSpec source) {
    DbOpsSpec transformation = new DbOpsSpec();
    transformation.setSgCluster(source.getSgCluster());
    transformation.setOp(source.getOp());
    transformation.setRunAt(source.getRunAt());
    transformation.setTimeout(source.getTimeout());
    transformation.setMaxRetries(source.getMaxRetries());
    transformation.setBenchmark(getResourceBenchmark(source.getBenchmark()));
    transformation.setVacuum(getResourceVacuum(source.getVacuum()));
    transformation.setRepack(getResourceRepack(source.getRepack()));
    transformation.setMajorVersionUpgrade(getResourceMajorVersionUpgrade(source.getMajorVersionUpgrade()));
    transformation.setRestart(getResourceRestart(source.getRestart()));
    transformation.setMinorVersionUpgrade(getResourceMinorVersionUpgrade(source.getMinorVersionUpgrade()));
    transformation.setSecurityUpgrade(getResourceSecurityUpgrade(source.getSecurityUpgrade()));
    return transformation;
}
Also used : StackGresDbOpsSpec(io.stackgres.common.crd.sgdbops.StackGresDbOpsSpec) DbOpsSpec(io.stackgres.apiweb.dto.dbops.DbOpsSpec)

Aggregations

DbOpsSpec (io.stackgres.apiweb.dto.dbops.DbOpsSpec)1 StackGresDbOpsSpec (io.stackgres.common.crd.sgdbops.StackGresDbOpsSpec)1