v1alpha1

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2017 License: Apache-2.0 Imports: 17 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 ExternalAdmissionHookConfiguration 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/pkg/apis/admissionregistration/v1alpha1/generated.proto

It has these top-level messages:
	AdmissionHookClientConfig
	ExternalAdmissionHook
	ExternalAdmissionHookConfiguration
	ExternalAdmissionHookConfigurationList
	Initializer
	InitializerConfiguration
	InitializerConfigurationList
	Rule
	RuleWithOperations
	ServiceReference

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.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_admissionregistration_AdmissionHookClientConfig_To_v1alpha1_AdmissionHookClientConfig

func Convert_admissionregistration_AdmissionHookClientConfig_To_v1alpha1_AdmissionHookClientConfig(in *admissionregistration.AdmissionHookClientConfig, out *AdmissionHookClientConfig, s conversion.Scope) error

Convert_admissionregistration_AdmissionHookClientConfig_To_v1alpha1_AdmissionHookClientConfig is an autogenerated conversion function.

func Convert_admissionregistration_ExternalAdmissionHookConfigurationList_To_v1alpha1_ExternalAdmissionHookConfigurationList

func Convert_admissionregistration_ExternalAdmissionHookConfigurationList_To_v1alpha1_ExternalAdmissionHookConfigurationList(in *admissionregistration.ExternalAdmissionHookConfigurationList, out *ExternalAdmissionHookConfigurationList, s conversion.Scope) error

Convert_admissionregistration_ExternalAdmissionHookConfigurationList_To_v1alpha1_ExternalAdmissionHookConfigurationList is an autogenerated conversion function.

func Convert_admissionregistration_ExternalAdmissionHookConfiguration_To_v1alpha1_ExternalAdmissionHookConfiguration

func Convert_admissionregistration_ExternalAdmissionHookConfiguration_To_v1alpha1_ExternalAdmissionHookConfiguration(in *admissionregistration.ExternalAdmissionHookConfiguration, out *ExternalAdmissionHookConfiguration, s conversion.Scope) error

Convert_admissionregistration_ExternalAdmissionHookConfiguration_To_v1alpha1_ExternalAdmissionHookConfiguration is an autogenerated conversion function.

func Convert_admissionregistration_ExternalAdmissionHook_To_v1alpha1_ExternalAdmissionHook

func Convert_admissionregistration_ExternalAdmissionHook_To_v1alpha1_ExternalAdmissionHook(in *admissionregistration.ExternalAdmissionHook, out *ExternalAdmissionHook, s conversion.Scope) error

Convert_admissionregistration_ExternalAdmissionHook_To_v1alpha1_ExternalAdmissionHook is an autogenerated conversion function.

func Convert_admissionregistration_InitializerConfigurationList_To_v1alpha1_InitializerConfigurationList

func Convert_admissionregistration_InitializerConfigurationList_To_v1alpha1_InitializerConfigurationList(in *admissionregistration.InitializerConfigurationList, out *InitializerConfigurationList, s conversion.Scope) error

Convert_admissionregistration_InitializerConfigurationList_To_v1alpha1_InitializerConfigurationList is an autogenerated conversion function.

func Convert_admissionregistration_InitializerConfiguration_To_v1alpha1_InitializerConfiguration

func Convert_admissionregistration_InitializerConfiguration_To_v1alpha1_InitializerConfiguration(in *admissionregistration.InitializerConfiguration, out *InitializerConfiguration, s conversion.Scope) error

Convert_admissionregistration_InitializerConfiguration_To_v1alpha1_InitializerConfiguration is an autogenerated conversion function.

func Convert_admissionregistration_Initializer_To_v1alpha1_Initializer

func Convert_admissionregistration_Initializer_To_v1alpha1_Initializer(in *admissionregistration.Initializer, out *Initializer, s conversion.Scope) error

Convert_admissionregistration_Initializer_To_v1alpha1_Initializer is an autogenerated conversion function.

func Convert_admissionregistration_RuleWithOperations_To_v1alpha1_RuleWithOperations

