Skip to content

Commit a81ecd4

Browse files
Merge pull request #718 from openshift-cherrypick-robot/cherry-pick-717-to-release-4.21
DFBUGS-5069: [release-4.21] console: add proxy declaration for IAM service
2 parents 5d83353 + 879df36 commit a81ecd4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

console/console.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,18 @@ func GetConsolePluginProxy(serviceNamespace string) []consolev1.ConsolePluginPro
118118
},
119119
Authorization: consolev1.None,
120120
},
121+
{
122+
Alias: "iam",
123+
Endpoint: consolev1.ConsolePluginProxyEndpoint{
124+
Type: consolev1.ProxyTypeService,
125+
Service: &consolev1.ConsolePluginProxyServiceConfig{
126+
Name: "iam",
127+
Namespace: serviceNamespace,
128+
Port: 443,
129+
},
130+
},
131+
Authorization: consolev1.None,
132+
},
121133
}
122134
}
123135

@@ -145,7 +157,7 @@ func GetConsolePluginCR(consolePort int32, serviceNamespace string) *consolev1.C
145157
}
146158

147159
func GetBasePath(clusterVersion string) string {
148-
if strings.Contains(clusterVersion, "4.21") {
160+
if strings.Contains(clusterVersion, "4.22") {
149161
return COMPATIBILITY_BASE_PATH
150162
}
151163

0 commit comments

Comments
 (0)