docs: add small documentation on getTags func

This commit is contained in:
Adrien Raffin-Caboisse 2022-05-16 11:16:07 +02:00
parent b511295349
commit ca71830963
No known key found for this signature in database
GPG Key ID: 7FB60532DEBEAD6A
1 changed files with 2 additions and 0 deletions

View File

@ -658,6 +658,8 @@ func (machine *Machine) toProto() *v1.Machine {
} }
// getTags will return the tags of the current 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( func getTags(
aclPolicy *ACLPolicy, aclPolicy *ACLPolicy,
machine Machine, machine Machine,