fix: address custom audience issue

This commit is contained in:
Sheen Capadngan
2024-11-28 13:32:40 +08:00
parent 84ff71fef2
commit 105eb70fd9

View File

@@ -120,7 +120,8 @@ export const identityKubernetesAuthServiceFactory = ({
apiVersion: "authentication.k8s.io/v1",
kind: "TokenReview",
spec: {
token: serviceAccountJwt
token: serviceAccountJwt,
...(identityKubernetesAuth.allowedAudience ? { audiences: [identityKubernetesAuth.allowedAudience] } : {})
}
},
{