{"modulePath":"github.com/operator-framework/operator-lifecycle-manager","version":"v0.46.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bundle\n\n## Constants\n\n```go\nconst (\n\t// TODO: This can be a spec field\n\t// BundleUnpackTimeoutAnnotationKey allows setting a bundle unpack timeout per OperatorGroup\n\t// and overrides the default specified by the --bundle-unpack-timeout flag\n\t// The time duration should be in the same format as accepted by time.ParseDuration()\n\t// e.g 1m30s\n\tBundleUnpackTimeoutAnnotationKey = \"operatorframework.io/bundle-unpack-timeout\"\n\tBundleUnpackPodLabel             = \"job-name\"\n\n\t// BundleUnpackRetryMinimumIntervalAnnotationKey sets a minimum interval to wait before\n\t// attempting to recreate a failed unpack job for a bundle.\n\tBundleUnpackRetryMinimumIntervalAnnotationKey = \"operatorframework.io/bundle-unpack-min-retry-interval\"\n\n\t// BundleUnpackRefLabel is used to filter for all unpack jobs or pods for a specific bundle.\n\tBundleUnpackRefLabel = \"operatorframework.io/bundle-unpack-ref\"\n)\n```\n\n```go\nconst (\n\tCatalogSourceMissingReason  = \"CatalogSourceMissing\"\n\tCatalogSourceMissingMessage = \"referenced catalogsource not found\"\n\tJobFailedReason             = \"JobFailed\"\n\tJobFailedMessage            = \"unpack job has failed\"\n\tJobIncompleteReason         = \"JobIncomplete\"\n\tJobIncompleteMessage        = \"unpack job not completed\"\n\tJobNotStartedReason         = \"JobNotStarted\"\n\tJobNotStartedMessage        = \"unpack job not yet started\"\n\tNotUnpackedReason           = \"BundleNotUnpacked\"\n\tNotUnpackedMessage          = \"bundle contents have not yet been persisted to installplan status\"\n)\n```\n\n## Functions\n\n```go\nfunc OperatorGroupBundleUnpackRetryInterval(ogLister v1listers.OperatorGroupNamespaceLister) (time.Duration, error)\n```\nOperatorGroupBundleUnpackRetryInterval returns bundle unpack retry interval from annotation if specified. If the retry annotation is not set, return retry = 0 which is subsequently ignored. This interval, if \u003e 0, determines the minimum interval between recreating a failed unpack job.\n\n```go\nfunc OperatorGroupBundleUnpackTimeout(ogLister v1listers.OperatorGroupNamespaceLister) (time.Duration, error)\n```\nOperatorGroupBundleUnpackTimeout returns bundle timeout from annotation if specified. If the timeout annotation is not set, return timeout \\\u003c 0 which is subsequently ignored. This is to overrides the --bundle-unpack-timeout flag value on per-OperatorGroup basis.\n\n## Types\n\n```go\ntype BundleUnpackResult struct {\n\t*operatorsv1alpha1.BundleLookup\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (b *BundleUnpackResult) Bundle() *api.Bundle\n```\n\n```go\nfunc (b *BundleUnpackResult) Name() string\n```\n\n```go\nfunc (b *BundleUnpackResult) SetCondition(cond operatorsv1alpha1.BundleLookupCondition) operatorsv1alpha1.BundleLookupCondition\n```\nSetCondition replaces the existing BundleLookupCondition of the same type, or adds it if it was not found.\n\n```go\ntype ConfigMapUnpacker struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewConfigmapUnpacker(options ...ConfigMapUnpackerOption) (*ConfigMapUnpacker, error)\n```\n\n```go\nfunc (c *ConfigMapUnpacker) UnpackBundle(lookup *operatorsv1alpha1.BundleLookup, timeout, retryInterval time.Duration) (result *BundleUnpackResult, err error)\n```\n\n```go\ntype ConfigMapUnpackerOption func(*ConfigMapUnpacker)\n```\n\n```go\nfunc WithCatalogSourceLister(csLister listersoperatorsv1alpha1.CatalogSourceLister) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithClient(client kubernetes.Interface) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithConfigMapLister(cmLister listerscorev1.ConfigMapLister) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithJobLister(jobLister listersbatchv1.JobLister) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithLogger(logger *logrus.Logger) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithNow(now func() metav1.Time) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithOPMImage(opmImage string) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithPodLister(podLister listerscorev1.PodLister) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithRoleBindingLister(rbLister listersrbacv1.RoleBindingLister) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithRoleLister(roleLister listersrbacv1.RoleLister) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithServiceAccountLister(saLister listerscorev1.ServiceAccountLister) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithUnpackTimeout(timeout time.Duration) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithUserID(id int64) ConfigMapUnpackerOption\n```\n\n```go\nfunc WithUtilImage(utilImage string) ConfigMapUnpackerOption\n```\n\n```go\ntype Unpacker interface {\n\tUnpackBundle(lookup *operatorsv1alpha1.BundleLookup, timeout, retryInterval time.Duration) (result *BundleUnpackResult, err error)\n}\n```\n\n","path":"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/bundle","name":"bundle","synopsis":"","isRedistributable":true}
