v1beta1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1beta1 is a generated protocol buffer package.

It is generated from these files:

k8s.io/api/policy/v1beta1/generated.proto

It has these top-level messages:

AllowedFlexVolume
AllowedHostPath
Eviction
FSGroupStrategyOptions
HostPortRange
IDRange
PodDisruptionBudget
PodDisruptionBudgetList
PodDisruptionBudgetSpec
PodDisruptionBudgetStatus
PodSecurityPolicy
PodSecurityPolicyList
PodSecurityPolicySpec
RunAsUserStrategyOptions
SELinuxStrategyOptions
SupplementalGroupsStrategyOptions

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type AllowedFlexVolume added in v1.1.0

type AllowedFlexVolume struct {
	// Driver is the name of the Flexvolume driver.
	Driver           *string `protobuf:"bytes,1,opt,name=driver" json:"driver,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

AllowedFlexVolume represents a single Flexvolume that is allowed to be used.

func (*AllowedFlexVolume) Descriptor added in v1.1.0

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

func (*AllowedFlexVolume) GetDriver added in v1.1.0

func (m *AllowedFlexVolume) GetDriver() string

func (*AllowedFlexVolume) Marshal added in v1.1.0

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

func (*AllowedFlexVolume) MarshalTo added in v1.1.0

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

func (*AllowedFlexVolume) ProtoMessage added in v1.1.0

func (*AllowedFlexVolume) ProtoMessage()

func (*AllowedFlexVolume) Reset added in v1.1.0

func (m *AllowedFlexVolume) Reset()

func (*AllowedFlexVolume) Size added in v1.1.0

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

func (*AllowedFlexVolume) String added in v1.1.0

func (m *AllowedFlexVolume) String() string

func (*AllowedFlexVolume) Unmarshal added in v1.1.0

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

type AllowedHostPath added in v1.1.0

type AllowedHostPath struct {
	// is the path prefix that the host volume must match.
	// It does not support `*`.
	// Trailing slashes are trimmed when validating the path prefix with a host path.
	//
	// Examples:
	// `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
	// `/foo` would not allow `/food` or `/etc/foo`
	PathPrefix       *string `protobuf:"bytes,1,opt,name=pathPrefix" json:"pathPrefix,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.

func (*AllowedHostPath) Descriptor added in v1.1.0

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

func (*AllowedHostPath) GetPathPrefix added in v1.1.0

func (m *AllowedHostPath) GetPathPrefix() string

func (*AllowedHostPath) Marshal added in v1.1.0

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

func (*AllowedHostPath) MarshalTo added in v1.1.0

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

func (*AllowedHostPath) ProtoMessage added in v1.1.0

func (*AllowedHostPath) ProtoMessage()

func (*AllowedHostPath) Reset added in v1.1.0

func (m *AllowedHostPath) Reset()

func (*AllowedHostPath) Size added in v1.1.0

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

func (*AllowedHostPath) String added in v1.1.0

func (m *AllowedHostPath) String() string

func (*AllowedHostPath) Unmarshal added in v1.1.0

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

type Eviction

type Eviction struct {
	// ObjectMeta describes the pod that is being evicted.
	Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// DeleteOptions may be provided
	DeleteOptions    *k8s_io_apimachinery_pkg_apis_meta_v1.DeleteOptions `protobuf:"bytes,2,opt,name=deleteOptions" json:"deleteOptions,omitempty"`
	XXX_unrecognized []byte                                              `json:"-"`
}

Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions.

func (*Eviction) Descriptor

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

func (*Eviction) GetDeleteOptions

func (*Eviction) GetMetadata

func (*Eviction) Marshal

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

func (*Eviction) MarshalTo

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

func (*Eviction) ProtoMessage

func (*Eviction) ProtoMessage()

func (*Eviction) Reset

func (m *Eviction) Reset()

func (*Eviction) Size

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

func (*Eviction) String

func (m *Eviction) String() string

func (*Eviction) Unmarshal

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

type FSGroupStrategyOptions added in v1.1.0

type FSGroupStrategyOptions struct {
	// Rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
	// +optional
	Rule *string `protobuf:"bytes,1,opt,name=rule" json:"rule,omitempty"`
	// Ranges are the allowed ranges of fs groups.  If you would like to force a single
	// fs group then supply a single range with the same start and end.
	// +optional
	Ranges           []*IDRange `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"`
	XXX_unrecognized []byte     `json:"-"`
}

