Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegistryPodHost ¶
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 SQLiteRegistryPod ¶ added in v1.22.0
type SQLiteRegistryPod 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 // 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 ¶ added in v1.22.0
func (rp *SQLiteRegistryPod) Create(ctx context.Context, cfg *operator.Configuration, cs *v1alpha1.CatalogSource) (*corev1.Pod, error)
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
Click to show internal directories.
Click to hide internal directories.