Skip to content

4.10 downstream/upstream sync - 3/4 #205

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 15 commits into from
Oct 19, 2021

Conversation

njhale
Copy link
Contributor

@njhale njhale commented Oct 18, 2021

Third quarter of the commits in #196 (i.e. first half of #204)

Subset of:

joelanford and others added 15 commits October 18, 2021 11:11
…images (openshift#771)

Signed-off-by: Joe Lanford <[email protected]>
Upstream-repository: operator-registry
Upstream-commit: f5dcf40f01b8707194fdde07818c8b440ee010fa
…cle-manager. (#2337)

* Remove resolver dependency on registry.CatalogKey.

Signed-off-by: Ben Luddy <[email protected]>

* Remove hard resolver dependency on the gRPC registry client.

The most significant change is the introduction of a new Source
interface, which represents a single source of cache entries. In the
existing implementation, the cache was hardcoded to fetch content from
the operator-registry gRPC API on misses. This was a barrier to
off-cluster tools and other applications that should be able to
perform resolution without running a registry server.

A number of test fixtures were affected (for the better) because it's
now possible to directly configure the real Cache implementation to
retrieve test content without using of test doubles.

Signed-off-by: Ben Luddy <[email protected]>
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 9e4a778a44abb8705fb8ef95ad0bdaaebfa0ecfc
…338)

Update the root go.mod and remove the replace pin for
sigs.k8s.io/structured-merge-diff.

It looks like the "// pinned because no tag supports 1.18 yet" message
may have also been an artifact of removing the helm replace pin that was
previously in place.

Signed-off-by: timflannagan <[email protected]>
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 3eb0d7be413d7c185441cb3fc81dadb2b67706e7
* add timestamp field

Signed-off-by: Ish Shah <[email protected]>

* Add timestamp to scorecard test result

Signed-off-by: Ish Shah <[email protected]>

* Change type and struct

Signed-off-by: Ish Shah <[email protected]>

* Update pkg/apis/scorecard/v1alpha3/test_types.go

Co-authored-by: Joe Lanford <[email protected]>

* make manifests/generate;

Signed-off-by: Ish Shah <[email protected]>

* Update pkg/apis/scorecard/v1alpha3/test_types.go

Co-authored-by: Joe Lanford <[email protected]>

Co-authored-by: Joe Lanford <[email protected]>
Upstream-repository: api
Upstream-commit: 7d591fff8bd551160e51dedef17debbe52145019
* Add validation for Kind and APIVersion

Signed-off-by: Josef Karasek <[email protected]>

* Update pkg/validation/internal/csv.go

Co-authored-by: Eric Stroczynski <[email protected]>

Co-authored-by: Eric Stroczynski <[email protected]>
Upstream-repository: api
Upstream-commit: c9b1e7ef82b8081a3eb52c48d0ca9039f2e3a27e
…r packages. (#2340)

* Stop using the registry's Bundle proto type for resolution.

The resolver component does not care whether a given cache entry was
populated by use of the registry gRPC API, so it should ultimately be
possible to drop the "Bundle" field from cache entries altogether. For
now, catalog-operator's "step resolver" still depends on a Bundle
proto field in order to unpack inline (as opposed to image-based)
packages.

Signed-off-by: Ben Luddy <[email protected]>

* Remove exported resolver cache entry creation funcs.

NewOperatorForBundle and NewOperatorFromV1Alpha1CSV couple the
resolver cache package to the registry gRPC API and the
operators/v1alpha1 CSV API, respectively. They're effectively used
only by the resolver package, so they can be moved there and
unexported. The remaining calls to NewOperatorFromV1Alpha1CSV can be
extracted from core resolver logic into a Source implementation that
is responsible for the conversion from ClusterServiceVersion to
cache.Snapshot entry, and the remaining call to NewOperatorFromBundle
is used only by the Source implementation based on the registry gRPC
API.

Signed-off-by: Ben Luddy <[email protected]>
Upstream-repository: operator-lifecycle-manager
Upstream-commit: b849eb79c6fbb1c445ed3e9945e1668f6066ea6e
…ift#154)

* modified the controller-runtime and controller-tools versions

* ran vendor command and added files

* ran make manifests

Upstream-repository: api
Upstream-commit: a80624eab36b2005fa5d84c9b539bb4817e44daa
* .github/workflows: Separate out the e2e jobs into workflows

Update the .github/workflows/test-scripts.yml GH action workflow and
move all the jobs listed there into separate workflows. This allows us
to retest a single workflow at a time as a workaround to GH not allowing
you to retest individual jobs in a workflow.

Signed-off-by: timflannagan <[email protected]>

* .github/workflows: Add the 'ci' workflow name to all e2e-related jobs

Signed-off-by: timflannagan <[email protected]>
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 966ce43d5bde93848c45e1aaf4c6a5c110c37740
Add a badge that links to the olm-dev channel in the Kubernetes Slack
instance.

Signed-off-by: Nick Hale <[email protected]>
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 94af95a7580f45f6a0b45bd12d5aa37649b74a47
Signed-off-by: timflannagan <[email protected]>
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 864b58ddc63742b53ecdf21f463e13ac2ce9de7e
…file (openshift#773)

Signed-off-by: Eric Stroczynski <[email protected]>
Upstream-repository: operator-registry
Upstream-commit: 1c8557637731bbe28166d854ea8a16fd86c2995e
* .github/workflows: Don't run CI checks for markdown-only updates

Update the ci-prefixed workflows and ensure that CI isn't running when
only markdown files are updated.

Signed-off-by: timflannagan <[email protected]>

* .github/workflows: Use paths-ignore instead of paths for ignoring certain files/paths

Signed-off-by: timflannagan <[email protected]>

* .github/workflows: Remove the need to ignore the root doc/ path

The '**/*.md' filter pattern [1] should ignore _all_ markdown extension
files anywhere in the repository.

[1] https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#patterns-to-match-file-paths

Signed-off-by: timflannagan <[email protected]>
Upstream-repository: operator-lifecycle-manager
Upstream-commit: 2fd014019ca8cc86ae859da797e814b72c299257
Signed-off-by: Eric Stroczynski <[email protected]>
Upstream-repository: operator-registry
Upstream-commit: a3253eb2fa97be52883af0a0c195d4a95500c04a
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 18, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: njhale

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:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 18, 2021
@njhale
Copy link
Contributor Author

njhale commented Oct 18, 2021

/retest

@timflannagan
Copy link
Contributor

/retest
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 19, 2021
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 76afb08 into openshift:master Oct 19, 2021
timflannagan pushed a commit to timflannagan/operator-framework-olm that referenced this pull request Dec 14, 2021
Upstream-repository: api
Upstream-commit: 7f43803893b09e6160fbaffdb2e32e0c269005ff
timflannagan pushed a commit to timflannagan/operator-framework-olm that referenced this pull request Dec 15, 2021
Upstream-repository: api
Upstream-commit: 7f43803893b09e6160fbaffdb2e32e0c269005ff
timflannagan pushed a commit to timflannagan/operator-framework-olm that referenced this pull request Dec 15, 2021
Upstream-repository: api
Upstream-commit: 7f43803893b09e6160fbaffdb2e32e0c269005ff
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 4, 2022
Upstream-repository: api
Upstream-commit: 7f43803893b09e6160fbaffdb2e32e0c269005ff
perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 4, 2022
Upstream-repository: api
Upstream-commit: 7f43803893b09e6160fbaffdb2e32e0c269005ff
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants