Skip to content
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

Bug 1727800: Icon Subresource for PackageManifest #990

Merged

Conversation

alecmerdler
Copy link
Member

@alecmerdler alecmerdler commented Aug 16, 2019

Description

Adds packagemanifests/icon subresource, which serves logo icons for a given PackageManifest.

Caching will be accomplished in this way:

  1. Console requests /packagemanifests/<pkg>/icon?resourceVersion=<pkg>.<channel>.<csvName>
  2. Server gets bundle from gRPC operator-registry and sends the image data with an ETag header
  3. Next time browser requests the icon endpoint, sends If-None-Match header containing the ETag
  4. Server checks the existence of ETag and sends HTTP 304
  5. When new ClusterServiceVersion is added to the package, console will change the resourceVersion in the request URL and therefore not send an If-None-Match header.
  6. User can always perform hard refresh or clear cache to retrieve fresh icons.

Resources Used

Implements #985
Addresses https://jira.coreos.com/browse/OLM-1211

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Aug 16, 2019
@openshift-ci-robot
Copy link
Collaborator

@alecmerdler: This pull request references a valid Bugzilla bug. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Bug 1727800: Icon Subresource for PackageManifest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 16, 2019
@dinhxuanvu
Copy link
Member

lgtm

@alecmerdler
Copy link
Member Author

@ecordell Is this good to merge?

@openshift-ci-robot
Copy link
Collaborator

@alecmerdler: This pull request references Bugzilla bug 1727800, which is valid.

In response to this:

Bug 1727800: Icon Subresource for PackageManifest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ecordell
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 20, 2019
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alecmerdler, ecordell

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [alecmerdler,ecordell]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 772aaa0 into operator-framework:master Aug 20, 2019
@openshift-ci-robot
Copy link
Collaborator

@alecmerdler: All pull requests linked via external trackers have merged. Bugzilla bug 1727800 has been moved to the MODIFIED state.

In response to this:

Bug 1727800: Icon Subresource for PackageManifest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants