fix: address custom audience issue

This commit is contained in:
Sheen Capadngan
2024-11-28 13:32:40 +08:00
parent 84ff71fef2
commit 105eb70fd9
@@ -120,7 +120,8 @@ export const identityKubernetesAuthServiceFactory = ({
apiVersion: "authentication.k8s.io/v1", apiVersion: "authentication.k8s.io/v1",
kind: "TokenReview", kind: "TokenReview",
spec: { spec: {
token: serviceAccountJwt token: serviceAccountJwt,
...(identityKubernetesAuth.allowedAudience ? { audiences: [identityKubernetesAuth.allowedAudience] } : {})
} }
}, },
{ {