deploy

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultManifestPath = "/opt/manifests"
)

Variables

This section is empty.

Functions

func ApplyImageParams added in v2.1.0

func ApplyImageParams(componentPath string, imageParamsMap map[string]string) error

func DeployManifestsFromPath

func DeployManifestsFromPath(owner metav1.Object, cli client.Client, componentName, manifestPath, namespace string, s *runtime.Scheme, componentEnabled bool) error

func DownloadManifests

func DownloadManifests(uri string) error

DownloadManifests function performs following tasks: 1. Given remote URI, download manifests, else extract local bundle 2. It saves the manifests in the /opt/manifests/component-name/ folder

func SubscriptionExists added in v2.1.0

func SubscriptionExists(cli client.Client, namespace string, name string) (bool, error)

Checks if a Subscription for the an operator exists in the given namespace

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"
)

func GetPlatform

func GetPlatform(cli client.Client) (Platform, error)

Jump to

Keyboard shortcuts

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