Skip to content

Honoring an optional spec.version field in the Operator API #162

Closed
@joelanford

Description

@joelanford

This issue should be closed when a demo recording is posted to the #olm-dev kubernetes slack channel that follows the below script:

Demo Script:

  1. Install operator-controller from the main branch or its most recently tagged release using operator-controller's standard install script and manifest.
  2. Create a Catalog object referencing quay.io/operatorhubio/catalog:latest
  3. Wait until the catalog is successfully unpacked.
  4. Create an Operator object referencing package prometheus with version 0.32.0
  5. Show that a BundleDeployment gets created and references the bundle image quay.io/operatorhubio/prometheus@sha256:14f75077f01feab351f7a046ccfcff6ad357bed2393048d0f6a41f6e64c63278
  6. Edit the Operator object and change the version to 0.37.0
  7. Show that the existing BundleDeployment is updated to reflect a new bundle image reference with quay.io/operatorhubio/prometheus@sha256:3e281e587de3d03011440685fc4fb782672beab044c1ebadc42788ce05a21c35
  8. Edit the Operator object and remove the version specification.
  9. Show that the existing BundleDeployment is updated to reflect a new bundle image reference with the highest semver bundle defined in the package (as of 4/5/23, that version is 0.47.0): quay.io/operatorhubio/prometheus@sha256:5b04c49d8d3eff6a338b56ec90bdf491d501fe301c9cdfb740e5bff6769a21ed
  10. Edit the Operator object and set the version to 3.0.0.
  11. Show the the Operator object has its status updated to reflect that the specified version is not available. Also show that the BundleDeployment is still present and remains at version 0.47.0.
  12. Delete the Operator objects.
  13. Show that no bundle deployment objects remain.

Related Issues:

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions