Skip to content

internal/pkg/action/catalog_add.go: several improvements #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

joelanford
Copy link
Member

  • When pulling images and image labels for an index image that is a manifest list, try all platforms rather than just the platform on which the kubectl operator command is running. This fixes Failure when adding catalog on macOS #18, which is an issue with using the catalog add command on macOS with manifest list-based index images.

  • When using bundle injection use the presence of the database path label to determine if the image is an empty base index rather than hardcoding the known empty base index images. Also use the value from the database path label instead of hardcoding the database path.

  • Change display name and publisher labels to an alpha subdomain:

    • alpha.operators.operatorframework.io.index.display-name.v1
    • alpha.operators.operatorframework.io.index.publisher.v1
  • Adding an owner reference to the index image registry pod no longer requires an extra Update call to the API server

- When pulling images and image labels for an index image that is a
  manifest list, try all platforms rather than just the platform on
  which the `kubectl operator` command is running. This fixes an issue
  with using the `catalog add` command on macOS with manifest list-based
  index images

- When using bundle injection use the presence of the database path
  label to determine if the image is an empty base index rather than
  hardcoding the known empty base index images. Also use the value
  from the database path label instead of hardcoding the database path.

- Change display name and publisher labels to an alpha subdomain:

	* alpha.operators.operatorframework.io.index.display-name.v1
	* alpha.operators.operatorframework.io.index.publisher.v1

- Adding an owner reference to the index image registry pod no longer
  requires an extra Update call to the API server
@joelanford joelanford merged commit b333571 into operator-framework:main Sep 3, 2020
@joelanford joelanford deleted the improve-catalog-add branch September 3, 2020 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure when adding catalog on macOS
1 participant