From b3c146f57cc9e4ad48dd280ba92332361972e478 Mon Sep 17 00:00:00 2001 From: Eric Stroczynski Date: Tue, 10 Aug 2021 06:07:51 -0700 Subject: [PATCH] chore(opm): note that whole dependency packages are added to the diff for now (#740) Signed-off-by: Eric Stroczynski Upstream-repository: operator-registry Upstream-commit: 4ea7a6b6da0d4b6fa2a8a73568bf0ed10a1cfed5 --- staging/operator-registry/cmd/opm/alpha/diff/cmd.go | 5 +++++ .../operator-registry/cmd/opm/alpha/diff/cmd.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/staging/operator-registry/cmd/opm/alpha/diff/cmd.go b/staging/operator-registry/cmd/opm/alpha/diff/cmd.go index d78b5fdee9..0bdbad9aab 100644 --- a/staging/operator-registry/cmd/opm/alpha/diff/cmd.go +++ b/staging/operator-registry/cmd/opm/alpha/diff/cmd.go @@ -56,6 +56,11 @@ in which case they are not included in the diff, or a new ref, in which case they are included. Dependencies provided by some catalog unknown to 'opm alpha diff' will not cause the command to error, but an error will occur if that catalog is not serving these dependencies at runtime. + +NOTE: for now, if any dependency exists, the entire dependency's package is added to the diff. +In the future, these packages will be pruned such that only the latest dependencies +satisfying a package version range or GVK, and their upgrade graph(s) to their latest +channel head(s), are included in the diff. `), Example: templates.Examples(` # Diff a catalog at some old state and latest state into a declarative config index. diff --git a/vendor/github.com/operator-framework/operator-registry/cmd/opm/alpha/diff/cmd.go b/vendor/github.com/operator-framework/operator-registry/cmd/opm/alpha/diff/cmd.go index d78b5fdee9..0bdbad9aab 100644 --- a/vendor/github.com/operator-framework/operator-registry/cmd/opm/alpha/diff/cmd.go +++ b/vendor/github.com/operator-framework/operator-registry/cmd/opm/alpha/diff/cmd.go @@ -56,6 +56,11 @@ in which case they are not included in the diff, or a new ref, in which case they are included. Dependencies provided by some catalog unknown to 'opm alpha diff' will not cause the command to error, but an error will occur if that catalog is not serving these dependencies at runtime. + +NOTE: for now, if any dependency exists, the entire dependency's package is added to the diff. +In the future, these packages will be pruned such that only the latest dependencies +satisfying a package version range or GVK, and their upgrade graph(s) to their latest +channel head(s), are included in the diff. `), Example: templates.Examples(` # Diff a catalog at some old state and latest state into a declarative config index.