From ca718309630b2eae0df1f918be39ced23b83c176 Mon Sep 17 00:00:00 2001 From: Adrien Raffin-Caboisse Date: Mon, 16 May 2022 11:16:07 +0200 Subject: [PATCH] docs: add small documentation on getTags func --- machine.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/machine.go b/machine.go index ff5d4c28..7da09190 100644 --- a/machine.go +++ b/machine.go @@ -658,6 +658,8 @@ func (machine *Machine) toProto() *v1.Machine { } // getTags will return the tags of the current machine. +// Invalid tags are tags added by a user on a node, and that user doesn't have authority to add this tag. +// Valid tags are tags added by a user that is allowed in the ACL policy to add this tag. func getTags( aclPolicy *ACLPolicy, machine Machine,