From aa9dd33649aed80c7901893c1aaf88cf7f8a7e84 Mon Sep 17 00:00:00 2001 From: Bobby Radford Date: Wed, 23 Jun 2021 08:55:56 -0400 Subject: [PATCH] Add CISInstanceCRN to IBMCloudPlatformStatus CISInstanceCRN is the Cloud Resource Name (CRN) referencing the instance of IBM Cloud Internet Services that is setup to manage the DNS zone of the cluster's base domain. This can be guaranteed in an IPI/UPI installation since this configuration is a pre-requisite. Components like the Cluster Ingress Operator will use this CRN in API calls to update DNS records. --- config/v1/0000_10_config-operator_01_infrastructure.crd.yaml | 5 +++++ config/v1/types_infrastructure.go | 4 ++++ config/v1/zz_generated.swagger_doc_generated.go | 1 + 3 files changed, 10 insertions(+) diff --git a/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml b/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml index 9a7e291cdc5..828c2bdda77 100644 --- a/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml +++ b/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml @@ -396,6 +396,11 @@ spec: infrastructure provider. type: object properties: + cisInstanceCRN: + description: CISInstanceCRN is the CRN of the Cloud Internet + Services instance managing the DNS zone for the cluster's + base domain + type: string location: description: Location is where the cluster has been deployed type: string diff --git a/config/v1/types_infrastructure.go b/config/v1/types_infrastructure.go index 5ca08dc8361..90d7cbe59ba 100644 --- a/config/v1/types_infrastructure.go +++ b/config/v1/types_infrastructure.go @@ -517,6 +517,10 @@ type IBMCloudPlatformStatus struct { // ProviderType indicates the type of cluster that was created ProviderType IBMCloudProviderType `json:"providerType,omitempty"` + + // CISInstanceCRN is the CRN of the Cloud Internet Services instance managing + // the DNS zone for the cluster's base domain + CISInstanceCRN string `json:"cisInstanceCRN,omitempty"` } // KubevirtPlatformSpec holds the desired state of the kubevirt infrastructure provider. diff --git a/config/v1/zz_generated.swagger_doc_generated.go b/config/v1/zz_generated.swagger_doc_generated.go index 23bb4fbb8f3..26d341b1b68 100644 --- a/config/v1/zz_generated.swagger_doc_generated.go +++ b/config/v1/zz_generated.swagger_doc_generated.go @@ -840,6 +840,7 @@ var map_IBMCloudPlatformStatus = map[string]string{ "location": "Location is where the cluster has been deployed", "resourceGroupName": "ResourceGroupName is the Resource Group for new IBMCloud resources created for the cluster.", "providerType": "ProviderType indicates the type of cluster that was created", + "cisInstanceCRN": "CISInstanceCRN is the CRN of the Cloud Internet Services instance managing the DNS zone for the cluster's base domain", } func (IBMCloudPlatformStatus) SwaggerDoc() map[string]string {