Skip to content

Commit 168a987

Browse files
authored
Add flag to enable extra attribute for JIT (#1066)
Signed-off-by: Shyr-Mei-Yang1 <[email protected]>
1 parent d71cab3 commit 168a987

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

internal/controller/operator/configmap.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ func generateAuthIdpConfigMap(clusterInfo *corev1.ConfigMap) ctrlcommon.Generate
448448
"IDENTITY_MGMT_URL": "https://platform-identity-management:4500",
449449
"MASTER_HOST": clusterInfo.Data["cluster_address"],
450450
"NODE_ENV": "production",
451+
"ENABLE_JIT_EXTRA_ATTR": "false",
451452
"AUDIT_ENABLED_IDPROVIDER": "false",
452453
"AUDIT_ENABLED_IDMGMT": "false",
453454
"AUDIT_DETAIL": "false",

internal/controller/operator/configmap_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ var _ = Describe("ConfigMap handling", func() {
529529
"IDENTITY_MGMT_URL": "https://platform-identity-management:4500",
530530
"MASTER_HOST": ibmcloudClusterInfo.Data["cluster_address"],
531531
"NODE_ENV": "production",
532+
"ENABLE_JIT_EXTRA_ATTR": "false",
532533
"AUDIT_ENABLED_IDPROVIDER": "false",
533534
"AUDIT_ENABLED_IDMGMT": "false",
534535
"AUDIT_DETAIL": "false",

internal/controller/operator/containers.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,17 @@ func buildIdentityManagerContainer(instance *operatorv1alpha1.Authentication, id
784784
Name: "SERVICE_NAME",
785785
Value: "platform-identity-management",
786786
},
787+
{
788+
Name: "ENABLE_JIT_EXTRA_ATTR",
789+
ValueFrom: &corev1.EnvVarSource{
790+
ConfigMapKeyRef: &corev1.ConfigMapKeySelector{
791+
LocalObjectReference: corev1.LocalObjectReference{
792+
Name: "platform-auth-idp",
793+
},
794+
Key: "ENABLE_JIT_EXTRA_ATTR",
795+
},
796+
},
797+
},
787798
{
788799
Name: "AUDIT_ENABLED",
789800
ValueFrom: &corev1.EnvVarSource{

0 commit comments

Comments
 (0)