Package io.quarkus.kubernetes.deployment
Interface OpenShiftConfig
- All Superinterfaces:
EnvVarHolder,PlatformConfiguration
@ConfigMapping(prefix="quarkus.openshift")
@ConfigRoot(phase=BUILD_TIME)
public interface OpenShiftConfig
extends PlatformConfiguration
OpenShift
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleandeploy()If set to true, Quarkus will attempt to deploy the application to the target Kubernetes clusterThe kind of the deployment resource to use.flavor()The OpenShift flavor / version to use.default DeploymentResourceKindgetDeploymentResourceKind(io.quarkus.deployment.Capabilities capabilities) static booleanisOpenshiftBuildEnabled(io.quarkus.container.image.deployment.ContainerImageConfig containerImageConfig, io.quarkus.deployment.Capabilities capabilities) nodePort()The nodePort to set when serviceType is set to nodePortreplicas()The number of desired podsroute()OpenShift route configurationdefault StringSpecifies which the name of the platform this EnvVarHolder targets.Methods inherited from interface io.quarkus.kubernetes.deployment.EnvVarHolder
convertToBuildItems, envMethods inherited from interface io.quarkus.kubernetes.deployment.PlatformConfiguration
addBuildTimestamp, addNameToLabelSelectors, addVersionToLabelSelectors, annotations, appConfigMap, appSecret, arguments, awsElasticBlockStoreVolumes, azureDiskVolumes, azureFileVolumes, command, configMapVolumes, containerName, cronJob, deployStrategy, emptyDirVolumes, generateImagePullSecret, gitRepoVolumes, hostAliases, idempotent, imagePullPolicy, imagePullSecrets, initContainers, initTaskDefaults, initTasks, job, labels, livenessProbe, mounts, name, namespace, nodeSelector, partOf, ports, prometheus, pvcVolumes, rbac, readinessProbe, remoteDebug, resources, secretVolumes, securityContext, serviceAccount, serviceType, sidecars, startupProbe, vcsUri, version, workingDir
-
Method Details
-
targetPlatformName
Description copied from interface:EnvVarHolderSpecifies which the name of the platform this EnvVarHolder targets. This name, when needed, is used by dekorate to generate the descriptor associated with the targeted deployment platform.- Specified by:
targetPlatformNamein interfaceEnvVarHolder- Returns:
- the name of the targeted platform e.g.
Constants.KUBERNETES
-
flavor
The OpenShift flavor / version to use. Older versions of OpenShift have minor differences in the labels and fields they support. This option allows users to have their manifests automatically aligned to the OpenShift 'flavor' they use. -
deploymentKind
Optional<DeploymentResourceKind> deploymentKind()The kind of the deployment resource to use. Supported values are 'Deployment', 'StatefulSet', 'Job', 'CronJob' and 'DeploymentConfig'. Defaults to 'DeploymentConfig' ifflavor == v3, or 'Deployment' otherwise. DeploymentConfig is deprecated as of OpenShift 4.14. See https://access.redhat.com/articles/7041372 for details.- Specified by:
deploymentKindin interfacePlatformConfiguration
-
replicas
The number of desired pods -
nodePort
OptionalInt nodePort()The nodePort to set when serviceType is set to nodePort -
route
RouteConfig route()OpenShift route configuration -
deploy
@WithDefault("false") boolean deploy()If set to true, Quarkus will attempt to deploy the application to the target Kubernetes cluster -
isOpenshiftBuildEnabled
static boolean isOpenshiftBuildEnabled(io.quarkus.container.image.deployment.ContainerImageConfig containerImageConfig, io.quarkus.deployment.Capabilities capabilities) -
getDeploymentResourceKind
default DeploymentResourceKind getDeploymentResourceKind(io.quarkus.deployment.Capabilities capabilities) - Specified by:
getDeploymentResourceKindin interfacePlatformConfiguration
-