From e7300a151c20cf4edf30e0b1e88b54c1579b5850 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Tue, 17 May 2022 20:10:27 +0530 Subject: [PATCH] Register and document annotations on Secret that relate to ServiceAccount (#32005) * Registered secret annotation Signed-off-by: Manish Kumar * Update content/en/docs/reference/labels-annotations-taints/_index.md Co-authored-by: Tim Bannister * Update content/en/docs/reference/labels-annotations-taints/_index.md Co-authored-by: Tim Bannister * Updated Secret type Co-authored-by: Tim Bannister --- .../labels-annotations-taints/_index.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/content/en/docs/reference/labels-annotations-taints/_index.md b/content/en/docs/reference/labels-annotations-taints/_index.md index e68cb668d3..6622c63941 100644 --- a/content/en/docs/reference/labels-annotations-taints/_index.md +++ b/content/en/docs/reference/labels-annotations-taints/_index.md @@ -334,6 +334,24 @@ Used on: Service Kubernetes uses this label to differentiate multiple Services. Used currently for `ELB`(Elastic Load Balancer) only. +### kubernetes.io/service-account.name + +Example: `kubernetes.io/service-account.name: "sa-name"` + +Used on: Secret + +This annotation records the {{< glossary_tooltip term_id="name" text="name">}} of the +ServiceAccount that the token (stored in the Secret of type `kubernetes.io/service-account-token`) represents. + +### kubernetes.io/service-account.uid + +Example: `kubernetes.io/service-account.uid: da68f9c6-9d26-11e7-b84e-002dc52800da` + +Used on: Secret + +This annotation records the {{< glossary_tooltip term_id="uid" text="unique ID" >}} of the +ServiceAccount that the token (stored in the Secret of type `kubernetes.io/service-account-token`) represents. + ### endpointslice.kubernetes.io/managed-by {#endpointslicekubernetesiomanaged-by} Example: `endpointslice.kubernetes.io/managed-by="controller"`