Add missing comments in APF API types

This commit is contained in:
Mike Spreitzer
2021-06-24 13:51:31 -04:00
parent 132e3c4020
commit 179e48c4be
9 changed files with 37 additions and 10 deletions

View File

@@ -171,13 +171,17 @@ type PolicyRulesWithSubjects struct {
// ways of matching an originator; by user, group, or service account.
// +union
type Subject struct {
// `kind` indicates which one of the other fields is non-empty.
// Required
// +unionDiscriminator
Kind SubjectKind
// `user` matches based on username.
// +optional
User *UserSubject
// `group` matches based on user group name.
// +optional
Group *GroupSubject
// `serviceAccount` matches ServiceAccounts.
// +optional
ServiceAccount *ServiceAccountSubject
}