1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 04:40:56 +00:00

Add tags to CRTBs and PRTBs

This commit is contained in:
rmweir
2020-02-13 15:35:37 -07:00
parent f3c2d9d0e4
commit 2a265274d3

View File

@@ -119,11 +119,11 @@ type ProjectRoleTemplateBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
UserName string `json:"userName,omitempty" norman:"type=reference[user]"`
UserPrincipalName string `json:"userPrincipalName,omitempty" norman:"type=reference[principal]"`
GroupName string `json:"groupName,omitempty" norman:"type=reference[group]"`
GroupPrincipalName string `json:"groupPrincipalName,omitempty" norman:"type=reference[principal]"`
ProjectName string `json:"projectName,omitempty" norman:"required,type=reference[project]"`
UserName string `json:"userName,omitempty" norman:"noupdate,type=reference[user]"`
UserPrincipalName string `json:"userPrincipalName,omitempty" norman:"noupdate,type=reference[principal]"`
GroupName string `json:"groupName,omitempty" norman:"noupdate,type=reference[group]"`
GroupPrincipalName string `json:"groupPrincipalName,omitempty" norman:"noupdate,type=reference[principal]"`
ProjectName string `json:"projectName,omitempty" norman:"required,noupdate,type=reference[project]"`
RoleTemplateName string `json:"roleTemplateName,omitempty" norman:"required,type=reference[roleTemplate]"`
ServiceAccount string `json:"serviceAccount,omitempty" norman:"nocreate,noupdate"`
}
@@ -133,11 +133,11 @@ type ClusterRoleTemplateBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
UserName string `json:"userName,omitempty" norman:"type=reference[user]"`
UserPrincipalName string `json:"userPrincipalName,omitempty" norman:"type=reference[principal]"`
GroupName string `json:"groupName,omitempty" norman:"type=reference[group]"`
GroupPrincipalName string `json:"groupPrincipalName,omitempty" norman:"type=reference[principal]"`
ClusterName string `json:"clusterName,omitempty" norman:"required,type=reference[cluster]"`
UserName string `json:"userName,omitempty" norman:"noupdate,type=reference[user]"`
UserPrincipalName string `json:"userPrincipalName,omitempty" norman:"noupdate,type=reference[principal]"`
GroupName string `json:"groupName,omitempty" norman:"noupdate,type=reference[group]"`
GroupPrincipalName string `json:"groupPrincipalName,omitempty" norman:"noupdate,type=reference[principal]"`
ClusterName string `json:"clusterName,omitempty" norman:"required,noupdate,type=reference[cluster]"`
RoleTemplateName string `json:"roleTemplateName,omitempty" norman:"required,type=reference[roleTemplate]"`
}