package
0.0.0-20210323204120-0d7ecfb5f9ca
Repository: https://github.com/kube-reporting/metering-operator.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CreateCatalogSourceFromImage is responsible for attempting to create a CatalogSource custom resource based on an index image source type.
CreateRegistryDeployment is a helper function responsible for building up and creating a local registry Deployment based on the @manifestPath YAML manifest object.
CreateRegistryService is a helper function responsible for decoding the @manifestPath registry Service YAML manifest into a Go object, which we then attempt to create in the @namespace.
CreateUpgradeConfigMap is a helper function responsible for creating a ConfigMap that contains the current version of the repositories' CRDs, CSV and metering-ocp package which OLM can then consume through a CatalogSource.
No description provided by the author
No description provided by the author
DeleteRegistryDeployment is a helper function responsible for listing all of the registry deployments in the @namespace that match the @labelSelector label selector, and deleting any deployments that get returned from that list.
DeleteRegistryService is a helper function responsible for listing all of the registry services in the @namespace that match the @labelSelector parameters, and deleting any services that get returned from that list.
GetServiceAccountToken queries the namespace for the service account and attempts to find the secret that contains the serviceAccount token and return it.
New is the constructor function that creates and returns a new DeployFramework object.
UpdateExistingSubscription is a helper function responsible for upgrading an existing metering-ocp Subscription to use the newest payload and verify that the Subscription object is reporting a successful upgrade status.
VerifyCatalogSourcePod is a deployframework helper function that checks the @namespace and verifies that there's a ready Pod that was created by an OLM CatalogSource resource.
VerifyConfigMap is a helper function that polls until the @name ConfigMap has been created in the @namespace namespace.
WaitForMeteringOperatorDeployment is a helper function that will poll for the @name deployment every ten seconds, waiting until that deployment reports a single signed 32-bit integer for both of the UpdatedReplicas and Replicas status fields, which will indicate a successful upgrade status.
No description provided by the author
WaitForReportingOperatorDeployment is a helper function that will poll for the @name deployment every twenty seconds, waiting until that deployment reports a successful upgrade status.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrInstallPlanFailed represents a failing InstallPlan during an individual metering installation instantiated by OLM.

# Structs

DeployerCtx contains all the information needed to manage the full lifecycle of a single metering deployment.
DeployFramework contains all the information necessary to deploy different metering instances and run tests against them.
LocalCtx holds all the necessary information to run e2e tests locally.
No description provided by the author