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

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,