Documentation
¶
Index ¶
- Variables
- type HTTPIngressPath
- func (*HTTPIngressPath) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPIngressPath) GetBackend() *IngressBackend
- func (x *HTTPIngressPath) GetPath() string
- func (x *HTTPIngressPath) GetPathType() string
- func (*HTTPIngressPath) ProtoMessage()
- func (x *HTTPIngressPath) ProtoReflect() protoreflect.Message
- func (x *HTTPIngressPath) Reset()
- func (x *HTTPIngressPath) String() string
- type HTTPIngressRuleValue
- func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPIngressRuleValue) GetPaths() []*HTTPIngressPath
- func (*HTTPIngressRuleValue) ProtoMessage()
- func (x *HTTPIngressRuleValue) ProtoReflect() protoreflect.Message
- func (x *HTTPIngressRuleValue) Reset()
- func (x *HTTPIngressRuleValue) String() string
- type IPBlock
- type Ingress
- func (*Ingress) Descriptor() ([]byte, []int)deprecated
- func (x *Ingress) GetMetadata() *v1.ObjectMeta
- func (x *Ingress) GetSpec() *IngressSpec
- func (x *Ingress) GetStatus() *IngressStatus
- func (*Ingress) ProtoMessage()
- func (x *Ingress) ProtoReflect() protoreflect.Message
- func (x *Ingress) Reset()
- func (x *Ingress) String() string
- type IngressBackend
- func (*IngressBackend) Descriptor() ([]byte, []int)deprecated
- func (x *IngressBackend) GetResource() *v11.TypedLocalObjectReference
- func (x *IngressBackend) GetService() *IngressServiceBackend
- func (*IngressBackend) ProtoMessage()
- func (x *IngressBackend) ProtoReflect() protoreflect.Message
- func (x *IngressBackend) Reset()
- func (x *IngressBackend) String() string
- type IngressClass
- func (*IngressClass) Descriptor() ([]byte, []int)deprecated
- func (x *IngressClass) GetMetadata() *v1.ObjectMeta
- func (x *IngressClass) GetSpec() *IngressClassSpec
- func (*IngressClass) ProtoMessage()
- func (x *IngressClass) ProtoReflect() protoreflect.Message
- func (x *IngressClass) Reset()
- func (x *IngressClass) String() string
- type IngressClassList
- func (*IngressClassList) Descriptor() ([]byte, []int)deprecated
- func (x *IngressClassList) GetItems() []*IngressClass
- func (x *IngressClassList) GetMetadata() *v1.ListMeta
- func (*IngressClassList) ProtoMessage()
- func (x *IngressClassList) ProtoReflect() protoreflect.Message
- func (x *IngressClassList) Reset()
- func (x *IngressClassList) String() string
- type IngressClassSpec
- func (*IngressClassSpec) Descriptor() ([]byte, []int)deprecated
- func (x *IngressClassSpec) GetController() string
- func (x *IngressClassSpec) GetParameters() *v11.TypedLocalObjectReference
- func (*IngressClassSpec) ProtoMessage()
- func (x *IngressClassSpec) ProtoReflect() protoreflect.Message
- func (x *IngressClassSpec) Reset()
- func (x *IngressClassSpec) String() string
- type IngressList
- func (*IngressList) Descriptor() ([]byte, []int)deprecated
- func (x *IngressList) GetItems() []*Ingress
- func (x *IngressList) GetMetadata() *v1.ListMeta
- func (*IngressList) ProtoMessage()
- func (x *IngressList) ProtoReflect() protoreflect.Message
- func (x *IngressList) Reset()
- func (x *IngressList) String() string
- type IngressRule
- func (*IngressRule) Descriptor() ([]byte, []int)deprecated
- func (x *IngressRule) GetHost() string
- func (x *IngressRule) GetIngressRuleValue() *IngressRuleValue
- func (*IngressRule) ProtoMessage()
- func (x *IngressRule) ProtoReflect() protoreflect.Message
- func (x *IngressRule) Reset()
- func (x *IngressRule) String() string
- type IngressRuleValue
- func (*IngressRuleValue) Descriptor() ([]byte, []int)deprecated
- func (x *IngressRuleValue) GetHttp() *HTTPIngressRuleValue
- func (*IngressRuleValue) ProtoMessage()
- func (x *IngressRuleValue) ProtoReflect() protoreflect.Message
- func (x *IngressRuleValue) Reset()
- func (x *IngressRuleValue) String() string
- type IngressServiceBackend
- func (*IngressServiceBackend) Descriptor() ([]byte, []int)deprecated
- func (x *IngressServiceBackend) GetName() string
- func (x *IngressServiceBackend) GetPort() *ServiceBackendPort
- func (*IngressServiceBackend) ProtoMessage()
- func (x *IngressServiceBackend) ProtoReflect() protoreflect.Message
- func (x *IngressServiceBackend) Reset()
- func (x *IngressServiceBackend) String() string
- type IngressSpec
- func (*IngressSpec) Descriptor() ([]byte, []int)deprecated
- func (x *IngressSpec) GetDefaultBackend() *IngressBackend
- func (x *IngressSpec) GetIngressClassName() string
- func (x *IngressSpec) GetRules() []*IngressRule
- func (x *IngressSpec) GetTls() []*IngressTLS
- func (*IngressSpec) ProtoMessage()
- func (x *IngressSpec) ProtoReflect() protoreflect.Message
- func (x *IngressSpec) Reset()
- func (x *IngressSpec) String() string
- type IngressStatus
- type IngressTLS
- type NetworkPolicy
- func (*NetworkPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkPolicy) GetMetadata() *v1.ObjectMeta
- func (x *NetworkPolicy) GetSpec() *NetworkPolicySpec
- func (*NetworkPolicy) ProtoMessage()
- func (x *NetworkPolicy) ProtoReflect() protoreflect.Message
- func (x *NetworkPolicy) Reset()
- func (x *NetworkPolicy) String() string
- type NetworkPolicyEgressRule
- func (*NetworkPolicyEgressRule) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkPolicyEgressRule) GetPorts() []*NetworkPolicyPort
- func (x *NetworkPolicyEgressRule) GetTo() []*NetworkPolicyPeer
- func (*NetworkPolicyEgressRule) ProtoMessage()
- func (x *NetworkPolicyEgressRule) ProtoReflect() protoreflect.Message
- func (x *NetworkPolicyEgressRule) Reset()
- func (x *NetworkPolicyEgressRule) String() string
- type NetworkPolicyIngressRule
- func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkPolicyIngressRule) GetFrom() []*NetworkPolicyPeer
- func (x *NetworkPolicyIngressRule) GetPorts() []*NetworkPolicyPort
- func (*NetworkPolicyIngressRule) ProtoMessage()
- func (x *NetworkPolicyIngressRule) ProtoReflect() protoreflect.Message
- func (x *NetworkPolicyIngressRule) Reset()
- func (x *NetworkPolicyIngressRule) String() string
- type NetworkPolicyList
- func (*NetworkPolicyList) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkPolicyList) GetItems() []*NetworkPolicy
- func (x *NetworkPolicyList) GetMetadata() *v1.ListMeta
- func (*NetworkPolicyList) ProtoMessage()
- func (x *NetworkPolicyList) ProtoReflect() protoreflect.Message
- func (x *NetworkPolicyList) Reset()
- func (x *NetworkPolicyList) String() string
- type NetworkPolicyPeer
- func (*NetworkPolicyPeer) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkPolicyPeer) GetIpBlock() *IPBlock
- func (x *NetworkPolicyPeer) GetNamespaceSelector() *v1.LabelSelector
- func (x *NetworkPolicyPeer) GetPodSelector() *v1.LabelSelector
- func (*NetworkPolicyPeer) ProtoMessage()
- func (x *NetworkPolicyPeer) ProtoReflect() protoreflect.Message
- func (x *NetworkPolicyPeer) Reset()
- func (x *NetworkPolicyPeer) String() string
- type NetworkPolicyPort
- func (*NetworkPolicyPort) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkPolicyPort) GetPort() *intstr.IntOrString
- func (x *NetworkPolicyPort) GetProtocol() string
- func (*NetworkPolicyPort) ProtoMessage()
- func (x *NetworkPolicyPort) ProtoReflect() protoreflect.Message
- func (x *NetworkPolicyPort) Reset()
- func (x *NetworkPolicyPort) String() string
- type NetworkPolicySpec
- func (*NetworkPolicySpec) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkPolicySpec) GetEgress() []*NetworkPolicyEgressRule
- func (x *NetworkPolicySpec) GetIngress() []*NetworkPolicyIngressRule
- func (x *NetworkPolicySpec) GetPodSelector() *v1.LabelSelector
- func (x *NetworkPolicySpec) GetPolicyTypes() []string
- func (*NetworkPolicySpec) ProtoMessage()
- func (x *NetworkPolicySpec) ProtoReflect() protoreflect.Message
- func (x *NetworkPolicySpec) Reset()
- func (x *NetworkPolicySpec) String() string
- type ServiceBackendPort
- func (*ServiceBackendPort) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceBackendPort) GetName() string
- func (x *ServiceBackendPort) GetNumber() int32
- func (*ServiceBackendPort) ProtoMessage()
- func (x *ServiceBackendPort) ProtoReflect() protoreflect.Message
- func (x *ServiceBackendPort) Reset()
- func (x *ServiceBackendPort) String() string
Constants ¶
This section is empty.
Variables ¶
var File_k8s_io_api_networking_v1_generated_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type HTTPIngressPath ¶ added in v1.2.4
type HTTPIngressPath struct { // Path is matched against the path of an incoming request. Currently it can // contain characters disallowed from the conventional "path" part of a URL // as defined by RFC 3986. Paths must begin with a '/'. When unspecified, // all paths from incoming requests are matched. // +optional Path *string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` // PathType determines the interpretation of the Path matching. PathType can // be one of the following values: // * Exact: Matches the URL path exactly. // * Prefix: Matches based on a URL path prefix split by '/'. Matching is // done on a path element by element basis. A path element refers is the // list of labels in the path split by the '/' separator. A request is a // match for path p if every p is an element-wise prefix of p of the // request path. Note that if the last element of the path is a substring // of the last element in request path, it is not a match (e.g. /foo/bar // matches /foo/bar/baz, but does not match /foo/barbaz). // * ImplementationSpecific: Interpretation of the Path matching is up to // the IngressClass. Implementations can treat this as a separate PathType // or treat it identically to Prefix or Exact path types. // Implementations are required to support all path types. PathType *string `protobuf:"bytes,3,opt,name=pathType" json:"pathType,omitempty"` // Backend defines the referenced service endpoint to which the traffic // will be forwarded to. Backend *IngressBackend `protobuf:"bytes,2,opt,name=backend" json:"backend,omitempty"` // contains filtered or unexported fields }
HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.
func (*HTTPIngressPath) Descriptor
deprecated
added in
v1.2.4
func (*HTTPIngressPath) Descriptor() ([]byte, []int)
Deprecated: Use HTTPIngressPath.ProtoReflect.Descriptor instead.
func (*HTTPIngressPath) GetBackend ¶ added in v1.2.4
func (x *HTTPIngressPath) GetBackend() *IngressBackend
func (*HTTPIngressPath) GetPath ¶ added in v1.2.4
func (x *HTTPIngressPath) GetPath() string
func (*HTTPIngressPath) GetPathType ¶ added in v1.2.4
func (x *HTTPIngressPath) GetPathType() string
func (*HTTPIngressPath) ProtoMessage ¶ added in v1.2.4
func (*HTTPIngressPath) ProtoMessage()
func (*HTTPIngressPath) ProtoReflect ¶ added in v1.2.4
func (x *HTTPIngressPath) ProtoReflect() protoreflect.Message
func (*HTTPIngressPath) Reset ¶ added in v1.2.4
func (x *HTTPIngressPath) Reset()
func (*HTTPIngressPath) String ¶ added in v1.2.4
func (x *HTTPIngressPath) String() string
type HTTPIngressRuleValue ¶ added in v1.2.4
type HTTPIngressRuleValue struct { // A collection of paths that map requests to backends. // +listType=atomic Paths []*HTTPIngressPath `protobuf:"bytes,1,rep,name=paths" json:"paths,omitempty"` // contains filtered or unexported fields }
HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.
func (*HTTPIngressRuleValue) Descriptor
deprecated
added in
v1.2.4
func (*HTTPIngressRuleValue) Descriptor() ([]byte, []int)
Deprecated: Use HTTPIngressRuleValue.ProtoReflect.Descriptor instead.
func (*HTTPIngressRuleValue) GetPaths ¶ added in v1.2.4
func (x *HTTPIngressRuleValue) GetPaths() []*HTTPIngressPath
func (*HTTPIngressRuleValue) ProtoMessage ¶ added in v1.2.4
func (*HTTPIngressRuleValue) ProtoMessage()
func (*HTTPIngressRuleValue) ProtoReflect ¶ added in v1.2.4
func (x *HTTPIngressRuleValue) ProtoReflect() protoreflect.Message
func (*HTTPIngressRuleValue) Reset ¶ added in v1.2.4
func (x *HTTPIngressRuleValue) Reset()
func (*HTTPIngressRuleValue) String ¶ added in v1.2.4
func (x *HTTPIngressRuleValue) String() string
type IPBlock ¶
type IPBlock struct { // CIDR is a string representing the IP Block // Valid examples are "192.168.1.1/24" or "2001:db9::/64" Cidr *string `protobuf:"bytes,1,opt,name=cidr" json:"cidr,omitempty"` // Except is a slice of CIDRs that should not be included within an IP Block // Valid examples are "192.168.1.1/24" or "2001:db9::/64" // Except values will be rejected if they are outside the CIDR range // +optional Except []string `protobuf:"bytes,2,rep,name=except" json:"except,omitempty"` // contains filtered or unexported fields }
IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.
func (*IPBlock) Descriptor
deprecated
func (*IPBlock) ProtoMessage ¶
func (*IPBlock) ProtoMessage()
func (*IPBlock) ProtoReflect ¶ added in v1.2.4
func (x *IPBlock) ProtoReflect() protoreflect.Message
type Ingress ¶ added in v1.2.4
type Ingress struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Spec is the desired state of the Ingress. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec *IngressSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` // Status is the current state of the Ingress. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Status *IngressStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` // contains filtered or unexported fields }
Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.
func (*Ingress) Descriptor
deprecated
added in
v1.2.4
func (*Ingress) GetMetadata ¶ added in v1.2.4
func (x *Ingress) GetMetadata() *v1.ObjectMeta
func (*Ingress) GetSpec ¶ added in v1.2.4
func (x *Ingress) GetSpec() *IngressSpec
func (*Ingress) GetStatus ¶ added in v1.2.4
func (x *Ingress) GetStatus() *IngressStatus
func (*Ingress) ProtoMessage ¶ added in v1.2.4
func (*Ingress) ProtoMessage()
func (*Ingress) ProtoReflect ¶ added in v1.2.4
func (x *Ingress) ProtoReflect() protoreflect.Message
type IngressBackend ¶ added in v1.2.4
type IngressBackend struct { // Service references a Service as a Backend. // This is a mutually exclusive setting with "Resource". // +optional Service *IngressServiceBackend `protobuf:"bytes,4,opt,name=service" json:"service,omitempty"` // Resource is an ObjectRef to another Kubernetes resource in the namespace // of the Ingress object. If resource is specified, a service.Name and // service.Port must not be specified. // This is a mutually exclusive setting with "Service". // +optional Resource *v11.TypedLocalObjectReference `protobuf:"bytes,3,opt,name=resource" json:"resource,omitempty"` // contains filtered or unexported fields }
IngressBackend describes all endpoints for a given service and port.
func (*IngressBackend) Descriptor
deprecated
added in
v1.2.4
func (*IngressBackend) Descriptor() ([]byte, []int)
Deprecated: Use IngressBackend.ProtoReflect.Descriptor instead.
func (*IngressBackend) GetResource ¶ added in v1.2.4
func (x *IngressBackend) GetResource() *v11.TypedLocalObjectReference
func (*IngressBackend) GetService ¶ added in v1.2.4
func (x *IngressBackend) GetService() *IngressServiceBackend
func (*IngressBackend) ProtoMessage ¶ added in v1.2.4
func (*IngressBackend) ProtoMessage()
func (*IngressBackend) ProtoReflect ¶ added in v1.2.4
func (x *IngressBackend) ProtoReflect() protoreflect.Message
func (*IngressBackend) Reset ¶ added in v1.2.4
func (x *IngressBackend) Reset()
func (*IngressBackend) String ¶ added in v1.2.4
func (x *IngressBackend) String() string
type IngressClass ¶ added in v1.2.4
type IngressClass struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Spec is the desired state of the IngressClass. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status // +optional Spec *IngressClassSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` // contains filtered or unexported fields }
IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.
func (*IngressClass) Descriptor
deprecated
added in
v1.2.4
func (*IngressClass) Descriptor() ([]byte, []int)
Deprecated: Use IngressClass.ProtoReflect.Descriptor instead.
func (*IngressClass) GetMetadata ¶ added in v1.2.4
func (x *IngressClass) GetMetadata() *v1.ObjectMeta
func (*IngressClass) GetSpec ¶ added in v1.2.4
func (x *IngressClass) GetSpec() *IngressClassSpec
func (*IngressClass) ProtoMessage ¶ added in v1.2.4
func (*IngressClass) ProtoMessage()
func (*IngressClass) ProtoReflect ¶ added in v1.2.4
func (x *IngressClass) ProtoReflect() protoreflect.Message
func (*IngressClass) Reset ¶ added in v1.2.4
func (x *IngressClass) Reset()
func (*IngressClass) String ¶ added in v1.2.4
func (x *IngressClass) String() string
type IngressClassList ¶ added in v1.2.4
type IngressClassList struct { // Standard list metadata. // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is the list of IngressClasses. Items []*IngressClass `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` // contains filtered or unexported fields }
IngressClassList is a collection of IngressClasses.
func (*IngressClassList) Descriptor
deprecated
added in
v1.2.4
func (*IngressClassList) Descriptor() ([]byte, []int)
Deprecated: Use IngressClassList.ProtoReflect.Descriptor instead.
func (*IngressClassList) GetItems ¶ added in v1.2.4
func (x *IngressClassList) GetItems() []*IngressClass
func (*IngressClassList) GetMetadata ¶ added in v1.2.4
func (x *IngressClassList) GetMetadata() *v1.ListMeta
func (*IngressClassList) ProtoMessage ¶ added in v1.2.4
func (*IngressClassList) ProtoMessage()
func (*IngressClassList) ProtoReflect ¶ added in v1.2.4
func (x *IngressClassList) ProtoReflect() protoreflect.Message
func (*IngressClassList) Reset ¶ added in v1.2.4
func (x *IngressClassList) Reset()
func (*IngressClassList) String ¶ added in v1.2.4
func (x *IngressClassList) String() string
type IngressClassSpec ¶ added in v1.2.4
type IngressClassSpec struct { // Controller refers to the name of the controller that should handle this // class. This allows for different "flavors" that are controlled by the // same controller. For example, you may have different Parameters for the // same implementing controller. This should be specified as a // domain-prefixed path no more than 250 characters in length, e.g. // "acme.io/ingress-controller". This field is immutable. Controller *string `protobuf:"bytes,1,opt,name=controller" json:"controller,omitempty"` // Parameters is a link to a custom resource containing additional // configuration for the controller. This is optional if the controller does // not require extra parameters. // +optional Parameters *v11.TypedLocalObjectReference `protobuf:"bytes,2,opt,name=parameters" json:"parameters,omitempty"` // contains filtered or unexported fields }
IngressClassSpec provides information about the class of an Ingress.
func (*IngressClassSpec) Descriptor
deprecated
added in
v1.2.4
func (*IngressClassSpec) Descriptor() ([]byte, []int)
Deprecated: Use IngressClassSpec.ProtoReflect.Descriptor instead.
func (*IngressClassSpec) GetController ¶ added in v1.2.4
func (x *IngressClassSpec) GetController() string
func (*IngressClassSpec) GetParameters ¶ added in v1.2.4
func (x *IngressClassSpec) GetParameters() *v11.TypedLocalObjectReference
func (*IngressClassSpec) ProtoMessage ¶ added in v1.2.4
func (*IngressClassSpec) ProtoMessage()
func (*IngressClassSpec) ProtoReflect ¶ added in v1.2.4
func (x *IngressClassSpec) ProtoReflect() protoreflect.Message
func (*IngressClassSpec) Reset ¶ added in v1.2.4
func (x *IngressClassSpec) Reset()
func (*IngressClassSpec) String ¶ added in v1.2.4
func (x *IngressClassSpec) String() string
type IngressList ¶ added in v1.2.4
type IngressList struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is the list of Ingress. Items []*Ingress `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` // contains filtered or unexported fields }
IngressList is a collection of Ingress.
func (*IngressList) Descriptor
deprecated
added in
v1.2.4
func (*IngressList) Descriptor() ([]byte, []int)
Deprecated: Use IngressList.ProtoReflect.Descriptor instead.
func (*IngressList) GetItems ¶ added in v1.2.4
func (x *IngressList) GetItems() []*Ingress
func (*IngressList) GetMetadata ¶ added in v1.2.4
func (x *IngressList) GetMetadata() *v1.ListMeta
func (*IngressList) ProtoMessage ¶ added in v1.2.4
func (*IngressList) ProtoMessage()
func (*IngressList) ProtoReflect ¶ added in v1.2.4
func (x *IngressList) ProtoReflect() protoreflect.Message
func (*IngressList) Reset ¶ added in v1.2.4
func (x *IngressList) Reset()
func (*IngressList) String ¶ added in v1.2.4
func (x *IngressList) String() string
type IngressRule ¶ added in v1.2.4
type IngressRule struct { // Host is the fully qualified domain name of a network host, as defined by RFC 3986. // Note the following deviations from the "host" part of the // URI as defined in RFC 3986: // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to // the IP in the Spec of the parent Ingress. // 2. The `:` delimiter is not respected because ports are not allowed. // Currently the port of an Ingress is implicitly :80 for http and // :443 for https. // Both these may change in the future. // Incoming requests are matched against the host before the // IngressRuleValue. If the host is unspecified, the Ingress routes all // traffic based on the specified IngressRuleValue. // // Host can be "precise" which is a domain name without the terminating dot of // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name // prefixed with a single wildcard label (e.g. "*.foo.com"). // The wildcard character '*' must appear by itself as the first DNS label and // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). // Requests will be matched against the Host field in the following way: // 1. If Host is precise, the request matches this rule if the http host header is equal to Host. // 2. If Host is a wildcard, then the request matches this rule if the http host header // is to equal to the suffix (removing the first label) of the wildcard rule. // +optional Host *string `protobuf:"bytes,1,opt,name=host" json:"host,omitempty"` // IngressRuleValue represents a rule to route requests for this IngressRule. // If unspecified, the rule defaults to a http catch-all. Whether that sends // just traffic matching the host to the default backend or all traffic to the // default backend, is left to the controller fulfilling the Ingress. Http is // currently the only supported IngressRuleValue. // +optional IngressRuleValue *IngressRuleValue `protobuf:"bytes,2,opt,name=ingressRuleValue" json:"ingressRuleValue,omitempty"` // contains filtered or unexported fields }
IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.
func (*IngressRule) Descriptor
deprecated
added in
v1.2.4
func (*IngressRule) Descriptor() ([]byte, []int)
Deprecated: Use IngressRule.ProtoReflect.Descriptor instead.
func (*IngressRule) GetHost ¶ added in v1.2.4
func (x *IngressRule) GetHost() string
func (*IngressRule) GetIngressRuleValue ¶ added in v1.2.4
func (x *IngressRule) GetIngressRuleValue() *IngressRuleValue
func (*IngressRule) ProtoMessage ¶ added in v1.2.4
func (*IngressRule) ProtoMessage()
func (*IngressRule) ProtoReflect ¶ added in v1.2.4
func (x *IngressRule) ProtoReflect() protoreflect.Message
func (*IngressRule) Reset ¶ added in v1.2.4
func (x *IngressRule) Reset()
func (*IngressRule) String ¶ added in v1.2.4
func (x *IngressRule) String() string
type IngressRuleValue ¶ added in v1.2.4
type IngressRuleValue struct { // +optional Http *HTTPIngressRuleValue `protobuf:"bytes,1,opt,name=http" json:"http,omitempty"` // contains filtered or unexported fields }
IngressRuleValue represents a rule to apply against incoming requests. If the rule is satisfied, the request is routed to the specified backend. Currently mixing different types of rules in a single Ingress is disallowed, so exactly one of the following must be set.
func (*IngressRuleValue) Descriptor
deprecated
added in
v1.2.4
func (*IngressRuleValue) Descriptor() ([]byte, []int)
Deprecated: Use IngressRuleValue.ProtoReflect.Descriptor instead.
func (*IngressRuleValue) GetHttp ¶ added in v1.2.4
func (x *IngressRuleValue) GetHttp() *HTTPIngressRuleValue
func (*IngressRuleValue) ProtoMessage ¶ added in v1.2.4
func (*IngressRuleValue) ProtoMessage()
func (*IngressRuleValue) ProtoReflect ¶ added in v1.2.4
func (x *IngressRuleValue) ProtoReflect() protoreflect.Message
func (*IngressRuleValue) Reset ¶ added in v1.2.4
func (x *IngressRuleValue) Reset()
func (*IngressRuleValue) String ¶ added in v1.2.4
func (x *IngressRuleValue) String() string
type IngressServiceBackend ¶ added in v1.2.4
type IngressServiceBackend struct { // Name is the referenced service. The service must exist in // the same namespace as the Ingress object. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Port of the referenced service. A port name or port number // is required for a IngressServiceBackend. Port *ServiceBackendPort `protobuf:"bytes,2,opt,name=port" json:"port,omitempty"` // contains filtered or unexported fields }
IngressServiceBackend references a Kubernetes Service as a Backend.
func (*IngressServiceBackend) Descriptor
deprecated
added in
v1.2.4
func (*IngressServiceBackend) Descriptor() ([]byte, []int)
Deprecated: Use IngressServiceBackend.ProtoReflect.Descriptor instead.
func (*IngressServiceBackend) GetName ¶ added in v1.2.4
func (x *IngressServiceBackend) GetName() string
func (*IngressServiceBackend) GetPort ¶ added in v1.2.4
func (x *IngressServiceBackend) GetPort() *ServiceBackendPort
func (*IngressServiceBackend) ProtoMessage ¶ added in v1.2.4
func (*IngressServiceBackend) ProtoMessage()
func (*IngressServiceBackend) ProtoReflect ¶ added in v1.2.4
func (x *IngressServiceBackend) ProtoReflect() protoreflect.Message
func (*IngressServiceBackend) Reset ¶ added in v1.2.4
func (x *IngressServiceBackend) Reset()
func (*IngressServiceBackend) String ¶ added in v1.2.4
func (x *IngressServiceBackend) String() string
type IngressSpec ¶ added in v1.2.4
type IngressSpec struct { // IngressClassName is the name of the IngressClass cluster resource. The // associated IngressClass defines which controller will implement the // resource. This replaces the deprecated `kubernetes.io/ingress.class` // annotation. For backwards compatibility, when that annotation is set, it // must be given precedence over this field. The controller may emit a // warning if the field and annotation have different values. // Implementations of this API should ignore Ingresses without a class // specified. An IngressClass resource may be marked as default, which can // be used to set a default value for this field. For more information, // refer to the IngressClass documentation. // +optional IngressClassName *string `protobuf:"bytes,4,opt,name=ingressClassName" json:"ingressClassName,omitempty"` // DefaultBackend is the backend that should handle requests that don't // match any rule. If Rules are not specified, DefaultBackend must be specified. // If DefaultBackend is not set, the handling of requests that do not match any // of the rules will be up to the Ingress controller. // +optional DefaultBackend *IngressBackend `protobuf:"bytes,1,opt,name=defaultBackend" json:"defaultBackend,omitempty"` // TLS configuration. Currently the Ingress only supports a single TLS // port, 443. If multiple members of this list specify different hosts, they // will be multiplexed on the same port according to the hostname specified // through the SNI TLS extension, if the ingress controller fulfilling the // ingress supports SNI. // +listType=atomic // +optional Tls []*IngressTLS `protobuf:"bytes,2,rep,name=tls" json:"tls,omitempty"` // A list of host rules used to configure the Ingress. If unspecified, or // no rule matches, all traffic is sent to the default backend. // +listType=atomic // +optional Rules []*IngressRule `protobuf:"bytes,3,rep,name=rules" json:"rules,omitempty"` // contains filtered or unexported fields }
IngressSpec describes the Ingress the user wishes to exist.
func (*IngressSpec) Descriptor
deprecated
added in
v1.2.4
func (*IngressSpec) Descriptor() ([]byte, []int)
Deprecated: Use IngressSpec.ProtoReflect.Descriptor instead.
func (*IngressSpec) GetDefaultBackend ¶ added in v1.2.4
func (x *IngressSpec) GetDefaultBackend() *IngressBackend
func (*IngressSpec) GetIngressClassName ¶ added in v1.2.4
func (x *IngressSpec) GetIngressClassName() string
func (*IngressSpec) GetRules ¶ added in v1.2.4
func (x *IngressSpec) GetRules() []*IngressRule
func (*IngressSpec) GetTls ¶ added in v1.2.4
func (x *IngressSpec) GetTls() []*IngressTLS
func (*IngressSpec) ProtoMessage ¶ added in v1.2.4
func (*IngressSpec) ProtoMessage()
func (*IngressSpec) ProtoReflect ¶ added in v1.2.4
func (x *IngressSpec) ProtoReflect() protoreflect.Message
func (*IngressSpec) Reset ¶ added in v1.2.4
func (x *IngressSpec) Reset()
func (*IngressSpec) String ¶ added in v1.2.4
func (x *IngressSpec) String() string
type IngressStatus ¶ added in v1.2.4
type IngressStatus struct { // LoadBalancer contains the current status of the load-balancer. // +optional LoadBalancer *v11.LoadBalancerStatus `protobuf:"bytes,1,opt,name=loadBalancer" json:"loadBalancer,omitempty"` // contains filtered or unexported fields }
IngressStatus describe the current state of the Ingress.
func (*IngressStatus) Descriptor
deprecated
added in
v1.2.4
func (*IngressStatus) Descriptor() ([]byte, []int)
Deprecated: Use IngressStatus.ProtoReflect.Descriptor instead.
func (*IngressStatus) GetLoadBalancer ¶ added in v1.2.4
func (x *IngressStatus) GetLoadBalancer() *v11.LoadBalancerStatus
func (*IngressStatus) ProtoMessage ¶ added in v1.2.4
func (*IngressStatus) ProtoMessage()
func (*IngressStatus) ProtoReflect ¶ added in v1.2.4
func (x *IngressStatus) ProtoReflect() protoreflect.Message
func (*IngressStatus) Reset ¶ added in v1.2.4
func (x *IngressStatus) Reset()
func (*IngressStatus) String ¶ added in v1.2.4
func (x *IngressStatus) String() string
type IngressTLS ¶ added in v1.2.4
type IngressTLS struct { // Hosts are a list of hosts included in the TLS certificate. The values in // this list must match the name/s used in the tlsSecret. Defaults to the // wildcard host setting for the loadbalancer controller fulfilling this // Ingress, if left unspecified. // +listType=atomic // +optional Hosts []string `protobuf:"bytes,1,rep,name=hosts" json:"hosts,omitempty"` // SecretName is the name of the secret used to terminate TLS traffic on // port 443. Field is left optional to allow TLS routing based on SNI // hostname alone. If the SNI host in a listener conflicts with the "Host" // header field used by an IngressRule, the SNI host is used for termination // and value of the Host header is used for routing. // +optional SecretName *string `protobuf:"bytes,2,opt,name=secretName" json:"secretName,omitempty"` // contains filtered or unexported fields }
IngressTLS describes the transport layer security associated with an Ingress.
func (*IngressTLS) Descriptor
deprecated
added in
v1.2.4
func (*IngressTLS) Descriptor() ([]byte, []int)
Deprecated: Use IngressTLS.ProtoReflect.Descriptor instead.
func (*IngressTLS) GetHosts ¶ added in v1.2.4
func (x *IngressTLS) GetHosts() []string
func (*IngressTLS) GetSecretName ¶ added in v1.2.4
func (x *IngressTLS) GetSecretName() string
func (*IngressTLS) ProtoMessage ¶ added in v1.2.4
func (*IngressTLS) ProtoMessage()
func (*IngressTLS) ProtoReflect ¶ added in v1.2.4
func (x *IngressTLS) ProtoReflect() protoreflect.Message
func (*IngressTLS) Reset ¶ added in v1.2.4
func (x *IngressTLS) Reset()
func (*IngressTLS) String ¶ added in v1.2.4
func (x *IngressTLS) String() string
type NetworkPolicy ¶
type NetworkPolicy struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Specification of the desired behavior for this NetworkPolicy. // +optional Spec *NetworkPolicySpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` // contains filtered or unexported fields }
NetworkPolicy describes what network traffic is allowed for a set of Pods
func (*NetworkPolicy) Descriptor
deprecated
func (*NetworkPolicy) Descriptor() ([]byte, []int)
Deprecated: Use NetworkPolicy.ProtoReflect.Descriptor instead.
func (*NetworkPolicy) GetMetadata ¶
func (x *NetworkPolicy) GetMetadata() *v1.ObjectMeta
func (*NetworkPolicy) GetSpec ¶
func (x *NetworkPolicy) GetSpec() *NetworkPolicySpec
func (*NetworkPolicy) ProtoMessage ¶
func (*NetworkPolicy) ProtoMessage()
func (*NetworkPolicy) ProtoReflect ¶ added in v1.2.4
func (x *NetworkPolicy) ProtoReflect() protoreflect.Message
func (*NetworkPolicy) Reset ¶
func (x *NetworkPolicy) Reset()
func (*NetworkPolicy) String ¶
func (x *NetworkPolicy) String() string
type NetworkPolicyEgressRule ¶
type NetworkPolicyEgressRule struct { // List of destination ports for outgoing traffic. // Each item in this list is combined using a logical OR. If this field is // empty or missing, this rule matches all ports (traffic not restricted by port). // If this field is present and contains at least one item, then this rule allows // traffic only if the traffic matches at least one port in the list. // +optional Ports []*NetworkPolicyPort `protobuf:"bytes,1,rep,name=ports" json:"ports,omitempty"` // List of destinations for outgoing traffic of pods selected for this rule. // Items in this list are combined using a logical OR operation. If this field is // empty or missing, this rule matches all destinations (traffic not restricted by // destination). If this field is present and contains at least one item, this rule // allows traffic only if the traffic matches at least one item in the to list. // +optional To []*NetworkPolicyPeer `protobuf:"bytes,2,rep,name=to" json:"to,omitempty"` // contains filtered or unexported fields }
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8
func (*NetworkPolicyEgressRule) Descriptor
deprecated
func (*NetworkPolicyEgressRule) Descriptor() ([]byte, []int)
Deprecated: Use NetworkPolicyEgressRule.ProtoReflect.Descriptor instead.
func (*NetworkPolicyEgressRule) GetPorts ¶
func (x *NetworkPolicyEgressRule) GetPorts() []*NetworkPolicyPort
func (*NetworkPolicyEgressRule) GetTo ¶
func (x *NetworkPolicyEgressRule) GetTo() []*NetworkPolicyPeer
func (*NetworkPolicyEgressRule) ProtoMessage ¶
func (*NetworkPolicyEgressRule) ProtoMessage()
func (*NetworkPolicyEgressRule) ProtoReflect ¶ added in v1.2.4
func (x *NetworkPolicyEgressRule) ProtoReflect() protoreflect.Message
func (*NetworkPolicyEgressRule) Reset ¶
func (x *NetworkPolicyEgressRule) Reset()
func (*NetworkPolicyEgressRule) String ¶
func (x *NetworkPolicyEgressRule) String() string
type NetworkPolicyIngressRule ¶
type NetworkPolicyIngressRule struct { // List of ports which should be made accessible on the pods selected for this // rule. Each item in this list is combined using a logical OR. If this field is // empty or missing, this rule matches all ports (traffic not restricted by port). // If this field is present and contains at least one item, then this rule allows // traffic only if the traffic matches at least one port in the list. // +optional Ports []*NetworkPolicyPort `protobuf:"bytes,1,rep,name=ports" json:"ports,omitempty"` // List of sources which should be able to access the pods selected for this rule. // Items in this list are combined using a logical OR operation. If this field is // empty or missing, this rule matches all sources (traffic not restricted by // source). If this field is present and contains at least one item, this rule // allows traffic only if the traffic matches at least one item in the from list. // +optional From []*NetworkPolicyPeer `protobuf:"bytes,2,rep,name=from" json:"from,omitempty"` // contains filtered or unexported fields }
NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.
func (*NetworkPolicyIngressRule) Descriptor
deprecated
func (*NetworkPolicyIngressRule) Descriptor() ([]byte, []int)
Deprecated: Use NetworkPolicyIngressRule.ProtoReflect.Descriptor instead.
func (*NetworkPolicyIngressRule) GetFrom ¶
func (x *NetworkPolicyIngressRule) GetFrom() []*NetworkPolicyPeer
func (*NetworkPolicyIngressRule) GetPorts ¶
func (x *NetworkPolicyIngressRule) GetPorts() []*NetworkPolicyPort
func (*NetworkPolicyIngressRule) ProtoMessage ¶
func (*NetworkPolicyIngressRule) ProtoMessage()
func (*NetworkPolicyIngressRule) ProtoReflect ¶ added in v1.2.4
func (x *NetworkPolicyIngressRule) ProtoReflect() protoreflect.Message
func (*NetworkPolicyIngressRule) Reset ¶
func (x *NetworkPolicyIngressRule) Reset()
func (*NetworkPolicyIngressRule) String ¶
func (x *NetworkPolicyIngressRule) String() string
type NetworkPolicyList ¶
type NetworkPolicyList struct { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is a list of schema objects. Items []*NetworkPolicy `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` // contains filtered or unexported fields }
NetworkPolicyList is a list of NetworkPolicy objects.
func (*NetworkPolicyList) Descriptor
deprecated
func (*NetworkPolicyList) Descriptor() ([]byte, []int)
Deprecated: Use NetworkPolicyList.ProtoReflect.Descriptor instead.
func (*NetworkPolicyList) GetItems ¶
func (x *NetworkPolicyList) GetItems() []*NetworkPolicy
func (*NetworkPolicyList) GetMetadata ¶
func (x *NetworkPolicyList) GetMetadata() *v1.ListMeta
func (*NetworkPolicyList) ProtoMessage ¶
func (*NetworkPolicyList) ProtoMessage()
func (*NetworkPolicyList) ProtoReflect ¶ added in v1.2.4
func (x *NetworkPolicyList) ProtoReflect() protoreflect.Message
func (*NetworkPolicyList) Reset ¶
func (x *NetworkPolicyList) Reset()
func (*NetworkPolicyList) String ¶
func (x *NetworkPolicyList) String() string
type NetworkPolicyPeer ¶
type NetworkPolicyPeer struct { // This is a label selector which selects Pods. This field follows standard label // selector semantics; if present but empty, it selects all pods. // // If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. // Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. // +optional PodSelector *v1.LabelSelector `protobuf:"bytes,1,opt,name=podSelector" json:"podSelector,omitempty"` // Selects Namespaces using cluster-scoped labels. This field follows standard label // selector semantics; if present but empty, it selects all namespaces. // // If PodSelector is also set, then the NetworkPolicyPeer as a whole selects // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. // Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. // +optional NamespaceSelector *v1.LabelSelector `protobuf:"bytes,2,opt,name=namespaceSelector" json:"namespaceSelector,omitempty"` // IPBlock defines policy on a particular IPBlock. If this field is set then // neither of the other fields can be. // +optional IpBlock *IPBlock `protobuf:"bytes,3,opt,name=ipBlock" json:"ipBlock,omitempty"` // contains filtered or unexported fields }
NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed
func (*NetworkPolicyPeer) Descriptor
deprecated
func (*NetworkPolicyPeer) Descriptor() ([]byte, []int)
Deprecated: Use NetworkPolicyPeer.ProtoReflect.Descriptor instead.
func (*NetworkPolicyPeer) GetIpBlock ¶
func (x *NetworkPolicyPeer) GetIpBlock() *IPBlock
func (*NetworkPolicyPeer) GetNamespaceSelector ¶
func (x *NetworkPolicyPeer) GetNamespaceSelector() *v1.LabelSelector
func (*NetworkPolicyPeer) GetPodSelector ¶
func (x *NetworkPolicyPeer) GetPodSelector() *v1.LabelSelector
func (*NetworkPolicyPeer) ProtoMessage ¶
func (*NetworkPolicyPeer) ProtoMessage()
func (*NetworkPolicyPeer) ProtoReflect ¶ added in v1.2.4
func (x *NetworkPolicyPeer) ProtoReflect() protoreflect.Message
func (*NetworkPolicyPeer) Reset ¶
func (x *NetworkPolicyPeer) Reset()
func (*NetworkPolicyPeer) String ¶
func (x *NetworkPolicyPeer) String() string
type NetworkPolicyPort ¶
type NetworkPolicyPort struct { // The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this // field defaults to TCP. // +optional Protocol *string `protobuf:"bytes,1,opt,name=protocol" json:"protocol,omitempty"` // The port on the given protocol. This can either be a numerical or named port on // a pod. If this field is not provided, this matches all port names and numbers. // +optional Port *intstr.IntOrString `protobuf:"bytes,2,opt,name=port" json:"port,omitempty"` // contains filtered or unexported fields }
NetworkPolicyPort describes a port to allow traffic on
func (*NetworkPolicyPort) Descriptor
deprecated
func (*NetworkPolicyPort) Descriptor() ([]byte, []int)
Deprecated: Use NetworkPolicyPort.ProtoReflect.Descriptor instead.
func (*NetworkPolicyPort) GetPort ¶
func (x *NetworkPolicyPort) GetPort() *intstr.IntOrString
func (*NetworkPolicyPort) GetProtocol ¶
func (x *NetworkPolicyPort) GetProtocol() string
func (*NetworkPolicyPort) ProtoMessage ¶
func (*NetworkPolicyPort) ProtoMessage()
func (*NetworkPolicyPort) ProtoReflect ¶ added in v1.2.4
func (x *NetworkPolicyPort) ProtoReflect() protoreflect.Message
func (*NetworkPolicyPort) Reset ¶
func (x *NetworkPolicyPort) Reset()
func (*NetworkPolicyPort) String ¶
func (x *NetworkPolicyPort) String() string
type NetworkPolicySpec ¶
type NetworkPolicySpec struct { // Selects the pods to which this NetworkPolicy object applies. The array of // ingress rules is applied to any pods selected by this field. Multiple network // policies can select the same set of pods. In this case, the ingress rules for // each are combined additively. This field is NOT optional and follows standard // label selector semantics. An empty podSelector matches all pods in this // namespace. PodSelector *v1.LabelSelector `protobuf:"bytes,1,opt,name=podSelector" json:"podSelector,omitempty"` // List of ingress rules to be applied to the selected pods. Traffic is allowed to // a pod if there are no NetworkPolicies selecting the pod // (and cluster policy otherwise allows the traffic), OR if the traffic source is // the pod's local node, OR if the traffic matches at least one ingress rule // across all of the NetworkPolicy objects whose podSelector matches the pod. If // this field is empty then this NetworkPolicy does not allow any traffic (and serves // solely to ensure that the pods it selects are isolated by default) // +optional Ingress []*NetworkPolicyIngressRule `protobuf:"bytes,2,rep,name=ingress" json:"ingress,omitempty"` // List of egress rules to be applied to the selected pods. Outgoing traffic is // allowed if there are no NetworkPolicies selecting the pod (and cluster policy // otherwise allows the traffic), OR if the traffic matches at least one egress rule // across all of the NetworkPolicy objects whose podSelector matches the pod. If // this field is empty then this NetworkPolicy limits all outgoing traffic (and serves // solely to ensure that the pods it selects are isolated by default). // This field is beta-level in 1.8 // +optional Egress []*NetworkPolicyEgressRule `protobuf:"bytes,3,rep,name=egress" json:"egress,omitempty"` // List of rule types that the NetworkPolicy relates to. // Valid options are "Ingress", "Egress", or "Ingress,Egress". // If this field is not specified, it will default based on the existence of Ingress or Egress rules; // policies that contain an Egress section are assumed to affect Egress, and all policies // (whether or not they contain an Ingress section) are assumed to affect Ingress. // If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. // Likewise, if you want to write a policy that specifies that no egress is allowed, // you must specify a policyTypes value that include "Egress" (since such a policy would not include // an Egress section and would otherwise default to just [ "Ingress" ]). // This field is beta-level in 1.8 // +optional PolicyTypes []string `protobuf:"bytes,4,rep,name=policyTypes" json:"policyTypes,omitempty"` // contains filtered or unexported fields }
NetworkPolicySpec provides the specification of a NetworkPolicy
func (*NetworkPolicySpec) Descriptor
deprecated
func (*NetworkPolicySpec) Descriptor() ([]byte, []int)
Deprecated: Use NetworkPolicySpec.ProtoReflect.Descriptor instead.
func (*NetworkPolicySpec) GetEgress ¶
func (x *NetworkPolicySpec) GetEgress() []*NetworkPolicyEgressRule
func (*NetworkPolicySpec) GetIngress ¶
func (x *NetworkPolicySpec) GetIngress() []*NetworkPolicyIngressRule
func (*NetworkPolicySpec) GetPodSelector ¶
func (x *NetworkPolicySpec) GetPodSelector() *v1.LabelSelector
func (*NetworkPolicySpec) GetPolicyTypes ¶
func (x *NetworkPolicySpec) GetPolicyTypes() []string
func (*NetworkPolicySpec) ProtoMessage ¶
func (*NetworkPolicySpec) ProtoMessage()
func (*NetworkPolicySpec) ProtoReflect ¶ added in v1.2.4
func (x *NetworkPolicySpec) ProtoReflect() protoreflect.Message
func (*NetworkPolicySpec) Reset ¶
func (x *NetworkPolicySpec) Reset()
func (*NetworkPolicySpec) String ¶
func (x *NetworkPolicySpec) String() string
type ServiceBackendPort ¶ added in v1.2.4
type ServiceBackendPort struct { // Name is the name of the port on the Service. // This is a mutually exclusive setting with "Number". // +optional Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Number is the numerical port number (e.g. 80) on the Service. // This is a mutually exclusive setting with "Name". // +optional Number *int32 `protobuf:"varint,2,opt,name=number" json:"number,omitempty"` // contains filtered or unexported fields }
ServiceBackendPort is the service port being referenced.
func (*ServiceBackendPort) Descriptor
deprecated
added in
v1.2.4
func (*ServiceBackendPort) Descriptor() ([]byte, []int)
Deprecated: Use ServiceBackendPort.ProtoReflect.Descriptor instead.
func (*ServiceBackendPort) GetName ¶ added in v1.2.4
func (x *ServiceBackendPort) GetName() string
func (*ServiceBackendPort) GetNumber ¶ added in v1.2.4
func (x *ServiceBackendPort) GetNumber() int32
func (*ServiceBackendPort) ProtoMessage ¶ added in v1.2.4
func (*ServiceBackendPort) ProtoMessage()
func (*ServiceBackendPort) ProtoReflect ¶ added in v1.2.4
func (x *ServiceBackendPort) ProtoReflect() protoreflect.Message
func (*ServiceBackendPort) Reset ¶ added in v1.2.4
func (x *ServiceBackendPort) Reset()
func (*ServiceBackendPort) String ¶ added in v1.2.4
func (x *ServiceBackendPort) String() string