Skip to content

Commit

Permalink
fix: workaround decorator ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed Feb 1, 2023
1 parent c47ed23 commit e335522
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
package io.quarkus.kubernetes.deployment;

import io.dekorate.kubernetes.decorator.Decorator;
import io.dekorate.openshift.decorator.ApplyDeploymentTriggerDecorator;

public class ChangeDeploymentTriggerDecorator extends ApplyDeploymentTriggerDecorator {

public ChangeDeploymentTriggerDecorator(String containerName, String imageStreamTag) {
super(containerName, imageStreamTag);
}

@Override
public Class<? extends Decorator>[] after() {
return new Class[] { ApplyDeploymentTriggerDecorator.class, RemoveDeploymentTriggerDecorator.class };
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ public void andThenVisit(DeploymentConfigSpecFluent<?> deploymentConfigSpec, Obj
deploymentConfigSpec.withTriggers(Collections.emptyList());
}

@Override
public Class<? extends Decorator>[] before() {
return new Class[] { ChangeDeploymentTriggerDecorator.class };
}

@Override
public Class<? extends Decorator>[] after() {
return new Class[] { ApplyDeploymentTriggerDecorator.class };
Expand Down

0 comments on commit e335522

Please sign in to comment.