func Convert_admissionregistration_RuleWithOperations_To_v1alpha1_RuleWithOperations(in *admissionregistration.RuleWithOperations, out *RuleWithOperations, s conversion.Scope) error

Convert_admissionregistration_RuleWithOperations_To_v1alpha1_RuleWithOperations is an autogenerated conversion function.

func Convert_admissionregistration_Rule_To_v1alpha1_Rule

func Convert_admissionregistration_Rule_To_v1alpha1_Rule(in *admissionregistration.Rule, out *Rule, s conversion.Scope) error

Convert_admissionregistration_Rule_To_v1alpha1_Rule is an autogenerated conversion function.

func Convert_admissionregistration_ServiceReference_To_v1alpha1_ServiceReference

func Convert_admissionregistration_ServiceReference_To_v1alpha1_ServiceReference(in *admissionregistration.ServiceReference, out *ServiceReference, s conversion.Scope) error

Convert_admissionregistration_ServiceReference_To_v1alpha1_ServiceReference is an autogenerated conversion function.

func Convert_v1alpha1_AdmissionHookClientConfig_To_admissionregistration_AdmissionHookClientConfig

func Convert_v1alpha1_AdmissionHookClientConfig_To_admissionregistration_AdmissionHookClientConfig(in *AdmissionHookClientConfig, out *admissionregistration.AdmissionHookClientConfig, s conversion.Scope) error

Convert_v1alpha1_AdmissionHookClientConfig_To_admissionregistration_AdmissionHookClientConfig is an autogenerated conversion function.

func Convert_v1alpha1_ExternalAdmissionHookConfigurationList_To_admissionregistration_ExternalAdmissionHookConfigurationList

func Convert_v1alpha1_ExternalAdmissionHookConfigurationList_To_admissionregistration_ExternalAdmissionHookConfigurationList(in *ExternalAdmissionHookConfigurationList, out *admissionregistration.ExternalAdmissionHookConfigurationList, s conversion.Scope) error

Convert_v1alpha1_ExternalAdmissionHookConfigurationList_To_admissionregistration_ExternalAdmissionHookConfigurationList is an autogenerated conversion function.

func Convert_v1alpha1_ExternalAdmissionHookConfiguration_To_admissionregistration_ExternalAdmissionHookConfiguration

func Convert_v1alpha1_ExternalAdmissionHookConfiguration_To_admissionregistration_ExternalAdmissionHookConfiguration(in *ExternalAdmissionHookConfiguration, out *admissionregistration.ExternalAdmissionHookConfiguration, s conversion.Scope) error

Convert_v1alpha1_ExternalAdmissionHookConfiguration_To_admissionregistration_ExternalAdmissionHookConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_ExternalAdmissionHook_To_admissionregistration_ExternalAdmissionHook

func Convert_v1alpha1_ExternalAdmissionHook_To_admissionregistration_ExternalAdmissionHook(in *ExternalAdmissionHook, out *admissionregistration.ExternalAdmissionHook, s conversion.Scope) error

Convert_v1alpha1_ExternalAdmissionHook_To_admissionregistration_ExternalAdmissionHook is an autogenerated conversion function.

func Convert_v1alpha1_InitializerConfigurationList_To_admissionregistration_InitializerConfigurationList

func Convert_v1alpha1_InitializerConfigurationList_To_admissionregistration_InitializerConfigurationList(in *InitializerConfigurationList, out *admissionregistration.InitializerConfigurationList, s conversion.Scope) error

Convert_v1alpha1_InitializerConfigurationList_To_admissionregistration_InitializerConfigurationList is an autogenerated conversion function.

func Convert_v1alpha1_InitializerConfiguration_To_admissionregistration_InitializerConfiguration

func Convert_v1alpha1_InitializerConfiguration_To_admissionregistration_InitializerConfiguration(in *InitializerConfiguration, out *admissionregistration.InitializerConfiguration, s conversion.Scope) error

Convert_v1alpha1_InitializerConfiguration_To_admissionregistration_InitializerConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_Initializer_To_admissionregistration_Initializer

