Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,20 @@ public static Builder builder() {
return new Builder();
}

Comment thread
csviri marked this conversation as resolved.
protected void before(ExtensionContext context) {
super.before(context);
// note that if extension is not static beforeAll is not called
@Override
protected void beforeEachImpl(ExtensionContext context) {
applyCrds(context);
super.beforeEachImpl(context);
}

@Override
protected void beforeAllImpl(ExtensionContext context) {
applyCrds(context);
super.beforeAllImpl(context);
}
Comment thread
csviri marked this conversation as resolved.

protected void applyCrds(ExtensionContext context) {
final var crdPath = "./target/classes/META-INF/fabric8/";
final var crdSuffix = "-v1.yml";

Expand All @@ -109,7 +120,12 @@ protected void before(ExtensionContext context) {
throw new IllegalStateException("Cannot apply CRD yaml: " + crdFile.getAbsolutePath(), ex);
}
}
}

@Override
protected void before(ExtensionContext context) {
super.before(context);
final var kubernetesClient = getInfrastructureKubernetesClient();
LOGGER.debug("Deploying the operator into Kubernetes. Target namespace: {}", namespace);
operatorDeployment.forEach(
hm -> {
Expand Down
Loading