v1beta1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package v1beta1 is a generated protocol buffer package.

It is generated from these files:

k8s.io/kubernetes/pkg/apis/apps/v1beta1/generated.proto

It has these top-level messages:

StatefulSet
StatefulSetList
StatefulSetSpec
StatefulSetStatus

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type StatefulSet

type StatefulSet struct {
	// +optional
	Metadata *k8s_io_kubernetes_pkg_api_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec defines the desired identities of pods in this set.
	// +optional
	Spec *StatefulSetSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Status is the current status of Pods in this StatefulSet. This data
	// may be out of date by some window of time.
	// +optional
	Status           *StatefulSetStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
	XXX_unrecognized []byte             `json:"-"`
}

StatefulSet represents a set of pods with consistent identities. Identities are defined as:

  • Network: A single stable DNS and hostname.
  • Storage: As many VolumeClaims as requested.

The StatefulSet guarantees that a given network identity will always map to the same storage identity.

func (*StatefulSet) Descriptor

func (*StatefulSet) Descriptor() ([]byte, []int)

func (*StatefulSet) GetMetadata

func (*StatefulSet) GetSpec

func (m *StatefulSet) GetSpec() *StatefulSetSpec

func (*StatefulSet) GetStatus

func (m *StatefulSet) GetStatus() *StatefulSetStatus

func (*StatefulSet) Marshal

func (m *StatefulSet) Marshal() (dAtA []byte, err error)

func (*StatefulSet) MarshalTo

func (m *StatefulSet) MarshalTo(dAtA []byte) (int, error)

func (*StatefulSet) ProtoMessage

func (*StatefulSet) ProtoMessage()

func (*StatefulSet) Reset

func (m *StatefulSet) Reset()

func (*StatefulSet) Size

func (m *StatefulSet) Size() (n int)

func (*StatefulSet) String

func (m *StatefulSet) String() string

func (*StatefulSet) Unmarshal

func (m *StatefulSet) Unmarshal(dAtA []byte) error

type StatefulSetList