FSGroupStrategyOptions defines the strategy type and options used to create the strategy.

func (*FSGroupStrategyOptions) Descriptor added in v1.1.0

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

func (*FSGroupStrategyOptions) GetRanges added in v1.1.0

func (m *FSGroupStrategyOptions) GetRanges() []*IDRange

func (*FSGroupStrategyOptions) GetRule added in v1.1.0

func (m *FSGroupStrategyOptions) GetRule() string

func (*FSGroupStrategyOptions) Marshal added in v1.1.0

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

func (*FSGroupStrategyOptions) MarshalTo added in v1.1.0

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

func (*FSGroupStrategyOptions) ProtoMessage added in v1.1.0

func (*FSGroupStrategyOptions) ProtoMessage()

func (*FSGroupStrategyOptions) Reset added in v1.1.0

func (m *FSGroupStrategyOptions) Reset()

func (*FSGroupStrategyOptions) Size added in v1.1.0

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

func (*FSGroupStrategyOptions) String added in v1.1.0

func (m *FSGroupStrategyOptions) String() string

func (*FSGroupStrategyOptions) Unmarshal added in v1.1.0

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

type HostPortRange added in v1.1.0

type HostPortRange struct {
	// min is the start of the range, inclusive.
	Min *int32 `protobuf:"varint,1,opt,name=min" json:"min,omitempty"`
	// max is the end of the range, inclusive.
	Max              *int32 `protobuf:"varint,2,opt,name=max" json:"max,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

Host Port Range defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.

func (*HostPortRange) Descriptor added in v1.1.0

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

func (*HostPortRange) GetMax added in v1.1.0

func (m *HostPortRange) GetMax() int32

func (*HostPortRange) GetMin added in v1.1.0

func (m *HostPortRange) GetMin() int32

func (*HostPortRange) Marshal added in v1.1.0

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

func (*HostPortRange) MarshalTo added in v1.1.0

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

func (*HostPortRange) ProtoMessage added in v1.1.0

func (*HostPortRange) ProtoMessage()

func (*HostPortRange) Reset added in v1.1.0

func (m *HostPortRange) Reset()

func (*HostPortRange) Size added in v1.1.0

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

func (*HostPortRange) String added in v1.1.0

func (m *HostPortRange) String() string

func (*HostPortRange) Unmarshal added in v1.1.0

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

type IDRange added in v1.1.0

type IDRange struct {
	// Min is the start of the range, inclusive.
	Min *int64 `protobuf:"varint,1,opt,name=min" json:"min,omitempty"`
	// Max is the end of the range, inclusive.
	Max              *int64 `protobuf:"varint,2,opt,name=max" json:"max,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

ID Range provides a min/max of an allowed range of IDs.

func (*IDRange) Descriptor added in v1.1.0

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

func (*IDRange) GetMax added in v1.1.0

func (m *IDRange) GetMax() int64

func (*IDRange) GetMin added in v1.1.0

func (m *IDRange) GetMin() int64

func (*IDRange) Marshal added in v1.1.0

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

func (*IDRange) MarshalTo added in v1.1.0

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

func (*IDRange) ProtoMessage added in v1.1.0

func (*IDRange) ProtoMessage()

func (*IDRange) Reset added in v1.1.0

func (m *IDRange) Reset()

func (*IDRange) Size added in v1.1.0

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

func (*IDRange) String added in v1.1.0

func (m *IDRange) String() string

func (*IDRange) Unmarshal added in v1.1.0

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

type PodDisruptionBudget

type PodDisruptionBudget struct {
	Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Specification of the desired behavior of the PodDisruptionBudget.
	Spec *PodDisruptionBudgetSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Most recently observed status of the PodDisruptionBudget.
	Status           *PodDisruptionBudgetStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
	XXX_unrecognized []byte                     `json:"-"`
}

PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods

func (*PodDisruptionBudget) Descriptor

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

func (*PodDisruptionBudget) GetMetadata

func (*PodDisruptionBudget) GetSpec

func (*PodDisruptionBudget) GetStatus

func (*PodDisruptionBudget) Marshal

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

func (*PodDisruptionBudget) MarshalTo

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

func (*PodDisruptionBudget) ProtoMessage

func (*PodDisruptionBudget) ProtoMessage()

func (*PodDisruptionBudget) Reset

func (m *PodDisruptionBudget) Reset()

func (*PodDisruptionBudget) Size

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

func (*PodDisruptionBudget) String

func (m *PodDisruptionBudget) String() string

func (*PodDisruptionBudget) Unmarshal

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

type PodDisruptionBudgetList

type PodDisruptionBudgetList struct {
	Metadata         *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	Items            []*PodDisruptionBudget                         `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
	XXX_unrecognized []byte                                         `json:"-"`
}

PodDisruptionBudgetList is a collection of PodDisruptionBudgets.

func (*PodDisruptionBudgetList) Descriptor

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

func (*PodDisruptionBudgetList) GetItems

func (*PodDisruptionBudgetList) GetMetadata

func (*PodDisruptionBudgetList) Marshal

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

func (*PodDisruptionBudgetList) MarshalTo

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

func (*PodDisruptionBudgetList) ProtoMessage

func (*PodDisruptionBudgetList) ProtoMessage()

func (*PodDisruptionBudgetList) Reset

func (m *PodDisruptionBudgetList) Reset()

func (*PodDisruptionBudgetList) Size

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

func (*PodDisruptionBudgetList) String

func (m *PodDisruptionBudgetList) String() string

func (*PodDisruptionBudgetList) Unmarshal

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

type PodDisruptionBudgetSpec

type PodDisruptionBudgetSpec struct {
	// An eviction is allowed if at least "minAvailable" pods selected by
	// "selector" will still be available after the eviction, i.e. even in the
	// absence of the evicted pod.  So for example you can prevent all voluntary
	// evictions by specifying "100%".
	MinAvailable *k8s_io_apimachinery_pkg_util_intstr.IntOrString `protobuf:"bytes,1,opt,name=minAvailable" json:"minAvailable,omitempty"`
	// Label query over pods whose evictions are managed by the disruption
	// budget.
	Selector *k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector `protobuf:"bytes,2,opt,name=selector" json:"selector,omitempty"`
	// An eviction is allowed if at most "maxUnavailable" pods selected by
	// "selector" are unavailable after the eviction, i.e. even in absence of
	// the evicted pod. For example, one can prevent all voluntary evictions
	// by specifying 0. This is a mutually exclusive setting with "minAvailable".
	MaxUnavailable   *k8s_io_apimachinery_pkg_util_intstr.IntOrString `protobuf:"bytes,3,opt,name=maxUnavailable" json:"maxUnavailable,omitempty"`
	XXX_unrecognized []byte                                           `json:"-"`
}

PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.

func (*PodDisruptionBudgetSpec) Descriptor

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

func (*PodDisruptionBudgetSpec) GetMaxUnavailable added in v1.0.0

func (*PodDisruptionBudgetSpec) GetMinAvailable

func (*PodDisruptionBudgetSpec) GetSelector

func (*PodDisruptionBudgetSpec) Marshal

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

func (*PodDisruptionBudgetSpec) MarshalTo

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

func (*PodDisruptionBudgetSpec) ProtoMessage

func (*PodDisruptionBudgetSpec) ProtoMessage()

func (*PodDisruptionBudgetSpec) Reset

func (m *PodDisruptionBudgetSpec) Reset()

func (*PodDisruptionBudgetSpec) Size

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

func (*PodDisruptionBudgetSpec) String

func (m *PodDisruptionBudgetSpec) String() string

func (*PodDisruptionBudgetSpec) Unmarshal

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

type PodDisruptionBudgetStatus

type PodDisruptionBudgetStatus struct {
	// Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other
	// status informatio is valid only if observedGeneration equals to PDB's object generation.
	// +optional
	ObservedGeneration *int64 `protobuf:"varint,1,opt,name=observedGeneration" json:"observedGeneration,omitempty"`
	// DisruptedPods contains information about pods whose eviction was
	// processed by the API server eviction subresource handler but has not
	// yet been observed by the PodDisruptionBudget controller.
	// A pod will be in this map from the time when the API server processed the
	// eviction request to the time when the pod is seen by PDB controller
	// as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
	// and the value is the time when the API server processed the eviction request. If
	// the deletion didn't occur and a pod is still there it will be removed from
	// the list automatically by PodDisruptionBudget controller after some time.
	// If everything goes smooth this map should be empty for the most of the time.
	// Large number of entries in the map may indicate problems with pod deletions.
	DisruptedPods map[string]*k8s_io_apimachinery_pkg_apis_meta_v1.Time `` /* 146-byte string literal not displayed */
	// Number of pod disruptions that are currently allowed.
	DisruptionsAllowed *int32 `protobuf:"varint,3,opt,name=disruptionsAllowed" json:"disruptionsAllowed,omitempty"`
	// current number of healthy pods
	CurrentHealthy *int32 `protobuf:"varint,4,opt,name=currentHealthy" json:"currentHealthy,omitempty"`
	// minimum desired number of healthy pods
	DesiredHealthy *int32 `protobuf:"varint,5,opt,name=desiredHealthy" json:"desiredHealthy,omitempty"`
	// total number of pods counted by this disruption budget
	ExpectedPods     *int32 `protobuf:"varint,6,opt,name=expectedPods" json:"expectedPods,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.

func (*PodDisruptionBudgetStatus) Descriptor

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

func (*PodDisruptionBudgetStatus) GetCurrentHealthy

func (m *PodDisruptionBudgetStatus) GetCurrentHealthy() int32

func (*PodDisruptionBudgetStatus) GetDesiredHealthy

func (m *PodDisruptionBudgetStatus) GetDesiredHealthy() int32

func (*PodDisruptionBudgetStatus) GetDisruptedPods

func (*PodDisruptionBudgetStatus) GetDisruptionsAllowed

func (m *PodDisruptionBudgetStatus) GetDisruptionsAllowed() int32

func (*PodDisruptionBudgetStatus) GetExpectedPods

func (m *PodDisruptionBudgetStatus) GetExpectedPods() int32

func (*PodDisruptionBudgetStatus) GetObservedGeneration

func (m *PodDisruptionBudgetStatus) GetObservedGeneration() int64

func (*PodDisruptionBudgetStatus) Marshal

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

func (*PodDisruptionBudgetStatus) MarshalTo

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

func (*PodDisruptionBudgetStatus) ProtoMessage

func (*PodDisruptionBudgetStatus) ProtoMessage()

func (*PodDisruptionBudgetStatus) Reset

func (m *PodDisruptionBudgetStatus) Reset()

func (*PodDisruptionBudgetStatus) Size

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

func (*PodDisruptionBudgetStatus) String

func (m *PodDisruptionBudgetStatus) String() string

func (*PodDisruptionBudgetStatus) Unmarshal

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

type PodSecurityPolicy added in v1.1.0

type PodSecurityPolicy struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// spec defines the policy enforced.
	// +optional
	Spec             *PodSecurityPolicySpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	XXX_unrecognized []byte                 `json:"-"`
}

Pod Security Policy governs the ability to make requests that affect the Security Context that will be applied to a pod and container.

func (*PodSecurityPolicy) Descriptor added in v1.1.0

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

func (*PodSecurityPolicy) GetMetadata added in v1.1.0

func (*PodSecurityPolicy) GetSpec added in v1.1.0

func (*PodSecurityPolicy) Marshal added in v1.1.0

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

func (*PodSecurityPolicy) MarshalTo added in v1.1.0

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

func (*PodSecurityPolicy) ProtoMessage added in v1.1.0

func (*PodSecurityPolicy) ProtoMessage()

func (*PodSecurityPolicy) Reset added in v1.1.0

func (m *PodSecurityPolicy) Reset()

func (*PodSecurityPolicy) Size added in v1.1.0

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

func (*PodSecurityPolicy) String added in v1.1.0

func (m *PodSecurityPolicy) String() string

func (*PodSecurityPolicy) Unmarshal added in v1.1.0

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

type PodSecurityPolicyList added in v1.1.0

type PodSecurityPolicyList struct {
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Items is a list of schema objects.
	Items            []*PodSecurityPolicy `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
	XXX_unrecognized []byte               `json:"-"`
}

Pod Security Policy List is a list of PodSecurityPolicy objects.

func (*PodSecurityPolicyList) Descriptor added in v1.1.0

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

func (*PodSecurityPolicyList) GetItems added in v1.1.0

func (m *PodSecurityPolicyList) GetItems() []*PodSecurityPolicy

func (*PodSecurityPolicyList) GetMetadata added in v1.1.0

func (*PodSecurityPolicyList) Marshal added in v1.1.0

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

func (*PodSecurityPolicyList) MarshalTo added in v1.1.0

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

func (*PodSecurityPolicyList) ProtoMessage added in v1.1.0

func (*PodSecurityPolicyList) ProtoMessage()

func (*PodSecurityPolicyList) Reset added in v1.1.0

func (m *PodSecurityPolicyList) Reset()

func (*PodSecurityPolicyList) Size added in v1.1.0

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

func (*PodSecurityPolicyList) String added in v1.1.0

func (m *PodSecurityPolicyList) String() string

func (*PodSecurityPolicyList) Unmarshal added in v1.1.0

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

type PodSecurityPolicySpec added in v1.1.0

type PodSecurityPolicySpec struct {
	// privileged determines if a pod can request to be run as privileged.
	// +optional
	Privileged *bool `protobuf:"varint,1,opt,name=privileged" json:"privileged,omitempty"`
	// DefaultAddCapabilities is the default set of capabilities that will be added to the container
	// unless the pod spec specifically drops the capability.  You may not list a capability in both
	// DefaultAddCapabilities and RequiredDropCapabilities. Capabilities added here are implicitly
	// allowed, and need not be included in the AllowedCapabilities list.
	// +optional
	DefaultAddCapabilities []string `protobuf:"bytes,2,rep,name=defaultAddCapabilities" json:"defaultAddCapabilities,omitempty"`
	// RequiredDropCapabilities are the capabilities that will be dropped from the container.  These
	// are required to be dropped and cannot be added.
	// +optional
	RequiredDropCapabilities []string `protobuf:"bytes,3,rep,name=requiredDropCapabilities" json:"requiredDropCapabilities,omitempty"`
	// AllowedCapabilities is a list of capabilities that can be requested to add to the container.
	// Capabilities in this field may be added at the pod author's discretion.
	// You must not list a capability in both AllowedCapabilities and RequiredDropCapabilities.
	// +optional
	AllowedCapabilities []string `protobuf:"bytes,4,rep,name=allowedCapabilities" json:"allowedCapabilities,omitempty"`
	// volumes is a white list of allowed volume plugins.  Empty indicates that all plugins
	// may be used.
	// +optional
	Volumes []string `protobuf:"bytes,5,rep,name=volumes" json:"volumes,omitempty"`
	// hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
	// +optional
	HostNetwork *bool `protobuf:"varint,6,opt,name=hostNetwork" json:"hostNetwork,omitempty"`
	// hostPorts determines which host port ranges are allowed to be exposed.
	// +optional
	HostPorts []*HostPortRange `protobuf:"bytes,7,rep,name=hostPorts" json:"hostPorts,omitempty"`
	// hostPID determines if the policy allows the use of HostPID in the pod spec.
	// +optional
	HostPID *bool `protobuf:"varint,8,opt,name=hostPID" json:"hostPID,omitempty"`
	// hostIPC determines if the policy allows the use of HostIPC in the pod spec.
	// +optional
	HostIPC *bool `protobuf:"varint,9,opt,name=hostIPC" json:"hostIPC,omitempty"`
	// seLinux is the strategy that will dictate the allowable labels that may be set.
	SeLinux *SELinuxStrategyOptions `protobuf:"bytes,10,opt,name=seLinux" json:"seLinux,omitempty"`
	// runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
	RunAsUser *RunAsUserStrategyOptions `protobuf:"bytes,11,opt,name=runAsUser" json:"runAsUser,omitempty"`
	// SupplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
	SupplementalGroups *SupplementalGroupsStrategyOptions `protobuf:"bytes,12,opt,name=supplementalGroups" json:"supplementalGroups,omitempty"`
	// FSGroup is the strategy that will dictate what fs group is used by the SecurityContext.
	FsGroup *FSGroupStrategyOptions `protobuf:"bytes,13,opt,name=fsGroup" json:"fsGroup,omitempty"`
	// ReadOnlyRootFilesystem when set to true will force containers to run with a read only root file
	// system.  If the container specifically requests to run with a non-read only root file system
	// the PSP should deny the pod.
	// If set to false the container may run with a read only root file system if it wishes but it
	// will not be forced to.
	// +optional
	ReadOnlyRootFilesystem *bool `protobuf:"varint,14,opt,name=readOnlyRootFilesystem" json:"readOnlyRootFilesystem,omitempty"`
	// DefaultAllowPrivilegeEscalation controls the default setting for whether a
	// process can gain more privileges than its parent process.
	// +optional
	DefaultAllowPrivilegeEscalation *bool `protobuf:"varint,15,opt,name=defaultAllowPrivilegeEscalation" json:"defaultAllowPrivilegeEscalation,omitempty"`
	// AllowPrivilegeEscalation determines if a pod can request to allow
	// privilege escalation. If unspecified, defaults to true.
	// +optional
	AllowPrivilegeEscalation *bool `protobuf:"varint,16,opt,name=allowPrivilegeEscalation" json:"allowPrivilegeEscalation,omitempty"`
	// is a white list of allowed host paths. Empty indicates that all host paths may be used.
	// +optional
	AllowedHostPaths []*AllowedHostPath `protobuf:"bytes,17,rep,name=allowedHostPaths" json:"allowedHostPaths,omitempty"`
	// AllowedFlexVolumes is a whitelist of allowed Flexvolumes.  Empty or nil indicates that all
	// Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
	// is allowed in the "Volumes" field.
	// +optional
	AllowedFlexVolumes []*AllowedFlexVolume `protobuf:"bytes,18,rep,name=allowedFlexVolumes" json:"allowedFlexVolumes,omitempty"`
	XXX_unrecognized   []byte               `json:"-"`
}

Pod Security Policy Spec defines the policy enforced.

func (*PodSecurityPolicySpec) Descriptor added in v1.1.0

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

func (*PodSecurityPolicySpec) GetAllowPrivilegeEscalation added in v1.1.0

func (m *PodSecurityPolicySpec) GetAllowPrivilegeEscalation() bool

func (*PodSecurityPolicySpec) GetAllowedCapabilities added in v1.1.0

func (m *PodSecurityPolicySpec) GetAllowedCapabilities() []string

func (*PodSecurityPolicySpec) GetAllowedFlexVolumes added in v1.1.0

func (m *PodSecurityPolicySpec) GetAllowedFlexVolumes() []*AllowedFlexVolume

func (*PodSecurityPolicySpec) GetAllowedHostPaths added in v1.1.0

func (m *PodSecurityPolicySpec) GetAllowedHostPaths() []*AllowedHostPath

func (*PodSecurityPolicySpec) GetDefaultAddCapabilities added in v1.1.0

func (m *PodSecurityPolicySpec) GetDefaultAddCapabilities() []string

func (*PodSecurityPolicySpec) GetDefaultAllowPrivilegeEscalation added in v1.1.0

func (m *PodSecurityPolicySpec) GetDefaultAllowPrivilegeEscalation() bool

func (*PodSecurityPolicySpec) GetFsGroup added in v1.1.0

func (*PodSecurityPolicySpec) GetHostIPC added in v1.1.0

func (m *PodSecurityPolicySpec) GetHostIPC() bool

func (*PodSecurityPolicySpec) GetHostNetwork added in v1.1.0

func (m *PodSecurityPolicySpec) GetHostNetwork() bool

func (*PodSecurityPolicySpec) GetHostPID added in v1.1.0

func (m *PodSecurityPolicySpec) GetHostPID() bool

func (*PodSecurityPolicySpec) GetHostPorts added in v1.1.0

func (m *PodSecurityPolicySpec) GetHostPorts() []*HostPortRange

func (*PodSecurityPolicySpec) GetPrivileged added in v1.1.0

func (m *PodSecurityPolicySpec) GetPrivileged() bool

func (*PodSecurityPolicySpec) GetReadOnlyRootFilesystem added in v1.1.0

func (m *PodSecurityPolicySpec) GetReadOnlyRootFilesystem() bool

func (*PodSecurityPolicySpec) GetRequiredDropCapabilities added in v1.1.0

func (m *PodSecurityPolicySpec) GetRequiredDropCapabilities() []string

func (*PodSecurityPolicySpec) GetRunAsUser added in v1.1.0

func (*PodSecurityPolicySpec) GetSeLinux added in v1.1.0

func (*PodSecurityPolicySpec) GetSupplementalGroups added in v1.1.0

func (m *PodSecurityPolicySpec) GetSupplementalGroups() *SupplementalGroupsStrategyOptions

func (*PodSecurityPolicySpec) GetVolumes added in v1.1.0

func (m *PodSecurityPolicySpec) GetVolumes() []string

func (*PodSecurityPolicySpec) Marshal added in v1.1.0

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

func (*PodSecurityPolicySpec) MarshalTo added in v1.1.0

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

func (*PodSecurityPolicySpec) ProtoMessage added in v1.1.0

func (*PodSecurityPolicySpec) ProtoMessage()

func (*PodSecurityPolicySpec) Reset added in v1.1.0

func (m *PodSecurityPolicySpec) Reset()

func (*PodSecurityPolicySpec) Size added in v1.1.0

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

func (*PodSecurityPolicySpec) String added in v1.1.0

func (m *PodSecurityPolicySpec) String() string

func (*PodSecurityPolicySpec) Unmarshal added in v1.1.0

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

type RunAsUserStrategyOptions added in v1.1.0

type RunAsUserStrategyOptions struct {
	// Rule is the strategy that will dictate the allowable RunAsUser values that may be set.
	Rule *string `protobuf:"bytes,1,opt,name=rule" json:"rule,omitempty"`
	// Ranges are the allowed ranges of uids that may be used.
	// +optional
	Ranges           []*IDRange `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"`
	XXX_unrecognized []byte     `json:"-"`
}

Run A sUser Strategy Options defines the strategy type and any options used to create the strategy.

func (*RunAsUserStrategyOptions) Descriptor added in v1.1.0

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

func (*RunAsUserStrategyOptions) GetRanges added in v1.1.0

func (m *RunAsUserStrategyOptions) GetRanges() []*IDRange

func (*RunAsUserStrategyOptions) GetRule added in v1.1.0

func (m *RunAsUserStrategyOptions) GetRule() string

func (*RunAsUserStrategyOptions) Marshal added in v1.1.0

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

func (*RunAsUserStrategyOptions) MarshalTo added in v1.1.0

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

func (*RunAsUserStrategyOptions) ProtoMessage added in v1.1.0

func (*RunAsUserStrategyOptions) ProtoMessage()

func (*RunAsUserStrategyOptions) Reset added in v1.1.0

func (m *RunAsUserStrategyOptions) Reset()

func (*RunAsUserStrategyOptions) Size added in v1.1.0

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

func (*RunAsUserStrategyOptions) String added in v1.1.0

func (m *RunAsUserStrategyOptions) String() string

func (*RunAsUserStrategyOptions) Unmarshal added in v1.1.0

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

type SELinuxStrategyOptions added in v1.1.0

type SELinuxStrategyOptions struct {
	// type is the strategy that will dictate the allowable labels that may be set.
	Rule *string `protobuf:"bytes,1,opt,name=rule" json:"rule,omitempty"`
	// seLinuxOptions required to run as; required for MustRunAs
	// More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
	// +optional
	SeLinuxOptions   *k8s_io_api_core_v1.SELinuxOptions `protobuf:"bytes,2,opt,name=seLinuxOptions" json:"seLinuxOptions,omitempty"`
	XXX_unrecognized []byte                             `json:"-"`
}

SELinux Strategy Options defines the strategy type and any options used to create the strategy.

func (*SELinuxStrategyOptions) Descriptor added in v1.1.0

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

func (*SELinuxStrategyOptions) GetRule added in v1.1.0

func (m *SELinuxStrategyOptions) GetRule() string

func (*SELinuxStrategyOptions) GetSeLinuxOptions added in v1.1.0

func (*SELinuxStrategyOptions) Marshal added in v1.1.0

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

func (*SELinuxStrategyOptions) MarshalTo added in v1.1.0

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

func (*SELinuxStrategyOptions) ProtoMessage added in v1.1.0

func (*SELinuxStrategyOptions) ProtoMessage()

func (*SELinuxStrategyOptions) Reset added in v1.1.0

func (m *SELinuxStrategyOptions) Reset()

func (*SELinuxStrategyOptions) Size added in v1.1.0

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

func (*SELinuxStrategyOptions) String added in v1.1.0

func (m *SELinuxStrategyOptions) String() string

func (*SELinuxStrategyOptions) Unmarshal added in v1.1.0

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

type SupplementalGroupsStrategyOptions added in v1.1.0

type SupplementalGroupsStrategyOptions struct {
	// Rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
	// +optional
	Rule *string `protobuf:"bytes,1,opt,name=rule" json:"rule,omitempty"`
	// Ranges are the allowed ranges of supplemental groups.  If you would like to force a single
	// supplemental group then supply a single range with the same start and end.
	// +optional
	Ranges           []*IDRange `protobuf:"bytes,2,rep,name=ranges" json:"ranges,omitempty"`
	XXX_unrecognized []byte     `json:"-"`
}

SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.

func (*SupplementalGroupsStrategyOptions) Descriptor added in v1.1.0

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

func (*SupplementalGroupsStrategyOptions) GetRanges added in v1.1.0

func (m *SupplementalGroupsStrategyOptions) GetRanges() []*IDRange

func (*SupplementalGroupsStrategyOptions) GetRule added in v1.1.0

func (*SupplementalGroupsStrategyOptions) Marshal added in v1.1.0

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

func (*SupplementalGroupsStrategyOptions) MarshalTo added in v1.1.0

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

func (*SupplementalGroupsStrategyOptions) ProtoMessage added in v1.1.0

func (*SupplementalGroupsStrategyOptions) ProtoMessage()

func (*SupplementalGroupsStrategyOptions) Reset added in v1.1.0

func (*SupplementalGroupsStrategyOptions) Size added in v1.1.0

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

func (*SupplementalGroupsStrategyOptions) String added in v1.1.0

func (*SupplementalGroupsStrategyOptions) Unmarshal added in v1.1.0

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

Jump to

Keyboard shortcuts

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