Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvContainerImage = "CONTAINER_IMAGE" ConfigMapImageAnnotationKey = "olm.sourceImage" ConfigMapEncodingAnnotationKey = "olm.contentEncoding" ConfigMapEncodingAnnotationGzip = "gzip+base64" )
Variables ¶
This section is empty.
Functions ¶
func LaunchBundleImage ¶
func LaunchBundleImage(kubeclient kubernetes.Interface, bundleImage, initImage, namespace string, gzip bool) (*corev1.ConfigMap, *batchv1.Job, error)
LaunchBundleImage will launch a bundle image and also create a configmap for storing the data that will be updated to contain the bundle image data. It is the responsibility of the caller to delete the job, the pod, and the configmap when done. This function is intended to be called from OLM, but is put here for locality.
func TranslateInvalidChars ¶
Types ¶
type AnnotationsFile ¶
type AnnotationsFile struct { Annotations struct { Resources string `json:"operators.operatorframework.io.bundle.manifests.v1"` MediaType string `json:"operators.operatorframework.io.bundle.mediatype.v1"` Metadata string `json:"operators.operatorframework.io.bundle.metadata.v1"` Package string `json:"operators.operatorframework.io.bundle.package.v1"` Channels string `json:"operators.operatorframework.io.bundle.channels.v1"` ChannelDefault string `json:"operators.operatorframework.io.bundle.channel.default.v1"` } `json:"annotations"` }
type BundleLoader ¶
type BundleLoader struct {
// contains filtered or unexported fields
}
func NewBundleLoader ¶
func NewBundleLoader() *BundleLoader
func NewBundleLoaderWithLogger ¶
func NewBundleLoaderWithLogger(logger *logrus.Entry) *BundleLoader
type ConfigMapWriter ¶
type ConfigMapWriter struct {
// contains filtered or unexported fields
}
func NewConfigMapLoader ¶
func NewConfigMapLoader(configMapName, namespace, manifestsDir string, gzip bool, kubeconfig string) *ConfigMapWriter
func NewConfigMapLoaderWithClient ¶
func NewConfigMapLoaderWithClient(configMapName, namespace, manifestsDir string, gzip bool, clientset kubernetes.Interface) *ConfigMapWriter
func (*ConfigMapWriter) Populate ¶
func (c *ConfigMapWriter) Populate(maxDataSizeLimit uint64) error
Click to show internal directories.
Click to hide internal directories.