Skip to content

Reoder proto fields and remove reserved ones #596

Closed

Description

@rakyll

Field numbers in pkg/apis/v1alpha1/*.proto have gaps and reserved entries left over from removed fields. While the API is still v1alpha1, renumber the fields sequentially in declaration order and drop the reserved lines.

Affected messages:

  • TaskSpec (task.proto): reserved 1, 2, 4;, and fields are declared out of numeric order (8, 9, 3, 5, 6, 7, 10–13).
  • TaskStatus (task.proto): reserved 1, 2, 4, 5, 6;, and actor_uid = 23 after 15.
  • ResourcesSpec (common.proto): limits = 2 with no field 1.
  • WorkspaceSpec (workspace.proto): fields 3, 5, 6.
  • GitRepo (workspace.proto): fields 1, 2, 4, 5, 6.

We support no compatibility for v1alpha1, so we should reorder and remove the reserved fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions