Skip to content

Commit a55f248

Browse files
committed
CORS-4417: Add UniverseDomain field to GCPPlatformStatus
1 parent 1e68ae5 commit a55f248

5 files changed

Lines changed: 31 additions & 0 deletions

File tree

config/v1/types_infrastructure.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,20 @@ type GCPPlatformStatus struct {
822822
// +optional
823823
// +openshift:enable:FeatureGate=GCPCustomAPIEndpointsInstall
824824
// ServiceEndpoints []GCPServiceEndpoint `json:"serviceEndpoints,omitempty"`
825+
826+
// universeDomain is the GCP universe domain detected from credentials.
827+
// Populated by the installer for informational/observability purposes.
828+
// Components should NOT read this field - they should detect universe domain
829+
// from their own GCP credentials.
830+
//
831+
// When omitted, standard public GCP (googleapis.com) is assumed.
832+
//
833+
// universeDomain must be between 1 and 253 characters in length.
834+
//
835+
// +kubebuilder:validation:MinLength=1
836+
// +kubebuilder:validation:MaxLength=253
837+
// +optional
838+
UniverseDomain *string `json:"universeDomain,omitempty"`
825839
}
826840

827841
// GCPResourceLabel is a label to apply to GCP resources created for the cluster.

config/v1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/v1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7208,6 +7208,10 @@
72087208
"key"
72097209
],
72107210
"x-kubernetes-list-type": "map"
7211+
},
7212+
"universeDomain": {
7213+
"description": "universeDomain is the GCP universe domain detected from credentials. Populated by the installer for informational/observability purposes. Components should NOT read this field - they should detect universe domain from their own GCP credentials.\n\nWhen omitted, standard public GCP (googleapis.com) is assumed.\n\nuniverseDomain must be between 1 and 253 characters in length.",
7214+
"type": "string"
72117215
}
72127216
}
72137217
},

0 commit comments

Comments
 (0)