v1alpha1

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. AdmissionConfiguration and AdmissionPluginConfiguration are legacy static admission plugin configuration InitializerConfiguration and validatingWebhookConfiguration is for the new dynamic admission controller configuration. +groupName=admissionregistration.k8s.io

Package v1alpha1 is a generated protocol buffer package.

It is generated from these files:
	k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1alpha1/generated.proto

It has these top-level messages:
	Initializer
	InitializerConfiguration
	InitializerConfigurationList
	Rule

Index

Constants

View Source
const GroupName = "admissionregistration.k8s.io"

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)
View Source
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
)
View Source
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 Initializer

type Initializer struct {
	// Name is the identifier of the initializer. It will be added to the
	// object that needs to be initialized.
	// Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where
	// "alwayspullimages" is the name of the webhook, and kubernetes.io is the name
	// of the organization.
	// Required
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`

	// Rules describes what resources/subresources the initializer cares about.
	// The initializer cares about an operation if it matches _any_ Rule.
	// Rule.Resources must not include subresources.
	Rules []Rule `json:"rules,omitempty" protobuf:"bytes,2,rep,name=rules"`
}

Initializer describes the name and the failure policy of an initializer, and what resources it applies to.

func (*Initializer) DeepCopy

func (in *Initializer) DeepCopy() *Initializer

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

func (*Initializer) DeepCopyInto

func (in *Initializer) DeepCopyInto(out *Initializer)

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

func (*Initializer) Descriptor

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

func (*Initializer) Marshal

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

func (*Initializer) MarshalTo

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

func (*Initializer) ProtoMessage

func (*Initializer) ProtoMessage()

func (*Initializer) Reset

func (m *Initializer) Reset()

func (*Initializer) Size

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

func (*Initializer) String

func (this *Initializer) String() string

func (Initializer) SwaggerDoc

func (Initializer) SwaggerDoc() map[string]string

func (*Initializer) Unmarshal

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

type InitializerConfiguration

type InitializerConfiguration struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Initializers is a list of resources and their default initializers
	// Order-sensitive.
	// When merging multiple InitializerConfigurations, we sort the initializers
	// from different InitializerConfigurations by the name of the
	// InitializerConfigurations; the order of the initializers from the same
	// InitializerConfiguration is preserved.
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +optional
	Initializers []Initializer `json:"initializers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=initializers"`
}

InitializerConfiguration describes the configuration of initializers.

func (*InitializerConfiguration) DeepCopy

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

func (*InitializerConfiguration) DeepCopyInto

func (in *InitializerConfiguration) DeepCopyInto(out *InitializerConfiguration)

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

func (*InitializerConfiguration) DeepCopyObject

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

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

func (*InitializerConfiguration) Descriptor

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

func (*InitializerConfiguration) Marshal

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

func (*InitializerConfiguration) MarshalTo

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

func (*InitializerConfiguration) ProtoMessage

func (*InitializerConfiguration) ProtoMessage()

func (*InitializerConfiguration) Reset

func (m *InitializerConfiguration) Reset()

func (*InitializerConfiguration) Size

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

func (*InitializerConfiguration) String

func (this *InitializerConfiguration) String() string

func (InitializerConfiguration) SwaggerDoc

func (InitializerConfiguration) SwaggerDoc() map[string]string

func (*InitializerConfiguration) Unmarshal

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

type InitializerConfigurationList

type InitializerConfigurationList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// List of InitializerConfiguration.
	Items []InitializerConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"`
}

InitializerConfigurationList is a list of InitializerConfiguration.

func (*InitializerConfigurationList) DeepCopy

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

func (*InitializerConfigurationList) DeepCopyInto

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

func (*InitializerConfigurationList) DeepCopyObject

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

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

func (*InitializerConfigurationList) Descriptor

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

func (*InitializerConfigurationList) Marshal

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

func (*InitializerConfigurationList) MarshalTo

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

func (*InitializerConfigurationList) ProtoMessage

func (*InitializerConfigurationList) ProtoMessage()

func (*InitializerConfigurationList) Reset

func (m *InitializerConfigurationList) Reset()

func (*InitializerConfigurationList) Size

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

func (*InitializerConfigurationList) String

func (this *InitializerConfigurationList) String() string

func (InitializerConfigurationList) SwaggerDoc

func (InitializerConfigurationList) SwaggerDoc() map[string]string

func (*InitializerConfigurationList) Unmarshal

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

type Rule

type Rule struct {
	// APIGroups is the API groups the resources belong to. '*' is all groups.
	// If '*' is present, the length of the slice must be one.
	// Required.
	APIGroups []string `json:"apiGroups,omitempty" protobuf:"bytes,1,rep,name=apiGroups"`

	// APIVersions is the API versions the resources belong to. '*' is all versions.
	// If '*' is present, the length of the slice must be one.
	// Required.
	APIVersions []string `json:"apiVersions,omitempty" protobuf:"bytes,2,rep,name=apiVersions"`

	// Resources is a list of resources this rule applies to.
	//
	// For example:
	// 'pods' means pods.
	// 'pods/log' means the log subresource of pods.
	// '*' means all resources, but not subresources.
	// 'pods/*' means all subresources of pods.
	// '*/scale' means all scale subresources.
	// '*/*' means all resources and their subresources.
	//
	// If wildcard is present, the validation rule will ensure resources do not
	// overlap with each other.
	//
	// Depending on the enclosing object, subresources might not be allowed.
	// Required.
	Resources []string `json:"resources,omitempty" protobuf:"bytes,3,rep,name=resources"`
}

Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended to make sure that all the tuple expansions are valid.

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

func (*Rule) Descriptor

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

func (*Rule) Marshal

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

func (*Rule) MarshalTo

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

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) Reset

func (m *Rule) Reset()

func (*Rule) Size

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

func (*Rule) String

func (this *Rule) String() string

func (Rule) SwaggerDoc

func (Rule) SwaggerDoc() map[string]string

func (*Rule) Unmarshal

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

Jump to

Keyboard shortcuts

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