...

Package scheme

import "k8s.io/client-go/scale/scheme"
Overview
Index
Subdirectories

Overview ▾

Package scheme contains a runtime.Scheme to be used for serializing and deserializing different versions of Scale, and for converting in between them.

Constants

GroupName is the group name use in this package

const GroupName = autoscalingv1.GroupName

Variables

var (
    // SchemeBuilder points to a list of functions added to Scheme.
    SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
    // AddToScheme applies all the stored functions to the scheme.
    AddToScheme = SchemeBuilder.AddToScheme
)

SchemeGroupVersion is group version used to register these objects

var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type Scale

Scale represents a scaling request for a resource.

type Scale struct {
    metav1.TypeMeta
    // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
    // +optional
    metav1.ObjectMeta

    // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
    // +optional
    Spec ScaleSpec

    // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
    // +optional
    Status ScaleStatus
}

func (*Scale) DeepCopy

func (in *Scale) DeepCopy() *Scale

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

func (*Scale) DeepCopyInto

func (in *Scale) DeepCopyInto(out *Scale)

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

func (*Scale) DeepCopyObject

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

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

type ScaleSpec

ScaleSpec describes the attributes of a scale subresource.

type ScaleSpec struct {
    // desired number of instances for the scaled object.
    // +optional
    Replicas int32
}

func (*ScaleSpec) DeepCopy

func (in *ScaleSpec) DeepCopy() *ScaleSpec

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

func (*ScaleSpec) DeepCopyInto

func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec)

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

type ScaleStatus

ScaleStatus represents the current status of a scale subresource.

type ScaleStatus struct {
    // actual number of observed instances of the scaled object.
    Replicas int32

    // label query over pods that should match the replicas count.
    // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
    // +optional
    Selector *metav1.LabelSelector
}

func (*ScaleStatus) DeepCopy

func (in *ScaleStatus) DeepCopy() *ScaleStatus

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

func (*ScaleStatus) DeepCopyInto

func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus)

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

Subdirectories

Name Synopsis
..
appsint Package appsint contains the necessary scaffolding of the internal version of extensions as required by conversion logic.
appsv1beta1
appsv1beta2
autoscalingv1
extensionsint Package extensionsint contains the necessary scaffolding of the internal version of extensions as required by conversion logic.
extensionsv1beta1