Skip to content

Commit 3682ec8

Browse files
Merge pull request #849 from stlaz/cacm_volume_name
CONSOLE-3912: OIDC: setup the volume name properly when custom CA is configured
2 parents 5ca09b0 + 6993c18 commit 3682ec8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/console/subresource/deployment/deployment.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func withConsoleVolumes(
245245
}
246246

247247
if authServerCAConfigMap != nil {
248-
volumeConfig = append(volumeConfig, authServerCAVolumeConfig())
248+
volumeConfig = append(volumeConfig, authServerCAVolumeConfig(authServerCAConfigMap.Name))
249249
}
250250

251251
if sessionSecret != nil {
@@ -507,9 +507,9 @@ func oauthServingCertVolumeConfig() volumeConfig {
507507
}
508508
}
509509

510-
func authServerCAVolumeConfig() volumeConfig {
510+
func authServerCAVolumeConfig(cmName string) volumeConfig {
511511
return volumeConfig{
512-
name: api.AuthServerCAFileName,
512+
name: cmName,
513513
path: api.AuthServerCAMountDir,
514514
readOnly: true,
515515
isConfigMap: true,

0 commit comments

Comments
 (0)