Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegistryPodHost ¶
Types ¶
type BundleAddModeType ¶
type BundleAddModeType = string
BundleAddModeType - type of BundleAddMode in RegistryPod struct
const ( // SemverBundleAddMode - bundle add mode for semver SemverBundleAddMode BundleAddModeType = "semver" // ReplacesBundleAddMode - bundle add mode for replaces ReplacesBundleAddMode BundleAddModeType = "replaces" )
type RegistryPod ¶
type RegistryPod struct { // BundleAddMode specifies the graph update mode that defines how channel graphs are updated // It is of the type BundleAddModeType BundleAddMode BundleAddModeType // BundleImage specifies the container image that opm uses to generate and incrementally update the database BundleImage string // 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 // contains filtered or unexported fields }
RegistryPod holds resources necessary for creation of a registry server
func NewRegistryPod ¶
func NewRegistryPod(cfg *operator.Configuration, dbPath, bundleImage string) (*RegistryPod, error)
NewRegistryPod initializes the RegistryPod struct and sets defaults for empty fields
func (*RegistryPod) Create ¶
func (rp *RegistryPod) Create(ctx context.Context, 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.