From 7adae8cda19998dde97ec652c94be4eec6da19c2 Mon Sep 17 00:00:00 2001 From: jmcshane Date: Thu, 29 Sep 2022 10:47:33 -0400 Subject: [PATCH] Add callout for clearing spec.serviceAccount alias from workload templates --- .../configure-pod-container/configure-service-account.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/en/docs/tasks/configure-pod-container/configure-service-account.md b/content/en/docs/tasks/configure-pod-container/configure-service-account.md index 6d4fcea5bc..ae366193cc 100644 --- a/content/en/docs/tasks/configure-pod-container/configure-service-account.md +++ b/content/en/docs/tasks/configure-pod-container/configure-service-account.md @@ -126,6 +126,12 @@ The service account has to exist at the time the pod is created, or it will be r You cannot update the service account of an already created pod. +{{< note >}} +The `spec.serviceAccount` field is a deprecated alias for `spec.serviceAccountName`. +If you want to remove the fields from a workload resource, set both fields to empty explicitly +on the [pod template](/docs/concepts/workloads/pods#pod-templates). +{{< /note >}} + You can clean up the service account from this example like this: ```shell