index

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegistryPodHost

func GetRegistryPodHost(ipStr string) string

Types

type BundleAddMode added in v1.3.0

type BundleAddMode string

BundleAddMode is the mode to add a bundle to an index.

const (
	// SemverBundleAddMode - bundle add mode for semver
	SemverBundleAddMode BundleAddMode = "semver"
	// ReplacesBundleAddMode - bundle add mode for replaces
	ReplacesBundleAddMode BundleAddMode = "replaces"
)

func (BundleAddMode) Validate added in v1.4.0

func (m BundleAddMode) Validate() error

type BundleItem added in v1.3.0

type BundleItem struct {
	// ImageTag is the bundle image's tag.
	ImageTag string `json:"imageTag"`
	// AddMode describes how the bundle should be added to an index image.
	AddMode BundleAddMode `json:"mode"`
}

BundleItem contains the metadata of a bundle image relevant to the registry pod.

type RegistryPod

type RegistryPod struct {
	// BundleItems contains all bundles to be added to a registry pod.
	BundleItems []BundleItem

	// Index image contains a database of pointers to operator manifest content that is queriable via an API.
	// new version of an operator bundle when published can be added to an index image
	IndexImage string

	// DBPath refers to the registry DB;
	// if an index image is provided, the existing registry DB is located at /database/index.db
	DBPath string

	// GRPCPort is the container grpc port
	GRPCPort int32

	// SecretName holds the name of an image pull secret to mount into the Pod so `opm registry add`
	// can pull bundle images from a private registry.
	SecretName string

	// SecretName holds the name of a secret for a CA cert file containing root certificates.
	// This file is transiently added to the registry Pod's cert pool via `opm registry add --ca-file`.
	// The secret's key for this file must be "cert.pem".
	CASecretName string

	// SkipTLS controls wether to ignore SSL errors while pulling bundle image from registry server.
	SkipTLS bool `json:"SkipTLS"`
	// contains filtered or unexported fields
}

RegistryPod holds resources necessary for creation of a registry server

func (*RegistryPod) Create

Create creates a bundle registry pod built from an index image, sets the catalog source as the owner for the pod and verifies that the pod is running

Jump to

Keyboard shortcuts

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