Package io.quarkus.kubernetes.spi
Class KubernetesJobBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.kubernetes.spi.KubernetesJobBuildItem
- All Implemented Interfaces:
Targetable
public final class KubernetesJobBuildItem
extends io.quarkus.builder.item.MultiBuildItem
implements Targetable
A Built item for generating init containers.
The generated container will have the specified fields
and may optionally inherit env vars and volumes from the app container.
Env vars specified through this build item, will take precedence over inherited ones.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KubernetesJobBuildItemgetImage()getName()booleanFlag for tasks that require access to the environment variables of the application.booleanFlag for tasks that need to share filesystem with the application.withArguments(List<String> arguments) withCommand(List<String> command) withEnvVars(Map<String, String> envVars) withSharedEnvironment(boolean sharedEnvironment) withSharedFilesystem(boolean sharedFilesystem) withTarget(String target) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.kubernetes.spi.Targetable
isActiveFor
-
Constructor Details
-
KubernetesJobBuildItem
-
-
Method Details
-
create
-
getName
-
withName
-
getTarget
- Specified by:
getTargetin interfaceTargetable
-
withTarget
-
getImage
-
withImage
-
getCommand
-
withCommand
-
getArguments
-
withArguments
-
getEnvVars
-
withEnvVars
-