v1alpha1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultZoneNodeLabel = "failure-domain.beta.kubernetes.io/zone"

DefaultZoneNodeLabel is the default node label for available zones

Variables

View Source
var (
	// AnnotationStatefulSetSHA1 is the annotation key for the StatefulSet SHA1
	AnnotationStatefulSetSHA1 = fmt.Sprintf("%s/statefulsetsha1", apis.GroupName)
	// AnnotationConfigSHA1 is the annotation key for the StatefulSet Config(ConfigMap/Secret) SHA1
	AnnotationConfigSHA1 = fmt.Sprintf("%s/configsha1", apis.GroupName)
	// AnnotationVersion is the annotation key for the StatefulSet version
	AnnotationVersion = fmt.Sprintf("%s/version", apis.GroupName)
	// AnnotationZones is an array of all zones
	AnnotationZones = fmt.Sprintf("%s/zones", apis.GroupName)
	// LabelAZIndex is the index of available zone
	LabelAZIndex = fmt.Sprintf("%s/az-index", apis.GroupName)
	// LabelAZName is the name of available zone
	LabelAZName = fmt.Sprintf("%s/az-name", apis.GroupName)
	// LabelPodOrdinal is the index of pod ordinal
	LabelPodOrdinal = fmt.Sprintf("%s/pod-ordinal", apis.GroupName)
)
View Source
var (

	// AddToScheme is used for schema registrations in the controller package
	// and also in the generated kube code
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: apis.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ExtendedStatefulSet

type ExtendedStatefulSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ExtendedStatefulSetSpec   `json:"spec,omitempty"`
	Status ExtendedStatefulSetStatus `json:"status,omitempty"`
}

ExtendedStatefulSet is the Schema for the extendedstatefulset API +k8s:openapi-gen=true

func (*ExtendedStatefulSet) CalculateStatefulSetSHA1

func (e *ExtendedStatefulSet) CalculateStatefulSetSHA1() (string, error)

CalculateStatefulSetSHA1 calculates the SHA1 of the JSON representation of the StatefulSet template

func (*ExtendedStatefulSet) DeepCopy

func (in *ExtendedStatefulSet) DeepCopy() *ExtendedStatefulSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtendedStatefulSet.

func (*ExtendedStatefulSet) DeepCopyInto

func (in *ExtendedStatefulSet) DeepCopyInto(out *ExtendedStatefulSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExtendedStatefulSet) DeepCopyObject

func (in *ExtendedStatefulSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExtendedStatefulSet) DesiredVersion

func (e *ExtendedStatefulSet) DesiredVersion(actualStatefulSet *v1beta2.StatefulSet) (int, error)

DesiredVersion calculates the desired version of the StatefulSet If the template of the StatefulSet has changed, the desired version is incremented

func (*ExtendedStatefulSet) GetMaxAvailableVersion

func (e *ExtendedStatefulSet) GetMaxAvailableVersion(versions map[int]bool) int

GetMaxAvailableVersion gets the greatest available version owned by the ExtendedStatefulSet

func (*ExtendedStatefulSet) ToBeDeleted

func (e *ExtendedStatefulSet) ToBeDeleted() bool

ToBeDeleted checks whether this ExtendedStatefulSet has been marked for deletion

type ExtendedStatefulSetList

type ExtendedStatefulSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ExtendedStatefulSet `json:"items"`
}

ExtendedStatefulSetList contains a list of ExtendedStatefulSet

func (*ExtendedStatefulSetList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtendedStatefulSetList.

func (*ExtendedStatefulSetList) DeepCopyInto

func (in *ExtendedStatefulSetList) DeepCopyInto(out *ExtendedStatefulSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExtendedStatefulSetList) DeepCopyObject

func (in *ExtendedStatefulSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExtendedStatefulSetSpec

type ExtendedStatefulSetSpec struct {
	// Indicates whether to update Pods in the StatefulSet when an env value or mount changes
	UpdateOnConfigChange bool `json:"updateOnConfigChange"`

	// Indicates the node label that a node locates
	ZoneNodeLabel string `json:"zoneNodeLabel,omitempty"`

	// Indicates the availability zones that the ExtendedStatefulSet needs to span
	Zones []string `json:"zones,omitempty"`

	// Defines a regular StatefulSet template
	Template v1beta2.StatefulSet `json:"template"`
}

ExtendedStatefulSetSpec defines the desired state of ExtendedStatefulSet

func (*ExtendedStatefulSetSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtendedStatefulSetSpec.

func (*ExtendedStatefulSetSpec) DeepCopyInto

func (in *ExtendedStatefulSetSpec) DeepCopyInto(out *ExtendedStatefulSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExtendedStatefulSetStatus

type ExtendedStatefulSetStatus struct {
	// Map of version number keys and values that keeps track of if version is running
	Versions map[int]bool `json:"versions"`
}

ExtendedStatefulSetStatus defines the observed state of ExtendedStatefulSet

func (*ExtendedStatefulSetStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtendedStatefulSetStatus.

func (*ExtendedStatefulSetStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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