diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ChangeDeploymentTriggerDecorator.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ChangeDeploymentTriggerDecorator.java index badd3dd41eb384..f67f69d81243b9 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ChangeDeploymentTriggerDecorator.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/ChangeDeploymentTriggerDecorator.java @@ -1,6 +1,5 @@ package io.quarkus.kubernetes.deployment; -import io.dekorate.kubernetes.decorator.Decorator; import io.dekorate.openshift.decorator.ApplyDeploymentTriggerDecorator; public class ChangeDeploymentTriggerDecorator extends ApplyDeploymentTriggerDecorator { @@ -8,9 +7,4 @@ public class ChangeDeploymentTriggerDecorator extends ApplyDeploymentTriggerDeco public ChangeDeploymentTriggerDecorator(String containerName, String imageStreamTag) { super(containerName, imageStreamTag); } - - @Override - public Class[] after() { - return new Class[] { ApplyDeploymentTriggerDecorator.class, RemoveDeploymentTriggerDecorator.class }; - } } diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/RemoveDeploymentTriggerDecorator.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/RemoveDeploymentTriggerDecorator.java index 1776826859f48d..408836eb8054d8 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/RemoveDeploymentTriggerDecorator.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/RemoveDeploymentTriggerDecorator.java @@ -21,6 +21,11 @@ public void andThenVisit(DeploymentConfigSpecFluent deploymentConfigSpec, Obj @Override public Class[] before() { + return new Class[] { ChangeDeploymentTriggerDecorator.class }; + } + + @Override + public Class[] after() { return new Class[] { ApplyDeploymentTriggerDecorator.class }; } }