index

package
v0.0.0-...-8da71cf Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 17 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

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

func (m BundleAddMode) Validate() error

type BundleItem

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 SQLiteRegistryPod

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

	// ImagePullPolicy is the image pull policy for the registry pod, default is PullAlways
	ImagePullPolicy corev1.PullPolicy

	// 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

	// SkipTLSVerify represents skip TLS certificate verification for container image registries while pulling bundles.
	SkipTLSVerify bool `json:"SkipTLSVerify"`

	// UseHTTP uses plain HTTP for container image registries while pulling bundles.
	UseHTTP bool `json:"UseHTTP"`

	// SecurityContext defines the security context which will enable the
	// SecurityContext on the Pod
	SecurityContext string
	// contains filtered or unexported fields
}

SQLiteRegistryPod holds resources necessary for creation of a registry server

func (*SQLiteRegistryPod) 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