# Functions
GetBuildConfig gets a build config.
GetContainers iterates through all container components, filters out init containers and returns corresponding containers
Deprecated: in favor of GetPodTemplateSpec.
GetDeployment gets a deployment object.
GetDockerBuildStrategy gets the docker build strategy.
GetImageStream is a function to return the image stream.
GetIngress gets an ingress.
GetInitContainers gets the init container for every preStart devfile event
Deprecated: in favor of GetPodTemplateSpec.
GetNetworkingV1Ingress gets a networking v1 ingress.
GetObjectMeta gets an object meta with the parameters.
GetOwnerReference generates an ownerReference from the deployment which can then be set as owner for various Kubernetes objects and ensure that when the owner object is deleted from the cluster, all other objects are automatically removed by Kubernetes garbage collector.
GetPodTemplateSpec returns a pod template The function: - iterates through all container components, filters out init containers and gets corresponding containers - gets the init container for every preStart devfile event - patches the pod template and containers to satisfy PodSecurityAdmissionPolicy - patches the pod template and containers to apply pod and container overrides The containers included in the podTemplateSpec can be filtered using podTemplateParams.Options.
GetPVC returns a PVC.
GetRoute gets a route.
GetService gets the service.
GetSourceBuildStrategy gets the source build strategy.
GetTypeMeta gets a type meta of the specified kind and version.
GetVolumeMountPath gets the volume mount's path.
GetVolumesAndVolumeMounts gets the PVC volumes and updates the containers with the volume mounts.
# Constants
No description provided by the author
DevfileSourceVolumeMount is the default directory to mount the volume in the container.
EnvProjectsRoot is the env defined for project mount in a component container when component's mountSources=true.
EnvProjectsSrc is the env defined for path to the project source in a component container.
No description provided by the author
# Structs
BuildConfigParams is a struct that contains the required data to create a build config object.
BuildConfigSpecParams is a struct to create build config spec.
DeploymentParams is a struct that contains the required data to create a deployment object.
ImageStreamParams is a struct that contains the required data to create an image stream object.
IngressParams is a struct that contains the required data to create an ingress object.
IngressSpecParams struct for function GenerateIngressSpec serviceName is the name of the service for the target reference ingressDomain is the ingress domain to use for the ingress portNumber is the target port of the ingress Path is the path of the ingress TLSSecretName is the target TLS Secret name of the ingress.
PodTemplateParams is a struct that contains the required data to create a podtemplatespec object.
PVCParams is a struct to create PVC.
RouteParams is a struct that contains the required data to create a route object.
RouteSpecParams struct for function GenerateRouteSpec serviceName is the name of the service for the target reference portNumber is the target port of the ingress Path is the path of the route.
ServiceParams is a struct that contains the required data to create a service object.
VolumeInfo is a struct to hold the pvc name and the volume name to create a volume.
VolumeParams is a struct that contains the required data to create Kubernetes Volumes and mount Volumes in Containers.
# Type aliases
ContainerVisitor is called with each container.