Skip to content

Weird ordering in API type #10

@SchwarzM

Description

@SchwarzM

type RemoteArbiter struct {
// spec defines the desired state of RemoteArbiter
// +required
Spec RemoteArbiterSpec `json:"spec"`
metav1.TypeMeta `json:",inline"`
// metadata is a standard object metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty,omitzero"`
// status defines the observed state of RemoteArbiter
// +optional
Status RemoteArbiterStatus `json:"status,omitempty,omitzero"`
}

Normally any k8s object orders these fields

  • TypeMeta
  • ObjectMeta
  • Spec
  • Status

I do not have a clue on why this is done different here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions