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

added fetch machine pools #56

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

cambelem
Copy link
Contributor

Description

This feature introduces a new parameter for get Clusters to retrieve and add a list of machine pools for a cluster or list of clusters.

Key Features

  • Adds --fetch-machinepools to include machinepool information about the cluster(s).

Usage Examples:

Input:
ocm-support get clusters [org_id] --fetch-machinepools

Result:

[
  {
    "id": "1 ... a",
    "href": "/api/clusters_mgmt/v1/clusters/[cluster_id]",
    "name": "cluster-name1",
    "external_id": "1 ... c"
    "display_name": "cluster-name1",
    "subscription_id": "1 ... b",
    "state": "ready",
    "cloud_provider": "aws",
    "version": "4.16.0",
    "region_id": "us-east-1",
    "multi_az": true,
    "machine_pools": [
      {
        "id": "worker-1",
        "instance_type": "m5.2xlarge",
        "replicas": 0,
        "autoscaling": true,
        "max_replicas": 20,
        "min_replicas": 3
      },
      {
        "id": "worker-2",
        "instance_type": "m5.xlarge",
        "replicas": 3,
        "autoscaling": false
      }
    ]
    "product_id": "rosa",
    "managed": true,
    "console_url": "https://console-openshift-console.apps.cluster-name1.com",
    "creation_timestamp": "2024-07-01T01:00:00.000000Z",
  },
...
]

@cristianoveiga
Copy link
Collaborator

LGTM

@cristianoveiga cristianoveiga merged commit d37b17f into openshift-online:main Dec 19, 2024
1 check passed
@cambelem cambelem deleted the fetchMachinePools branch December 19, 2024 19:57
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