func Convert_v1alpha1_Initializer_To_admissionregistration_Initializer(in *Initializer, out *admissionregistration.Initializer, s conversion.Scope) error

Convert_v1alpha1_Initializer_To_admissionregistration_Initializer is an autogenerated conversion function.

func Convert_v1alpha1_RuleWithOperations_To_admissionregistration_RuleWithOperations

func Convert_v1alpha1_RuleWithOperations_To_admissionregistration_RuleWithOperations(in *RuleWithOperations, out *admissionregistration.RuleWithOperations, s conversion.Scope) error

Convert_v1alpha1_RuleWithOperations_To_admissionregistration_RuleWithOperations is an autogenerated conversion function.

func Convert_v1alpha1_Rule_To_admissionregistration_Rule

func Convert_v1alpha1_Rule_To_admissionregistration_Rule(in *Rule, out *admissionregistration.Rule, s conversion.Scope) error

Convert_v1alpha1_Rule_To_admissionregistration_Rule is an autogenerated conversion function.

func Convert_v1alpha1_ServiceReference_To_admissionregistration_ServiceReference

func Convert_v1alpha1_ServiceReference_To_admissionregistration_ServiceReference(in *ServiceReference, out *admissionregistration.ServiceReference, s conversion.Scope) error

Convert_v1alpha1_ServiceReference_To_admissionregistration_ServiceReference is an autogenerated conversion function.

func DeepCopy_v1alpha1_AdmissionHookClientConfig

