Documentation ¶
Overview ¶
Package deploy
Index ¶
- Constants
- func ApplyImageParams(componentPath string, imageParamsMap map[string]string) error
- func DeployManifestsFromPath(cli client.Client, owner metav1.Object, manifestPath string, namespace string, ...) error
- func DownloadManifests(componentName string, manifestConfig components.ManifestsConfig) error
- func OperatorExists(cli client.Client, operatorPrefix string) (bool, error)
- func SubscriptionExists(cli client.Client, namespace string, name string) (bool, error)
- type Platform
Constants ¶
const (
DefaultManifestPath = "/opt/manifests"
)
Variables ¶
This section is empty.
Functions ¶
func ApplyImageParams ¶ added in v2.1.0
User env variable passed from CSV (if it is set) to overwrite values from manifests' params.env file This is useful for air gapped cluster priority of image values (from high to low): - image values set in manifests params.env if manifestsURI is set - RELATED_IMAGE_* values from CSV - image values set in manifests params.env if manifestsURI is not set
func DeployManifestsFromPath ¶
func DownloadManifests ¶
func DownloadManifests(componentName string, manifestConfig components.ManifestsConfig) error
downloadManifests function performs following tasks: 1. It takes component URI and only downloads folder specified by component.ContextDir field 2. It saves the manifests in the odh-manifests/component-name/ folder
func OperatorExists ¶ added in v2.2.0
OperatorExists checks if an Operator with 'operatorPrefix' is installed. Return true if found it, false if not. TODO: if we need to check exact version of the operator installed, can append vX.Y.Z later
Types ¶
type Platform ¶
type Platform string
const ( // ManagedRhods defines expected addon catalogsource ManagedRhods Platform = "managed-odh" // SelfManagedRhods defines display name in csv SelfManagedRhods Platform = "Red Hat OpenShift Data Science" // OpenDataHub defines display name in csv OpenDataHub Platform = "Open Data Hub Operator" )