Skip to content

Commit

Permalink
docs: add small documentation on getTags func
Browse files Browse the repository at this point in the history
  • Loading branch information
restanrm committed May 16, 2022
1 parent b511295 commit ca71830
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ca71830

Please sign in to comment.