Repository navigation
Closed
Labels
area/compatibilitycomponent/restapikind/bugCategorizes issue or PR as related to a bug.kind/post-rebasepriority/P1
Milestone
Description
See kubernetes/kubernetes#43203
Origin has more resources that make use of that distinction than kube does
Need to resolve this before we release with protobuf storage enabled (or ship with controllers speaking protobuf)
Interesting fields
In this table, "Differentiated" indicates whether Origin treats nil and [] interchangeably.
| Field | Shipped | omitempty |
Nil-persistable | Differentiated | Fix | Notes |
|---|---|---|---|---|---|---|
v1.BrokerTemplateInstanceSpec.BindingIDs |
No | No | No | No | Add omitempty |
Enforced by generated internal→external conversion |
v1.BuildConfigSpec.Triggers |
Yes | No | No | No | False positive; Enforced by custom external→internal conversion | |
v1.BuildRequest.TriggeredBy |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.BuildSpec.TriggeredBy |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ClusterRole.Rules |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ClusterRoleBinding.Subjects |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ClusterRoleScopeRestriction.Namespaces |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ClusterRoleScopeRestriction.RoleNames |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.DeploymentDetails.Causes |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.EgressNetworkPolicySpec.Egress |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ExecNewPodHook.Command |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.GroupRestriction.Groups |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.GroupRestriction.Selectors |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.Image.DockerImageLayers |
Yes | No | Yes | No | TBD | None |
v1.ImageSignature.Content |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ImageSource.Paths |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.LocalSubjectAccessReview.GroupsSlice |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.PodSecurityPolicyReviewStatus.AllowedServiceAccounts |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.PolicyRule.APIGroups |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.PolicyRule.Resources |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.PolicyRule.Verbs |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ResourceAccessReviewResponse.GroupsSlice |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ResourceAccessReviewResponse.UsersSlice |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.Role.Rules |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.RoleBinding.Subjects |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.RouteStatus.Ingress |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ServiceAccountRestriction.Namespaces |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.ServiceAccountRestriction.ServiceAccounts |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.SubjectAccessReview.GroupsSlice |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.SubjectRulesReviewSpec.Groups |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.SubjectRulesReviewStatus.Rules |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.Template.Objects |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.TemplateInstanceStatus.Conditions |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.User.Groups |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.User.Identities |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.UserRestriction.Groups |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.UserRestriction.Users |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion | |
v1.UserRestriction.Selectors |
Yes | No | No | No | False positive; Enforced by generated internal→external conversion |
Metadata
Metadata
Assignees
Labels
area/compatibilitycomponent/restapikind/bugCategorizes issue or PR as related to a bug.kind/post-rebasepriority/P1
Activity
liggitt commentedon Mar 21, 2017
Security Context Constraints needs the protobuf wrapper fix to make this nullable
liggitt commentedon Mar 21, 2017
edit: nevermind, already has proto nullable fix
liggitt commentedon Mar 21, 2017
edit: nevermind, already has proto nullable fix
0xmichalis commentedon Mar 22, 2017
This seems like a problem for triggers because empty slice means "no triggers". Will DCs with "no triggers" end up being defaulted to ConfigChange once they do the first round trip with the new storage format?
liggitt commentedon Mar 22, 2017
triggers aliases the slice to a different type, and annotates it as
nullablefor protobuf, which does crazy things to make protobuf be able to distinguish between null and []0xmichalis commentedon Mar 22, 2017
Ok, that change makes sense now.
mfojtik commentedon Mar 24, 2017
@liggitt i guess we need to pick kubernetes/kubernetes#43422 for 1.6?
@sttts @ncdc can you pick this for the rebase?
ncdc commentedon Mar 24, 2017
8 remaining items
liggitt commentedon May 13, 2017
SCC Volumes field is still missing the nullable fix
liggitt commentedon May 13, 2017
here's the list of all slice fields in origin that do not specify omitempty. we need to review this list and:
[], even when nil (and figure out if that breaks protobuf for old clients)liggitt commentedon May 15, 2017
@bparees is it important for the build instantiate API to treat nil TriggeredBy fields differently than set-but-empty TriggeredBy fields?
bparees commentedon May 15, 2017
No, I don't think so. If it's set-but-empty we'd want to do the same thing as we're doing for nil here, add in the "manual cause" triggercause.
0xmichalis commentedon May 15, 2017
v1.DeploymentDetails.Causes is a slice of type []v1.DeploymentCause
doesn't care about nil vs empty
sdodson commentedon May 30, 2017
@ingvagabund relevant to your interests
liggitt commentedon Jun 20, 2017
fixed SCC.Volumes field, release noted the behavior change for other fields in openshift/openshift-docs#4021 (comment)