deploy

package
v2.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package deploy provides utility functions used by each component to deploy manifests to the cluster.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultManifestPath = os.Getenv("DEFAULT_MANIFESTS_PATH")
)

Functions

func ApplyParams added in v2.3.0

func ApplyParams(componentPath string, imageParamsMap map[string]string, extraParamsMaps ...map[string]string) error

overwrite values in components' 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 (if it is set) - image values set in manifests params.env if manifestsURI is not set. extraParamsMaps is used to set extra parameters which are not carried from ENV variable. this can be passed per component.

func DeployManifestsFromPath

func DeployManifestsFromPath(
	ctx context.Context,
	cli client.Client,
	owner metav1.Object,
	manifestPath string,
	namespace string,
	componentName string,
	componentEnabled bool,
) error

func DownloadManifests

func DownloadManifests(ctx context.Context, 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL