From 6a34cf05213327e148a83f76c1b6208e9ee623b5 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 1 Feb 2023 11:41:54 +0100 Subject: [PATCH] [no merge] --- .../deployment/ChangeDeploymentTriggerDecorator.java | 6 ------ .../deployment/RemoveDeploymentTriggerDecorator.java | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) 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 badd3dd41eb38..f67f69d81243b 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 1776826859f48..408836eb8054d 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 }; } }