Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate User.groups field #12870

Merged
merged 1 commit into from
Feb 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/swagger-spec/oapi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -29566,7 +29566,7 @@
"items": {
"type": "string"
},
"description": "Groups are the groups that this user is a member of"
"description": "Groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User."
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion api/swagger-spec/openshift-openapi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -56446,7 +56446,7 @@
"type": "string"
},
"groups": {
"description": "Groups are the groups that this user is a member of",
"description": "Groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User.",
"type": "array",
"items": {
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion pkg/openapi/zz_generated.openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -23889,7 +23889,7 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
},
"groups": {
SchemaProps: spec.SchemaProps{
Description: "Groups are the groups that this user is a member of",
Description: "Groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
Expand Down
4 changes: 3 additions & 1 deletion pkg/user/api/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/user/api/v1/swagger_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var map_User = map[string]string{
"metadata": "Standard object's metadata.",
"fullName": "FullName is the full name of user",
"identities": "Identities are the identities associated with this user",
"groups": "Groups are the groups that this user is a member of",
"groups": "Groups specifies group names this user is a member of. This field is deprecated and will be removed in a future release. Instead, create a Group object containing the name of this User.",
}

func (User) SwaggerDoc() map[string]string {
Expand Down
4 changes: 3 additions & 1 deletion pkg/user/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ type User struct {
// Identities are the identities associated with this user
Identities []string `json:"identities" protobuf:"bytes,3,rep,name=identities"`

// Groups are the groups that this user is a member of
// Groups specifies group names this user is a member of.
// This field is deprecated and will be removed in a future release.
// Instead, create a Group object containing the name of this User.
Groups []string `json:"groups" protobuf:"bytes,4,rep,name=groups"`
}

Expand Down