Skip to content

Commit

Permalink
Fix RemoveDeploymentTriggerDecorator order
Browse files Browse the repository at this point in the history
The decorator RemoveDeploymentTriggerDecorator was not configured to be triggered before ChangeDeploymentTriggerDecorator, so sometimes the image stream tag was wrong.

Relates to failures in https://github.com/dekorateio/dekorate/actions/runs/4023231521/jobs/6913879180
  • Loading branch information
Sgitario committed Feb 1, 2023
1 parent 247fcb5 commit 9e190ce
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import io.dekorate.kubernetes.decorator.Decorator;
import io.dekorate.kubernetes.decorator.NamedResourceDecorator;
import io.dekorate.openshift.decorator.ApplyDeploymentTriggerDecorator;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.fabric8.openshift.api.model.DeploymentConfigSpecFluent;

Expand All @@ -16,7 +15,7 @@ public void andThenVisit(DeploymentConfigSpecFluent<?> deploymentConfigSpec, Obj
}

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

0 comments on commit 9e190ce

Please sign in to comment.