func DeepCopy_v1alpha1_AdmissionHookClientConfig(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_AdmissionHookClientConfig is an autogenerated deepcopy function.

func DeepCopy_v1alpha1_ExternalAdmissionHook

func DeepCopy_v1alpha1_ExternalAdmissionHook(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_ExternalAdmissionHook is an autogenerated deepcopy function.

func DeepCopy_v1alpha1_ExternalAdmissionHookConfiguration

func DeepCopy_v1alpha1_ExternalAdmissionHookConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_ExternalAdmissionHookConfiguration is an autogenerated deepcopy function.

func DeepCopy_v1alpha1_ExternalAdmissionHookConfigurationList

func DeepCopy_v1alpha1_ExternalAdmissionHookConfigurationList(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_ExternalAdmissionHookConfigurationList is an autogenerated deepcopy function.

func DeepCopy_v1alpha1_Initializer

func DeepCopy_v1alpha1_Initializer(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_Initializer is an autogenerated deepcopy function.

func DeepCopy_v1alpha1_InitializerConfiguration

func DeepCopy_v1alpha1_InitializerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_InitializerConfiguration is an autogenerated deepcopy function.

func DeepCopy_v1alpha1_InitializerConfigurationList

func DeepCopy_v1alpha1_InitializerConfigurationList(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_InitializerConfigurationList is an autogenerated deepcopy function.

func DeepCopy_v1alpha1_Rule

func DeepCopy_v1alpha1_Rule(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_Rule is an autogenerated deepcopy function.

func DeepCopy_v1alpha1_RuleWithOperations

func DeepCopy_v1alpha1_RuleWithOperations(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_RuleWithOperations is an autogenerated deepcopy function.

func DeepCopy_v1alpha1_ServiceReference

func DeepCopy_v1alpha1_ServiceReference(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_v1alpha1_ServiceReference is an autogenerated deepcopy function.

func RegisterConversions

func RegisterConversions(scheme *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDeepCopies

func RegisterDeepCopies(scheme *runtime.Scheme) error

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

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetDefaults_ExternalAdmissionHook

func SetDefaults_ExternalAdmissionHook(obj *ExternalAdmissionHook)

func SetDefaults_Initializer

func SetDefaults_Initializer(obj *Initializer)

func SetObjectDefaults_ExternalAdmissionHookConfiguration

func SetObjectDefaults_ExternalAdmissionHookConfiguration(in *ExternalAdmissionHookConfiguration)

func SetObjectDefaults_ExternalAdmissionHookConfigurationList

func SetObjectDefaults_ExternalAdmissionHookConfigurationList(in *ExternalAdmissionHookConfigurationList)

func SetObjectDefaults_InitializerConfiguration

func SetObjectDefaults_InitializerConfiguration(in *InitializerConfiguration)

func SetObjectDefaults_InitializerConfigurationList

func SetObjectDefaults_InitializerConfigurationList(in *InitializerConfigurationList)

Types

type AdmissionHookClientConfig

type AdmissionHookClientConfig struct {
	// Service is a reference to the service for this webhook. If there is only
	// one port open for the service, that port will be used. If there are multiple
	// ports open, port 443 will be used if it is open, otherwise it is an error.
	// Required
	Service ServiceReference `json:"service" protobuf:"bytes,1,opt,name=service"`
	// CABundle is a PEM encoded CA bundle which will be used to validate webhook's server certificate.
	// Required
	CABundle []byte `json:"caBundle" protobuf:"bytes,2,opt,name=caBundle"`
}

AdmissionHookClientConfig contains the information to make a TLS connection with the webhook

func (*AdmissionHookClientConfig) CodecDecodeSelf

func (x *AdmissionHookClientConfig) CodecDecodeSelf(d *codec1978.Decoder)

func (*AdmissionHookClientConfig) CodecEncodeSelf

func (x *AdmissionHookClientConfig) CodecEncodeSelf(e *codec1978.Encoder)

func (*AdmissionHookClientConfig) Descriptor

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

func (*AdmissionHookClientConfig) Marshal

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

func (*AdmissionHookClientConfig) MarshalTo

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

func (*AdmissionHookClientConfig) ProtoMessage

func (*AdmissionHookClientConfig) ProtoMessage()

func (*AdmissionHookClientConfig) Reset

func (m *AdmissionHookClientConfig) Reset()

func (*AdmissionHookClientConfig) Size

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

func (*AdmissionHookClientConfig) String

func (this *AdmissionHookClientConfig) String() string

func (AdmissionHookClientConfig) SwaggerDoc

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

func (*AdmissionHookClientConfig) Unmarshal

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

type ExternalAdmissionHook

type ExternalAdmissionHook struct {
	// The name of the external admission webhook.
	// Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
	// "imagepolicy" 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"`

	// ClientConfig defines how to communicate with the hook.
	// Required
	ClientConfig AdmissionHookClientConfig `json:"clientConfig" protobuf:"bytes,2,opt,name=clientConfig"`

	// Rules describes what operations on what resources/subresources the webhook cares about.
	// The webhook cares about an operation if it matches _any_ Rule.
	Rules []RuleWithOperations `json:"rules,omitempty" protobuf:"bytes,3,rep,name=rules"`

	// FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
	// allowed values are Ignore or Fail. Defaults to Ignore.
	// +optional
	FailurePolicy *FailurePolicyType `json:"failurePolicy,omitempty" protobuf:"bytes,4,opt,name=failurePolicy,casttype=FailurePolicyType"`
}

ExternalAdmissionHook describes an external admission webhook and the resources and operations it applies to.

func (*ExternalAdmissionHook) CodecDecodeSelf

func (x *ExternalAdmissionHook) CodecDecodeSelf(d *codec1978.Decoder)

func (*ExternalAdmissionHook) CodecEncodeSelf

func (x *ExternalAdmissionHook) CodecEncodeSelf(e *codec1978.Encoder)

func (*ExternalAdmissionHook) Descriptor

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

func (*ExternalAdmissionHook) Marshal

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

func (*ExternalAdmissionHook) MarshalTo

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

func (*ExternalAdmissionHook) ProtoMessage

func (*ExternalAdmissionHook) ProtoMessage()

func (*ExternalAdmissionHook) Reset

func (m *ExternalAdmissionHook) Reset()

func (*ExternalAdmissionHook) Size

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

func (*ExternalAdmissionHook) String

func (this *ExternalAdmissionHook) String() string

func (ExternalAdmissionHook) SwaggerDoc

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

func (*ExternalAdmissionHook) Unmarshal

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

type ExternalAdmissionHookConfiguration

type ExternalAdmissionHookConfiguration 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"`
	// ExternalAdmissionHooks is a list of external admission webhooks and the
	// affected resources and operations.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	ExternalAdmissionHooks []ExternalAdmissionHook `` /* 133-byte string literal not displayed */
}

ExternalAdmissionHookConfiguration describes the configuration of initializers.

func (*ExternalAdmissionHookConfiguration) CodecDecodeSelf

func (x *ExternalAdmissionHookConfiguration) CodecDecodeSelf(d *codec1978.Decoder)

func (*ExternalAdmissionHookConfiguration) CodecEncodeSelf

func (x *ExternalAdmissionHookConfiguration) CodecEncodeSelf(e *codec1978.Encoder)

func (*ExternalAdmissionHookConfiguration) Descriptor

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

func (*ExternalAdmissionHookConfiguration) Marshal

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

func (*ExternalAdmissionHookConfiguration) MarshalTo

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

func (*ExternalAdmissionHookConfiguration) ProtoMessage

func (*ExternalAdmissionHookConfiguration) ProtoMessage()

func (*ExternalAdmissionHookConfiguration) Reset

func (*ExternalAdmissionHookConfiguration) Size

func (*ExternalAdmissionHookConfiguration) String

func (ExternalAdmissionHookConfiguration) SwaggerDoc

func (*ExternalAdmissionHookConfiguration) Unmarshal

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

type ExternalAdmissionHookConfigurationList

type ExternalAdmissionHookConfigurationList 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 ExternalAdmissionHookConfiguration.
	Items []ExternalAdmissionHookConfiguration `json:"items" protobuf:"bytes,2,rep,name=items"`
}

ExternalAdmissionHookConfigurationList is a list of ExternalAdmissionHookConfiguration.

func (*ExternalAdmissionHookConfigurationList) CodecDecodeSelf

func (*ExternalAdmissionHookConfigurationList) CodecEncodeSelf

func (*ExternalAdmissionHookConfigurationList) Descriptor

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

func (*ExternalAdmissionHookConfigurationList) Marshal

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

func (*ExternalAdmissionHookConfigurationList) MarshalTo

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

func (*ExternalAdmissionHookConfigurationList) ProtoMessage

func (*ExternalAdmissionHookConfigurationList) Reset

func (*ExternalAdmissionHookConfigurationList) Size

func (*ExternalAdmissionHookConfigurationList) String

func (ExternalAdmissionHookConfigurationList) SwaggerDoc

func (*ExternalAdmissionHookConfigurationList) Unmarshal

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

type FailurePolicyType

type FailurePolicyType string
const (
	// Ignore means the initilizer is removed from the initializers list of an
	// object if the initializer is timed out.
	Ignore FailurePolicyType = "Ignore"
	// For 1.7, only "Ignore" is allowed. "Fail" will be allowed when the
	// extensible admission feature is beta.
	Fail FailurePolicyType = "Fail"
)

func (*FailurePolicyType) CodecDecodeSelf

func (x *FailurePolicyType) CodecDecodeSelf(d *codec1978.Decoder)

func (FailurePolicyType) CodecEncodeSelf

func (x FailurePolicyType) CodecEncodeSelf(e *codec1978.Encoder)

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"`

	// FailurePolicy defines what happens if the responsible initializer controller
	// fails to takes action. Allowed values are Ignore, or Fail. If "Ignore" is
	// set, initializer is removed from the initializers list of an object if
	// the timeout is reached; If "Fail" is set, admissionregistration returns timeout error
	// if the timeout is reached.
	FailurePolicy *FailurePolicyType `json:"failurePolicy,omitempty" protobuf:"bytes,3,opt,name=failurePolicy,casttype=FailurePolicyType"`
}

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

func (*Initializer) CodecDecodeSelf

func (x *Initializer) CodecDecodeSelf(d *codec1978.Decoder)

func (*Initializer) CodecEncodeSelf

func (x *Initializer) CodecEncodeSelf(e *codec1978.Encoder)

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) CodecDecodeSelf

func (x *InitializerConfiguration) CodecDecodeSelf(d *codec1978.Decoder)

func (*InitializerConfiguration) CodecEncodeSelf

func (x *InitializerConfiguration) CodecEncodeSelf(e *codec1978.Encoder)

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) CodecDecodeSelf

func (x *InitializerConfigurationList) CodecDecodeSelf(d *codec1978.Decoder)

func (*InitializerConfigurationList) CodecEncodeSelf

func (x *InitializerConfigurationList) CodecEncodeSelf(e *codec1978.Encoder)

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 OperationType

type OperationType string
const (
	OperationAll OperationType = "*"
	Create       OperationType = "CREATE"
	Update       OperationType = "UPDATE"
	Delete       OperationType = "DELETE"
	Connect      OperationType = "CONNECT"
)

The constants should be kept in sync with those defined in k8s.io/kubernetes/pkg/admission/interface.go.

func (*OperationType) CodecDecodeSelf

func (x *OperationType) CodecDecodeSelf(d *codec1978.Decoder)

func (OperationType) CodecEncodeSelf

func (x OperationType) CodecEncodeSelf(e *codec1978.Encoder)

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) CodecDecodeSelf

func (x *Rule) CodecDecodeSelf(d *codec1978.Decoder)

func (*Rule) CodecEncodeSelf

func (x *Rule) CodecEncodeSelf(e *codec1978.Encoder)

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

type RuleWithOperations

type RuleWithOperations struct {
	// Operations is the operations the admission hook cares about - CREATE, UPDATE, or *
	// for all operations.
	// If '*' is present, the length of the slice must be one.
	// Required.
	Operations []OperationType `json:"operations,omitempty" protobuf:"bytes,1,rep,name=operations,casttype=OperationType"`
	// Rule is embedded, it describes other criteria of the rule, like
	// APIGroups, APIVersions, Resources, etc.
	Rule `json:",inline" protobuf:"bytes,2,opt,name=rule"`
}

RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.

func (*RuleWithOperations) CodecDecodeSelf

func (x *RuleWithOperations) CodecDecodeSelf(d *codec1978.Decoder)

func (*RuleWithOperations) CodecEncodeSelf

func (x *RuleWithOperations) CodecEncodeSelf(e *codec1978.Encoder)

func (*RuleWithOperations) Descriptor

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

func (*RuleWithOperations) Marshal

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

func (*RuleWithOperations) MarshalTo

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

func (*RuleWithOperations) ProtoMessage

func (*RuleWithOperations) ProtoMessage()

func (*RuleWithOperations) Reset

func (m *RuleWithOperations) Reset()

func (*RuleWithOperations) Size

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

func (*RuleWithOperations) String

func (this *RuleWithOperations) String() string

func (RuleWithOperations) SwaggerDoc

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

func (*RuleWithOperations) Unmarshal

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

type ServiceReference

type ServiceReference struct {
	// Namespace is the namespace of the service
	// Required
	Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"`
	// Name is the name of the service
	// Required
	Name string `json:"name" protobuf:"bytes,2,opt,name=name"`
}

ServiceReference holds a reference to Service.legacy.k8s.io

func (*ServiceReference) CodecDecodeSelf

func (x *ServiceReference) CodecDecodeSelf(d *codec1978.Decoder)

func (*ServiceReference) CodecEncodeSelf

func (x *ServiceReference) CodecEncodeSelf(e *codec1978.Encoder)

func (*ServiceReference) Descriptor

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

func (*ServiceReference) Marshal

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

func (*ServiceReference) MarshalTo

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

func (*ServiceReference) ProtoMessage

func (*ServiceReference) ProtoMessage()

func (*ServiceReference) Reset

func (m *ServiceReference) Reset()

func (*ServiceReference) Size

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

func (*ServiceReference) String

func (this *ServiceReference) String() string

func (ServiceReference) SwaggerDoc

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

func (*ServiceReference) Unmarshal

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

Jump to

Keyboard shortcuts

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