Skip to content

Commit d603216

Browse files
Merge pull request #9991 from barbacbd/CORS-4256
CORS-4256: Add PSC Endpoint to the installconfig
2 parents 6d77029 + 987bb3c commit d603216

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

data/data/install.openshift.io_installconfigs.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5835,6 +5835,21 @@ spec:
58355835
- name
58365836
type: object
58375837
type: object
5838+
endpoint:
5839+
description: Endpoint is the private service connect endpoint.
5840+
properties:
5841+
name:
5842+
description: Name contains the name of the private service
5843+
connect endpoint.
5844+
type: string
5845+
region:
5846+
description: |-
5847+
Region is the region where the endpoint resides.
5848+
When the region is empty, the location is assumed to be global.
5849+
type: string
5850+
required:
5851+
- name
5852+
type: object
58385853
network:
58395854
description: |-
58405855
Network specifies an existing VPC where the cluster should be created

pkg/types/gcp/platform.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ type DNSZone struct {
2727
Name string `json:"name"`
2828
}
2929

30+
// PSCEndpoint contains the information to describe a Private Service Connect
31+
// endpoint.
32+
type PSCEndpoint struct {
33+
// Name contains the name of the private service connect endpoint.
34+
Name string `json:"name"`
35+
36+
// Region is the region where the endpoint resides.
37+
// When the region is empty, the location is assumed to be global.
38+
// +optional
39+
Region string `json:"region,omitempty"`
40+
}
41+
3042
// Platform stores all the global configuration that all machinesets
3143
// use.
3244
type Platform struct {
@@ -86,6 +98,10 @@ type Platform struct {
8698
// +optional
8799
ServiceEndpoints []configv1.GCPServiceEndpoint `json:"serviceEndpoints,omitempty"`
88100

101+
// Endpoint is the private service connect endpoint.
102+
// +optional
103+
Endpoint *PSCEndpoint `json:"endpoint,omitempty"`
104+
89105
// DNS contains the dns zone information for the cluster. The DNS information can
90106
// only be supplied during Shared VPC (XPN) installs.
91107
// +optional

0 commit comments

Comments
 (0)