v2

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 3 Imported by: 0

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,omitempty"`
	Spec              BackendSpec `json:"spec"`
}

func (Backend) MarshalJSON

func (backend Backend) MarshalJSON() ([]byte, error)

func (*Backend) UnmarshalJSON

func (backend *Backend) UnmarshalJSON(data []byte) error

type BackendSpec

type BackendSpec struct {
	// Image has a breaking change in that `image` has been renamed to `img`
	Image    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,omitempty"`
	NodePort    int  `json:"nodePort,omitempty"`
	ServicePort int  `json:"port,omitempty"`
}

type Meta

type Meta struct {
	Labels      map[string]string `json:"labels"`
	Annotations map[string]string `json:"annotations"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL