Documentation ¶
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type PodPreset
- func (in *PodPreset) DeepCopy() *PodPreset
- func (in *PodPreset) DeepCopyInto(out *PodPreset)
- func (in *PodPreset) DeepCopyObject() runtime.Object
- func (*PodPreset) Descriptor() ([]byte, []int)
- func (m *PodPreset) Marshal() (dAtA []byte, err error)
- func (m *PodPreset) MarshalTo(dAtA []byte) (int, error)
- func (m *PodPreset) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PodPreset) ProtoMessage()
- func (m *PodPreset) Reset()
- func (m *PodPreset) Size() (n int)
- func (this *PodPreset) String() string
- func (PodPreset) SwaggerDoc() map[string]string
- func (m *PodPreset) Unmarshal(dAtA []byte) error
- func (m *PodPreset) XXX_DiscardUnknown()
- func (m *PodPreset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodPreset) XXX_Merge(src proto.Message)
- func (m *PodPreset) XXX_Size() int
- func (m *PodPreset) XXX_Unmarshal(b []byte) error
- type PodPresetList
- func (in *PodPresetList) DeepCopy() *PodPresetList
- func (in *PodPresetList) DeepCopyInto(out *PodPresetList)
- func (in *PodPresetList) DeepCopyObject() runtime.Object
- func (*PodPresetList) Descriptor() ([]byte, []int)
- func (m *PodPresetList) Marshal() (dAtA []byte, err error)
- func (m *PodPresetList) MarshalTo(dAtA []byte) (int, error)
- func (m *PodPresetList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PodPresetList) ProtoMessage()
- func (m *PodPresetList) Reset()
- func (m *PodPresetList) Size() (n int)
- func (this *PodPresetList) String() string
- func (PodPresetList) SwaggerDoc() map[string]string
- func (m *PodPresetList) Unmarshal(dAtA []byte) error
- func (m *PodPresetList) XXX_DiscardUnknown()
- func (m *PodPresetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodPresetList) XXX_Merge(src proto.Message)
- func (m *PodPresetList) XXX_Size() int
- func (m *PodPresetList) XXX_Unmarshal(b []byte) error
- type PodPresetSpec
- func (in *PodPresetSpec) DeepCopy() *PodPresetSpec
- func (in *PodPresetSpec) DeepCopyInto(out *PodPresetSpec)
- func (*PodPresetSpec) Descriptor() ([]byte, []int)
- func (m *PodPresetSpec) Marshal() (dAtA []byte, err error)
- func (m *PodPresetSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *PodPresetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PodPresetSpec) ProtoMessage()
- func (m *PodPresetSpec) Reset()
- func (m *PodPresetSpec) Size() (n int)
- func (this *PodPresetSpec) String() string
- func (PodPresetSpec) SwaggerDoc() map[string]string
- func (m *PodPresetSpec) Unmarshal(dAtA []byte) error
- func (m *PodPresetSpec) XXX_DiscardUnknown()
- func (m *PodPresetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodPresetSpec) XXX_Merge(src proto.Message)
- func (m *PodPresetSpec) XXX_Size() int
- func (m *PodPresetSpec) XXX_Unmarshal(b []byte) error
Constants ¶
const GroupName = "settings.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") )
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type PodPreset ¶
type PodPreset struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // +optional Spec PodPresetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` }
PodPreset is a policy resource that defines additional runtime requirements for a Pod.
func (*PodPreset) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPreset.
func (*PodPreset) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodPreset) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PodPreset) Descriptor ¶
func (*PodPreset) MarshalToSizedBuffer ¶ added in v0.16.4
func (*PodPreset) ProtoMessage ¶
func (*PodPreset) ProtoMessage()
func (PodPreset) SwaggerDoc ¶
func (*PodPreset) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *PodPreset) XXX_DiscardUnknown()
func (*PodPreset) XXX_Marshal ¶ added in v0.16.4
func (*PodPreset) XXX_Unmarshal ¶ added in v0.16.4
type PodPresetList ¶
type PodPresetList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of schema objects. Items []PodPreset `json:"items" protobuf:"bytes,2,rep,name=items"` }
PodPresetList is a list of PodPreset objects.
func (*PodPresetList) DeepCopy ¶
func (in *PodPresetList) DeepCopy() *PodPresetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetList.
func (*PodPresetList) DeepCopyInto ¶
func (in *PodPresetList) DeepCopyInto(out *PodPresetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodPresetList) DeepCopyObject ¶
func (in *PodPresetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PodPresetList) Descriptor ¶
func (*PodPresetList) Descriptor() ([]byte, []int)
func (*PodPresetList) Marshal ¶
func (m *PodPresetList) Marshal() (dAtA []byte, err error)
func (*PodPresetList) MarshalToSizedBuffer ¶ added in v0.16.4
func (m *PodPresetList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PodPresetList) ProtoMessage ¶
func (*PodPresetList) ProtoMessage()
func (*PodPresetList) Reset ¶
func (m *PodPresetList) Reset()
func (*PodPresetList) Size ¶
func (m *PodPresetList) Size() (n int)
func (*PodPresetList) String ¶
func (this *PodPresetList) String() string
func (PodPresetList) SwaggerDoc ¶
func (PodPresetList) SwaggerDoc() map[string]string
func (*PodPresetList) Unmarshal ¶
func (m *PodPresetList) Unmarshal(dAtA []byte) error
func (*PodPresetList) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *PodPresetList) XXX_DiscardUnknown()
func (*PodPresetList) XXX_Marshal ¶ added in v0.16.4
func (m *PodPresetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PodPresetList) XXX_Merge ¶ added in v0.16.4
func (m *PodPresetList) XXX_Merge(src proto.Message)
func (*PodPresetList) XXX_Size ¶ added in v0.16.4
func (m *PodPresetList) XXX_Size() int
func (*PodPresetList) XXX_Unmarshal ¶ added in v0.16.4
func (m *PodPresetList) XXX_Unmarshal(b []byte) error
type PodPresetSpec ¶
type PodPresetSpec struct { // Selector is a label query over a set of resources, in this case pods. // Required. Selector metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,1,opt,name=selector"` // Env defines the collection of EnvVar to inject into containers. // +optional Env []v1.EnvVar `json:"env,omitempty" protobuf:"bytes,2,rep,name=env"` // EnvFrom defines the collection of EnvFromSource to inject into containers. // +optional EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty" protobuf:"bytes,3,rep,name=envFrom"` // Volumes defines the collection of Volume to inject into the pod. // +optional Volumes []v1.Volume `json:"volumes,omitempty" protobuf:"bytes,4,rep,name=volumes"` // VolumeMounts defines the collection of VolumeMount to inject into containers. // +optional VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,5,rep,name=volumeMounts"` }
PodPresetSpec is a description of a pod preset.
func (*PodPresetSpec) DeepCopy ¶
func (in *PodPresetSpec) DeepCopy() *PodPresetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetSpec.
func (*PodPresetSpec) DeepCopyInto ¶
func (in *PodPresetSpec) DeepCopyInto(out *PodPresetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodPresetSpec) Descriptor ¶
func (*PodPresetSpec) Descriptor() ([]byte, []int)
func (*PodPresetSpec) Marshal ¶
func (m *PodPresetSpec) Marshal() (dAtA []byte, err error)
func (*PodPresetSpec) MarshalToSizedBuffer ¶ added in v0.16.4
func (m *PodPresetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PodPresetSpec) ProtoMessage ¶
func (*PodPresetSpec) ProtoMessage()
func (*PodPresetSpec) Reset ¶
func (m *PodPresetSpec) Reset()
func (*PodPresetSpec) Size ¶
func (m *PodPresetSpec) Size() (n int)
func (*PodPresetSpec) String ¶
func (this *PodPresetSpec) String() string
func (PodPresetSpec) SwaggerDoc ¶
func (PodPresetSpec) SwaggerDoc() map[string]string
func (*PodPresetSpec) Unmarshal ¶
func (m *PodPresetSpec) Unmarshal(dAtA []byte) error
func (*PodPresetSpec) XXX_DiscardUnknown ¶ added in v0.16.4
func (m *PodPresetSpec) XXX_DiscardUnknown()
func (*PodPresetSpec) XXX_Marshal ¶ added in v0.16.4
func (m *PodPresetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PodPresetSpec) XXX_Merge ¶ added in v0.16.4
func (m *PodPresetSpec) XXX_Merge(src proto.Message)
func (*PodPresetSpec) XXX_Size ¶ added in v0.16.4
func (m *PodPresetSpec) XXX_Size() int
func (*PodPresetSpec) XXX_Unmarshal ¶ added in v0.16.4
func (m *PodPresetSpec) XXX_Unmarshal(b []byte) error