use of io.fabric8.kubernetes.client.dsl.internal.RawCustomResourceOperationsImpl in project syndesis-qe by syndesisio.
the class Syndesis method deleteCr.
private void deleteCr(String name, String version) {
log.info("Undeploying custom resource \"{}\" in version \"{}\"", name, version);
RawCustomResourceOperationsImpl syndesisCrClient = getSyndesisCrClient(version);
OpenShiftUtils.asRegularUser(() -> syndesisCrClient.delete(TestConfiguration.openShiftNamespace(), name));
}
use of io.fabric8.kubernetes.client.dsl.internal.RawCustomResourceOperationsImpl in project syndesis-qe by syndesisio.
the class Syndesis method editCr.
public void editCr(Map<String, Object> cr) {
RawCustomResourceOperationsImpl syndesisCrClient = getSyndesisCrClient();
OpenShiftUtils.asRegularUser(() -> {
try {
syndesisCrClient.edit(TestConfiguration.openShiftNamespace(), CR_NAME, cr);
} catch (IOException e) {
fail("Unable to modify CR: " + e);
}
});
}
use of io.fabric8.kubernetes.client.dsl.internal.RawCustomResourceOperationsImpl in project syndesis-qe by syndesisio.
the class Syndesis method editCr.
public void editCr(String cr) {
RawCustomResourceOperationsImpl syndesisCrClient = getSyndesisCrClient();
OpenShiftUtils.asRegularUser(() -> {
try {
syndesisCrClient.edit(TestConfiguration.openShiftNamespace(), CR_NAME, cr);
} catch (IOException e) {
fail("Unable to modify CR: " + e);
}
});
}
use of io.fabric8.kubernetes.client.dsl.internal.RawCustomResourceOperationsImpl in project syndesis-qe by syndesisio.
the class Syndesis method createCr.
public void createCr(Map<String, Object> cr) {
RawCustomResourceOperationsImpl syndesisCrClient = getSyndesisCrClient();
OpenShiftUtils.asRegularUser(() -> {
try {
syndesisCrClient.create(TestConfiguration.openShiftNamespace(), cr);
} catch (IOException e) {
fail("Unable to create CR: " + e);
}
});
}
Aggregations