configmap

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 3

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

func TranslateInvalidChars(input string) string

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

func (*BundleLoader) Load

func (l *BundleLoader) Load(cm *corev1.ConfigMap) (bundle *api.Bundle, err error)

Load accepts a ConfigMap object, iterates through the Data section and creates an operator registry Bundle object. If the Data section has a PackageManifest resource then it is also deserialized and included in the result.

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

Jump to

Keyboard shortcuts

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