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

Add provider-list tool to dump the names of the required provider family packages #118

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

ulucinar
Copy link
Contributor

@ulucinar ulucinar commented Jun 8, 2023

Description of your changes

Depends on:

This PR adds the provider-list tool that can be used to dump the names of the required provider family (service-scoped provider) packages that satisfy:

  • All managed resources and Crossplane Compositions observed in a cluster, or
  • All Crossplane Compositions observed in the source tree of a Crossplane Configuration package.

Only managed resources belonging to one of the official monolithic providers with available families (i.e., upbound/provider-{aws,gcp,azure}) are considered.

Usage: provider-list --regorg="xpkg.upbound.io/upbound" --family-version=STRING <command>

Upbound provider families package dependency listing tool

Commands:
  local
  cluster

Flags:
  -h, --help                                Show context-sensitive help.
      --regorg="xpkg.upbound.io/upbound"    <registry host>/<organization> for the provider family packages.
      --family-version=STRING               Version of the provider family packages.

Run "provider-list <command> --help" for more information on a command.
Usage: provider-list local --regorg="xpkg.upbound.io/upbound" --family-version=STRING --path=STRING

Flags:
  -h, --help                                Show context-sensitive help.
      --regorg="xpkg.upbound.io/upbound"    <registry host>/<organization> for the provider family packages.
      --family-version=STRING               Version of the provider family packages.

      --path=STRING                         Source directory for the Crossplane Configuration package.
Usage: provider-list cluster --regorg="xpkg.upbound.io/upbound" --family-version=STRING

Flags:
  -h, --help                                Show context-sensitive help.
      --regorg="xpkg.upbound.io/upbound"    <registry host>/<organization> for the provider family packages.
      --family-version=STRING               Version of the provider family packages.

      --kubeconfig=STRING                   Path to the kubeconfig to use.

I have:

  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Both the local and cluster subcommands have been tested in tandem with crossplane/upjet#212 & #117. Sample runs are as follows:

> provider-list local --family-version v0.37.0 --path ./upbound/platform-ref-gcp/package

xpkg.upbound.io/upbound/provider-gcp-cloudplatform:v0.37.0
xpkg.upbound.io/upbound/provider-gcp-compute:v0.37.0
xpkg.upbound.io/upbound/provider-gcp-container:v0.37.0
xpkg.upbound.io/upbound/provider-gcp-servicenetworking:v0.37.0
xpkg.upbound.io/upbound/provider-gcp-sql:v0.37.0
> provider-list cluster --family-version v0.37.0

xpkg.upbound.io/upbound/provider-aws-rds:v0.37.0
xpkg.upbound.io/upbound/provider-gcp-cloudplatform:v0.37.0
xpkg.upbound.io/upbound/provider-gcp-compute:v0.37.0
xpkg.upbound.io/upbound/provider-gcp-servicenetworking:v0.37.0
xpkg.upbound.io/upbound/provider-gcp-sql:v0.37.0

…required

to migrate managed resources & compositions in a cluster or in a Configuration
package's source files.

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ulucinar LGTM!

@ulucinar ulucinar merged commit 63ffe05 into upbound:main Jun 9, 2023
@ulucinar ulucinar deleted the ssop-tool branch June 9, 2023 13:37
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.

2 participants