openshift / backplane-tools

Manages the tools needed to interact with clusters
Apache License 2.0
4 stars 28 forks source link

add ocm-addons utility #48

Closed T0MASD closed 7 months ago

T0MASD commented 7 months ago

adds ocm-addons utility used to query ocm for cluster addons

 $ ocm addons cluster info e384570f-bdff-42... --no-color

    ID                               | EXTERNAL_ID                          | NAME         | ORGANIZATION_ID             | PRODUCT_ID | INSTALLED_ADDONS   | DNS_BASE_DOMAIN
    29chpfks35c... | e384570f-bdff-4225-9dd... | ai... | 1pwwsfazToamNe...| rosa       | managed-odh(ready) | qic7.p1.openshiftapps.com

test:

$  ./dist/backplane-tools_linux_amd64_v1/backplane-tools list available
The following tools are available for install:
- aws 2.15.20
- osdctl v0.25.0
- backplane-cli v0.1.23
- rosa v1.2.34
- yq v4.40.7
- butane v0.19.0
- backplane-tools v0.4.1
- oc 4.14.11
- ocm v0.1.72
- ocm-addons v0.7.16
- gcloud google-cloud-cli-464.0.0-linux-x86_64
[tomas@ugnis backplane-tools]$  ./dist/backplane-tools_linux_amd64_v1/backplane-tools install ocm-addons
Installing the following tools:
- ocm-addons v0.7.16

Installing ocm-addons
Successfully installed ocm-addons

WARNING: Detected that '/home/tomas/.local/bin/backplane/latest' is not present in $PATH: it's recommended '/home/tomas/.local/bin/backplane/latest' is added to your $PATH to utilize the tools provided by this application
openshift-ci[bot] commented 7 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: T0MASD

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](https://github.com/openshift/backplane-tools/blob/main/OWNERS)~~ [T0MASD] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
tnierman commented 7 months ago

/lgtm

openshift-ci[bot] commented 7 months ago

@T0MASD: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
T0MASD commented 7 months ago

/unhold