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

Merge pull request #1042 from rmweir/add-binding-tags

Add tags to CRTBs and PRTBs
This commit is contained in:
rmweir
2020-02-20 10:21:36 -07:00
committed by GitHub

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]"`
}