Package io.quarkus.kubernetes.spi
Class KubernetesInitContainerBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.kubernetes.spi.KubernetesInitContainerBuildItem
- All Implemented Interfaces:
Targetable
public final class KubernetesInitContainerBuildItem
extends io.quarkus.builder.item.MultiBuildItem
implements Targetable
A Build 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
ConstructorsConstructorDescriptionKubernetesInitContainerBuildItem(String name, String target, String image, List<String> command, List<String> arguments, Map<String, String> envVars, boolean sharedEnvironment, boolean sharedFilesystem) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiongetImage()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) withImagePullPolicy(String imagePullPolicy) 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
-
KubernetesInitContainerBuildItem
@Deprecated(forRemoval=true, since="3.18") public KubernetesInitContainerBuildItem(String name, String target, String image, List<String> command, List<String> arguments, Map<String, String> envVars, boolean sharedEnvironment, boolean sharedFilesystem) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
create
-
create
public static KubernetesInitContainerBuildItem create(String name, String image, String imagePullPolicy) -
getName
-
withName
-
getTarget
- Specified by:
getTargetin interfaceTargetable
-
withTarget
-
getImage
-
withImage
-
getImagePullPolicy
-
withImagePullPolicy
-
getCommand
-
withCommand
-
getArguments
-
withArguments
-
getEnvVars
-
withEnvVars
-