Add missing comments for internal rbac/informer generation
@@ -22,10 +22,11 @@ import (
"strings"
rbacv1 "k8s.io/api/rbac/v1"
- "k8s.io/gengo/types"
"k8s.io/apimachinery/pkg/apis/meta/v1"
+ "k8s.io/gengo/types"
)
+// parseRBAC populates the RBAC rules for each annotated type.
func (b *APIs) parseRBAC() {
for _, c := range b.context.Order {
if IsRBAC(c) {
@@ -75,6 +76,7 @@ func parseRBACTag(tag string) rbacv1.PolicyRule {
return result
}
+// parseInfomers populates the informers to generate on each annotated type.
func (b *APIs) parseInformers() {
for _, c := range b.context.Order {
if IsInformer(c) {
