Class ContainerImageProcessor
java.lang.Object
io.quarkus.container.image.deployment.ContainerImageProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidfailForNativeSources(ContainerImageConfig containerImageConfig, Optional<ContainerImageBuildRequestBuildItem> buildRequest, Optional<ContainerImagePushRequestBuildItem> pushRequest, BuildProducer<ArtifactResultBuildItem> artifactResultProducer) getEffectiveGroup(Optional<String> group, boolean isSingleSegmentRequested) Since user.name which is default value can be uppercase and uppercase values are not allowed in the repository part of image references, we need to make the username lowercase.void(package private) static booleanUsers are allowed to specify an empty group, however this is mapped to Optional.emtpy().voidpublishImageInfo(ApplicationInfoBuildItem app, ContainerImageConfig containerImageConfig, Optional<SingleSegmentContainerImageRequestBuildItem> singleSegmentImageRequest, Optional<FallbackContainerImageRegistryBuildItem> containerImageRegistry, Optional<ContainerImageCustomNameBuildItem> containerImageCustomName, Capabilities capabilities, BuildProducer<ContainerImageInfoBuildItem> containerImage)
-
Constructor Details
-
ContainerImageProcessor
public ContainerImageProcessor()
-
-
Method Details
-
failForNativeSources
void failForNativeSources(ContainerImageConfig containerImageConfig, Optional<ContainerImageBuildRequestBuildItem> buildRequest, Optional<ContainerImagePushRequestBuildItem> pushRequest, BuildProducer<ArtifactResultBuildItem> artifactResultProducer) -
ignoreCredentialsChange
public void ignoreCredentialsChange(BuildProducer<SuppressNonRuntimeConfigChangedWarningBuildItem> producer) -
publishImageInfo
public void publishImageInfo(ApplicationInfoBuildItem app, ContainerImageConfig containerImageConfig, Optional<SingleSegmentContainerImageRequestBuildItem> singleSegmentImageRequest, Optional<FallbackContainerImageRegistryBuildItem> containerImageRegistry, Optional<ContainerImageCustomNameBuildItem> containerImageCustomName, Capabilities capabilities, BuildProducer<ContainerImageInfoBuildItem> containerImage) -
getEffectiveGroup
Since user.name which is default value can be uppercase and uppercase values are not allowed in the repository part of image references, we need to make the username lowercase. If spaces exist in the user name, we replace them with the dash character. We purposely don't change the value of an explicitly set group. -
getEffectiveGroup
-
isGroupSpecified
static boolean isGroupSpecified()Users are allowed to specify an empty group, however this is mapped to Optional.emtpy(). We need to know if the user has actually specified a group or not. The only way is to check the property names provided.
-