Class ContainerImageConfig
- java.lang.Object
-
- io.quarkus.container.image.deployment.ContainerImageConfig
-
@ConfigRoot public class ContainerImageConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Optional<List<String>>additionalTagsAdditional tags of the container image.Optional<Boolean>buildWhether or not a image build will be performed.Optional<String>builderThe name of the container image extension to use (e.g.Optional<String>groupThe group the container image will be part ofOptional<String>imageRepresents the entire image string.booleaninsecureWhether or not insecure registries are allowedMap<String,String>labelsCustom labels to add to the generated image.Optional<String>nameThe name of the container image.Optional<String>passwordThe password to use to authenticate with the registry where the built image will be pushedOptional<Boolean>pushWhether or not an image push will be performed.Optional<String>registryThe container registry to useOptional<String>tagThe tag of the container image.Optional<String>usernameThe username to use to authenticate with the registry where the built image will be pushed
-
Constructor Summary
Constructors Constructor Description ContainerImageConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>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.booleanisBuildExplicitlyDisabled()booleanisBuildExplicitlyEnabled()booleanisPushExplicitlyDisabled()booleanisPushExplicitlyEnabled()
-
-
-
Field Detail
-
group
@ConfigItem(defaultValue="${user.name}") @ConvertWith(io.quarkus.runtime.configuration.TrimmedStringConverter.class) public Optional<String> groupThe group the container image will be part of
-
name
@ConfigItem(defaultValue="${quarkus.application.name:unset}") @ConvertWith(io.quarkus.runtime.configuration.TrimmedStringConverter.class) public Optional<String> nameThe name of the container image. If not set defaults to the application name
-
tag
@ConfigItem(defaultValue="${quarkus.application.version:latest}") public Optional<String> tagThe tag of the container image. If not set defaults to the application version
-
additionalTags
@ConfigItem public Optional<List<String>> additionalTags
Additional tags of the container image.
-
image
@ConfigItem public Optional<String> image
Represents the entire image string. If set, thengroup,name,registry,tags,additionalTagsare ignored
-
username
@ConfigItem public Optional<String> username
The username to use to authenticate with the registry where the built image will be pushed
-
password
@ConfigItem public Optional<String> password
The password to use to authenticate with the registry where the built image will be pushed
-
insecure
@ConfigItem public boolean insecure
Whether or not insecure registries are allowed
-
-
Method Detail
-
isBuildExplicitlyEnabled
public boolean isBuildExplicitlyEnabled()
-
isBuildExplicitlyDisabled
public boolean isBuildExplicitlyDisabled()
-
isPushExplicitlyEnabled
public boolean isPushExplicitlyEnabled()
-
isPushExplicitlyDisabled
public boolean isPushExplicitlyDisabled()
-
getEffectiveGroup
public Optional<String> 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.
-
-