Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIVersion = "examples.com/v2" KindBackend = "Backend" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitzero"`
Spec BackendSpec `json:"spec"`
}
func (Backend) MarshalJSON ¶
func (*Backend) UnmarshalJSON ¶
type BackendSpec ¶
type BackendSpec struct {
// Img has a breaking change in that `image` has been renamed to `img`
Img string `json:"img"`
Replicas int32 `json:"replicas"`
// Meta differs from the previous version which only accepted a Labels field. Now it is within meta.
Meta Meta `json:"meta,omitzero"`
NodePort int `json:"nodePort,omitempty"`
ServicePort int `json:"port,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.