Documentation ¶
Overview ¶
Package deploy provides utility functions used by each component to deploy manifests to the cluster.
Index ¶
- Constants
- func ApplyParams(componentPath string, imageParamsMap map[string]string, isUpdateNamespace bool) error
- func ClusterSubscriptionExists(cli client.Client, name string) (bool, error)
- func DeployManifestsFromPath(cli client.Client, owner metav1.Object, manifestPath string, namespace string, ...) error
- func DownloadManifests(componentName string, manifestConfig components.ManifestsConfig) error
- func GetResources(resMap resmap.ResMap) ([]*unstructured.Unstructured, error)
- func OperatorExists(cli client.Client, operatorPrefix string) (bool, error)
Constants ¶
const (
DefaultManifestPath = "/opt/manifests"
)
Variables ¶
This section is empty.
Functions ¶
func ApplyParams ¶ added in v2.3.0
func ApplyParams(componentPath string, imageParamsMap map[string]string, isUpdateNamespace bool) error
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. parameter isUpdateNamespace is used to set if should update namespace with dsci applicationnamespace.
func ClusterSubscriptionExists ¶ added in v2.9.0
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 GetResources ¶ added in v2.9.0
func GetResources(resMap resmap.ResMap) ([]*unstructured.Unstructured, error)
func OperatorExists ¶ added in v2.2.0
OperatorExists checks if an Operator with 'operatorPrefix' is installed. Return true if found it, false if not. if we need to check exact version of the operator installed, can append vX.Y.Z later.
Types ¶
This section is empty.