type StatefulSetList struct {
	// +optional
	Metadata         *k8s_io_kubernetes_pkg_api_unversioned.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	Items            []*StatefulSet                                  `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
	XXX_unrecognized []byte                                          `json:"-"`
}

StatefulSetList is a collection of StatefulSets.

func (*StatefulSetList) Descriptor

func (*StatefulSetList) Descriptor() ([]byte, []int)

func (*StatefulSetList) GetItems

func (m *StatefulSetList) GetItems() []*StatefulSet

func (*StatefulSetList) GetMetadata

func (*StatefulSetList) Marshal

func (m *StatefulSetList) Marshal() (dAtA []byte, err error)

func (*StatefulSetList) MarshalTo

func (m *StatefulSetList) MarshalTo(dAtA []byte) (int, error)

func (*StatefulSetList) ProtoMessage

func (*StatefulSetList) ProtoMessage()

func (*StatefulSetList) Reset

func (m *StatefulSetList) Reset()

func (*StatefulSetList) Size

func (m *StatefulSetList) Size() (n int)

func (*StatefulSetList) String

func (m *StatefulSetList) String() string

func (*StatefulSetList) Unmarshal

func (m *StatefulSetList) Unmarshal(dAtA []byte) error

type StatefulSetSpec

type StatefulSetSpec struct {
	// Replicas is the desired number of replicas of the given Template.
	// These are replicas in the sense that they are instantiations of the
	// same Template, but individual replicas also have a consistent identity.
	// If unspecified, defaults to 1.
	// TODO: Consider a rename of this field.
	// +optional
	Replicas *int32 `protobuf:"varint,1,opt,name=replicas" json:"replicas,omitempty"`
	// Selector is a label query over pods that should match the replica count.
	// If empty, defaulted to labels on the pod template.
	// More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
	// +optional
	Selector *k8s_io_kubernetes_pkg_api_unversioned.LabelSelector `protobuf:"bytes,2,opt,name=selector" json:"selector,omitempty"`
	// Template is the object that describes the pod that will be created if
	// insufficient replicas are detected. Each pod stamped out by the StatefulSet
	// will fulfill this Template, but have a unique identity from the rest
	// of the StatefulSet.
	Template *k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec `protobuf:"bytes,3,opt,name=template" json:"template,omitempty"`
	// VolumeClaimTemplates is a list of claims that pods are allowed to reference.
	// The StatefulSet controller is responsible for mapping network identities to
	// claims in a way that maintains the identity of a pod. Every claim in
	// this list must have at least one matching (by name) volumeMount in one
	// container in the template. A claim in this list takes precedence over
	// any volumes in the template, with the same name.
	// TODO: Define the behavior if a claim already exists with the same name.
	// +optional
	VolumeClaimTemplates []*k8s_io_kubernetes_pkg_api_v1.PersistentVolumeClaim `protobuf:"bytes,4,rep,name=volumeClaimTemplates" json:"volumeClaimTemplates,omitempty"`
	// ServiceName is the name of the service that governs this StatefulSet.
	// This service must exist before the StatefulSet, and is responsible for
	// the network identity of the set. Pods get DNS/hostnames that follow the
	// pattern: pod-specific-string.serviceName.default.svc.cluster.local
	// where "pod-specific-string" is managed by the StatefulSet controller.
	ServiceName      *string `protobuf:"bytes,5,opt,name=serviceName" json:"serviceName,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

A StatefulSetSpec is the specification of a StatefulSet.

func (*StatefulSetSpec) Descriptor

func (*StatefulSetSpec) Descriptor() ([]byte, []int)

func (*StatefulSetSpec) GetReplicas

func (m *StatefulSetSpec) GetReplicas() int32

func (*StatefulSetSpec) GetSelector

func (*StatefulSetSpec) GetServiceName

func (m *StatefulSetSpec) GetServiceName() string

func (*StatefulSetSpec) GetTemplate

func (*StatefulSetSpec) GetVolumeClaimTemplates

func (m *StatefulSetSpec) GetVolumeClaimTemplates() []*k8s_io_kubernetes_pkg_api_v1.PersistentVolumeClaim

func (*StatefulSetSpec) Marshal

func (m *StatefulSetSpec) Marshal() (dAtA []byte, err error)

func (*StatefulSetSpec) MarshalTo

func (m *StatefulSetSpec) MarshalTo(dAtA []byte) (int, error)

func (*StatefulSetSpec) ProtoMessage

func (*StatefulSetSpec) ProtoMessage()

func (*StatefulSetSpec) Reset

func (m *StatefulSetSpec) Reset()

func (*StatefulSetSpec) Size

func (m *StatefulSetSpec) Size() (n int)

func (*StatefulSetSpec) String

func (m *StatefulSetSpec) String() string

func (*StatefulSetSpec) Unmarshal

func (m *StatefulSetSpec) Unmarshal(dAtA []byte) error

type StatefulSetStatus

type StatefulSetStatus struct {
	// most recent generation observed by this autoscaler.
	// +optional
	ObservedGeneration *int64 `protobuf:"varint,1,opt,name=observedGeneration" json:"observedGeneration,omitempty"`
	// Replicas is the number of actual replicas.
	Replicas         *int32 `protobuf:"varint,2,opt,name=replicas" json:"replicas,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

StatefulSetStatus represents the current state of a StatefulSet.

func (*StatefulSetStatus) Descriptor

func (*StatefulSetStatus) Descriptor() ([]byte, []int)

func (*StatefulSetStatus) GetObservedGeneration

func (m *StatefulSetStatus) GetObservedGeneration() int64

func (*StatefulSetStatus) GetReplicas

func (m *StatefulSetStatus) GetReplicas() int32

func (*StatefulSetStatus) Marshal

func (m *StatefulSetStatus) Marshal() (dAtA []byte, err error)

func (*StatefulSetStatus) MarshalTo

func (m *StatefulSetStatus) MarshalTo(dAtA []byte) (int, error)

func (*StatefulSetStatus) ProtoMessage

func (*StatefulSetStatus) ProtoMessage()

func (*StatefulSetStatus) Reset

func (m *StatefulSetStatus) Reset()

func (*StatefulSetStatus) Size

func (m *StatefulSetStatus) Size() (n int)

func (*StatefulSetStatus) String

func (m *StatefulSetStatus) String() string

func (*StatefulSetStatus) Unmarshal

func (m *StatefulSetStatus) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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