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

OCM-3259: Cluster datasource #489

Merged

Conversation

bardielle
Copy link
Member

No description provided.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 5, 2024

@bardielle: This pull request references OCM-3259 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from jneczypor and vkareh January 5, 2024 12:38
@bardielle bardielle force-pushed the cluster_datasource_new branch from 9740a86 to b9cc98e Compare January 5, 2024 20:32
@bardielle
Copy link
Member Author

/retest

@bardielle
Copy link
Member Author

bardielle commented Jan 7, 2024

The output:

terraform state show data.rhcs_cluster_rosa_classic.cluster
# data.rhcs_cluster_rosa_classic.cluster:
data "rhcs_cluster_rosa_classic" "cluster" {
    api_url                  = "https://api.terr-cluster.jjfj.p1.openshiftapps.com:6443"
    availability_zones       = [
        "us-east-2a",
        "us-east-2b",
        "us-east-2c",
    ]
    aws_account_id           = "765374464689"
    aws_private_link         = false
    aws_subnet_ids           = [
        "subnet-04c6fcc2ce591fb4b",
        "subnet-0afdd90afd6008ff0",
        "subnet-0a437951b8b316357",
        "subnet-00186cc30a718f17b",
        "subnet-003f004c0f5fbf8f1",
        "subnet-049bbc3d9ceef53b1",
    ]
    base_dns_domain          = "jjfj.p1.openshiftapps.com"
    ccs_enabled              = true
    cloud_region             = "us-east-2"
    console_url              = "https://console-openshift-console.apps.terr-cluster.jjfj.p1.openshiftapps.com"
    current_version          = "4.14.3"
    domain                   = "terr-cluster.jjfj.p1.openshiftapps.com"
    ec2_metadata_http_tokens = "optional"
    etcd_encryption          = false
    external_id              = "5f152b4e-973f-4533-8bb3-a7467aadb58a"
    host_prefix              = 23
    id                       = "28k1v2l8pofsbmor1injvng0d8i7ie3q"
    infra_id                 = "terr-cluster-btdh9"
    machine_cidr             = "10.0.0.0/16"
    multi_az                 = true
    name                     = "terr-cluster"
    ocm_properties           = {
        "rosa_creator_arn" = "arn:aws:iam::765374464689:user/dbarda"
        "rosa_tf_commit"   = "58eff632b045b4b41d4c9b8894d78a53569819fd"
        "rosa_tf_version"  = "1.5.0-prerelease.1"
    }
    pod_cidr                 = "10.128.0.0/14"
    private                  = false
    properties               = {
        "rosa_creator_arn" = "arn:aws:iam::765374464689:user/dbarda"
    }
    service_cidr             = "172.30.0.0/16"
    state                    = "ready"
    sts                      = {
        instance_iam_roles   = {
            master_role_arn = "arn:aws:iam::765374464689:role/terr-cluster-account-ControlPlane-Role"
            worker_role_arn = "arn:aws:iam::765374464689:role/terr-cluster-account-Worker-Role"
        }
        oidc_config_id       = "28k1v0scabl5i49c3otvmnb1qguaa7u6"
        oidc_endpoint_url    = "oidc-j5j5.s3.us-east-2.amazonaws.com"
        operator_role_prefix = "terr-cluster-operator"
        role_arn             = "arn:aws:iam::765374464689:role/terr-cluster-account-Installer-Role"
        support_role_arn     = "arn:aws:iam::765374464689:role/terr-cluster-account-Support-Role"
        thumbprint           = "9e99a48a9960b14926bb7f3b02e22da2b0ab7280"
    }
}

@bardielle bardielle force-pushed the cluster_datasource_new branch from b9cc98e to ab85cce Compare January 7, 2024 10:11
@nirarg
Copy link
Member

nirarg commented Jan 7, 2024

/lgtm
/approve

Copy link

openshift-ci bot commented Jan 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nirarg

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 label Jan 7, 2024
@bardielle bardielle changed the title OCM-3259: Cluster datasource [WIP] OCM-3259: Cluster datasource Jan 7, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 2204789 into terraform-redhat:main Jan 7, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants