Skip to content

Commit

Permalink
[no merge]
Browse files Browse the repository at this point in the history
  • Loading branch information
Sgitario committed Feb 1, 2023
1 parent ce2d2d6 commit 6a34cf0
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 @@ -21,6 +21,11 @@ public void andThenVisit(DeploymentConfigSpecFluent<?> deploymentConfigSpec, Obj

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

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

0 comments on commit 6a34cf0

Please sign in to comment.