v1alpha1

package
v0.0.0-...-6ab7dab Latest Latest
Warning

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

Go to latest
Published: May 16, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 implements the v1alpha1 version of podlabeler resources

These types serve as source file for client-go code generation. The types here also result in a client-go compatible client.

Index

Constants

View Source
const (
	GroupName = "podlabeler.k8s.carsonoid.net"
	V1alpha1  = "v1alpha1"

	PodLabelConfigResourceKind       = "PodLabelConfig"
	PodLabelConfigResourceName       = "podlabelconfig"
	PodLabelConfigResourceNamePlural = "podlabelconfigs"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	// SchemeGroupVersion is the group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: V1alpha1}

	PodLabelConfigCRDName = PodLabelConfigResourceNamePlural + "." + GroupName
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

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

func RegisterDeepCopies deprecated

func RegisterDeepCopies(scheme *runtime.Scheme) error

RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.

Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type PodLabelConfig

type PodLabelConfig struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec defines the config
	Spec PodLabelConfigSpec `json:"spec,omitempty"`
}

PodLabelConfig represents a set of labels to be applied to pods in a namespace

func (*PodLabelConfig) DeepCopy

func (in *PodLabelConfig) DeepCopy() *PodLabelConfig

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

func (*PodLabelConfig) DeepCopyInto

func (in *PodLabelConfig) DeepCopyInto(out *PodLabelConfig)

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

func (*PodLabelConfig) DeepCopyObject

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

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

type PodLabelConfigList

type PodLabelConfigList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata"`

	Items []PodLabelConfig `json:"items"`
}

PodLabelConfigList is a list of PodAssignmentRules

func (*PodLabelConfigList) DeepCopy

func (in *PodLabelConfigList) DeepCopy() *PodLabelConfigList

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

func (*PodLabelConfigList) DeepCopyInto

func (in *PodLabelConfigList) DeepCopyInto(out *PodLabelConfigList)

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

func (*PodLabelConfigList) DeepCopyObject

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

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

type PodLabelConfigSpec

type PodLabelConfigSpec struct {
	// Labels is a map of the labels to be applied to pods in the namespace
	Labels map[string]string `json:"labels,omitempty"`
}

PodLabelConfigSpec describes the labels to apply to all pods in a namespace

func (*PodLabelConfigSpec) DeepCopy

func (in *PodLabelConfigSpec) DeepCopy() *PodLabelConfigSpec

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

func (*PodLabelConfigSpec) DeepCopyInto

func (in *PodLabelConfigSpec) DeepCopyInto(out *PodLabelConfigSpec)

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