-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ Change CSB archetype, from TNB to CSB one
- Loading branch information
Showing
6 changed files
with
88 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...ducts/src/main/java/software/tnb/product/deploystrategy/impl/custom/JKubeCliStrategy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package software.tnb.product.deploystrategy.impl.custom; | ||
|
||
import software.tnb.common.product.ProductType; | ||
import software.tnb.product.csb.configuration.SpringBootConfiguration; | ||
import software.tnb.product.deploystrategy.OpenshiftDeployStrategy; | ||
import software.tnb.product.deploystrategy.OpenshiftDeployStrategyType; | ||
|
||
import com.google.auto.service.AutoService; | ||
|
||
@AutoService(OpenshiftDeployStrategy.class) | ||
public class JKubeCliStrategy extends CustomJKubeStrategy { | ||
|
||
public static final String OPENSHIFT_MAVEN_PLUGIN_AID = "openshift-maven-plugin"; | ||
|
||
private static final String oc = String.format("%s:%s:%s", SpringBootConfiguration.openshiftMavenPluginGroupId() | ||
, OPENSHIFT_MAVEN_PLUGIN_AID | ||
, SpringBootConfiguration.openshiftMavenPluginVersion()); | ||
|
||
public JKubeCliStrategy() { | ||
super(new String[]{"clean", "package", oc + ":resource", oc + ":build", oc + ":apply"}, new String[]{"openshift"}); | ||
createTnbDeployment(true); | ||
} | ||
|
||
@Override | ||
public ProductType[] products() { | ||
return new ProductType[] {ProductType.CAMEL_SPRINGBOOT}; | ||
} | ||
|
||
@Override | ||
public OpenshiftDeployStrategyType deployType() { | ||
return OpenshiftDeployStrategyType.CUSTOM; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters