1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

OCPBUGS-74363: Remove region option for the GCP Private Service Connect Endpoint

** While the regional support is valid, we will not be using this in openshift. Regional support
requires that each api have its own endpoint. Only one api is associated with an endpoint, and managing
this access will be difficult and unnessary at this time.
This commit is contained in:
barbacbd
2026-01-23 09:19:39 -05:00
parent d228bea76c
commit 8066014ea0
3 changed files with 1 additions and 17 deletions

View File

@@ -6332,11 +6332,6 @@ spec:
description: Name contains the name of the private service
connect endpoint.
type: string
region:
description: |-
Region is the region where the endpoint resides.
When the region is empty, the location is assumed to be global.
type: string
required:
- name
type: object

View File

@@ -770,13 +770,7 @@ func GetPrivateServiceConnectEndpoint(client *compute.Service, project string, e
return nil, nil
}
var forwardingRules *compute.ForwardingRuleList
var forwardingRuleErr error
if endpoint.Region != "" {
forwardingRules, forwardingRuleErr = client.ForwardingRules.List(project, endpoint.Region).Do()
} else {
forwardingRules, forwardingRuleErr = client.GlobalForwardingRules.List(project).Do()
}
forwardingRules, forwardingRuleErr := client.GlobalForwardingRules.List(project).Do()
if forwardingRuleErr != nil {
return nil, fmt.Errorf("failed to list forwarding rules: %w", forwardingRuleErr)
}

View File

@@ -45,11 +45,6 @@ type PSCEndpoint struct {
// Name contains the name of the private service connect endpoint.
Name string `json:"name"`
// Region is the region where the endpoint resides.
// When the region is empty, the location is assumed to be global.
// +optional
Region string `json:"region,omitempty"`
// ClusterUseOnly should be set to true when the installer should use
// the public api endpoints and all cluster operators should use the
// api endpoint overrides. The value should be false when the installer