From 5dc901e1fc4f39a1347bde278236c259e97b5d79 Mon Sep 17 00:00:00 2001 From: Bobby Radford Date: Wed, 23 Jun 2021 09:30:22 -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 | 3 +++ config/v1/types_infrastructure.go | 4 ++++ config/v1/zz_generated.swagger_doc_generated.go | 1 + 3 files changed, 8 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 67ace21acb7..020b7d7db21 100644 --- a/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml +++ b/config/v1/0000_10_config-operator_01_infrastructure.crd.yaml @@ -268,6 +268,9 @@ spec: description: IBMCloud contains settings specific to the IBMCloud 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 {