Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/network-policy-api/pull/300
policy.networking.k8s.io/bundle-version: v0.1.7
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/network-policy-api/pull/347
policy.networking.k8s.io/bundle-version: v0.2.0
policy.networking.k8s.io/channel: standard
name: clusternetworkpolicies.policy.networking.k8s.io
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ spec:
x-kubernetes-map-type: atomic
maxItems: 500
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
ignoredInterfaces:
description:
IgnoredInterfaces indicates the network interfaces that
Expand Down Expand Up @@ -202,7 +202,7 @@ spec:
x-kubernetes-map-type: atomic
maxItems: 500
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
programClusterRoutes:
description: |-
ProgramClusterRoutes controls how a cluster node gets a route to a workload on another node,
Expand All @@ -228,7 +228,7 @@ spec:
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
serviceExternalIPs:
description: |-
ServiceExternalIPs are the CIDR blocks for Kubernetes Service External IPs.
Expand All @@ -244,7 +244,7 @@ spec:
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
serviceLoadBalancerAggregation:
default: Enabled
description: |-
Expand All @@ -271,7 +271,7 @@ spec:
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
type: object
x-kubernetes-validations:
- message:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,14 @@ spec:
[Default: unset - read from net.ipv4.ipfrag_time]
pattern: ^([0-9]+(\\.[0-9]+)?(ms|s|m|h))*$
type: string
bpfIPFragmentReassemblyEnabled:
description: |-
BPFIPFragmentReassemblyEnabled controls whether Felix loads the BPF program that
reassembles out-of-order IP fragments from external networks. This program requires
a kernel newer than 5.10. When enabled (the default) and the program fails to load,
Felix reports not-ready until the user sets this to false. When false, fragmented
packets from external sources are dropped. [Default: true]
type: boolean
bpfJITHardening:
allOf:
- enum:
Expand Down Expand Up @@ -1101,6 +1109,22 @@ spec:
"NftablesRefreshInterval controls the interval at which
Felix periodically refreshes the nftables rules. [Default: 90s]"
type: string
nodeSelector:
description: |-
NodeSelector is an optional label selector that restricts this FelixConfiguration
to apply only to nodes that match the given selector. This field is only valid
on FelixConfiguration resources whose name is not "default" and does not start
with "node.". For resources named "default", the configuration applies globally
to all nodes. For resources named "node.<nodename>", the configuration applies to
the named node only.

At most one selector-scoped FelixConfiguration should match any given node.
If multiple selector-scoped resources match, the oldest (by creation
timestamp) is used and a warning is logged. This prevents an accidentally
created conflicting resource from disrupting an existing, working
configuration.
maxLength: 1024
type: string
openstackRegion:
description: |-
OpenstackRegion is the name of the region that a particular Felix belongs to. In a multi-region
Expand Down Expand Up @@ -1434,5 +1458,13 @@ spec:
== 0 || (isIP(self.deviceRouteSourceAddressIPv6) && ip(self.deviceRouteSourceAddressIPv6).family()
== 6)"
type: object
x-kubernetes-validations:
- message:
nodeSelector must not be set on the 'default' or per-node ('node.*')
FelixConfiguration
reason: FieldValueForbidden
rule:
"self.metadata.name == 'default' || self.metadata.name.startsWith('node.')
? !has(self.spec.nodeSelector) : true"
served: true
storage: true
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
x-kubernetes-map-type: atomic
maxItems: 500
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
ignoredInterfaces:
description:
IgnoredInterfaces indicates the network interfaces that
Expand Down Expand Up @@ -204,7 +204,7 @@ spec:
x-kubernetes-map-type: atomic
maxItems: 500
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
programClusterRoutes:
description: |-
ProgramClusterRoutes controls how a cluster node gets a route to a workload on another node,
Expand All @@ -230,7 +230,7 @@ spec:
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
serviceExternalIPs:
description: |-
ServiceExternalIPs are the CIDR blocks for Kubernetes Service External IPs.
Expand All @@ -246,7 +246,7 @@ spec:
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
serviceLoadBalancerAggregation:
default: Enabled
description: |-
Expand All @@ -273,7 +273,7 @@ spec:
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-type: set
x-kubernetes-list-type: atomic
type: object
x-kubernetes-validations:
- message:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,14 @@ spec:
[Default: unset - read from net.ipv4.ipfrag_time]
pattern: ^([0-9]+(\\.[0-9]+)?(ms|s|m|h))*$
type: string
bpfIPFragmentReassemblyEnabled:
description: |-
BPFIPFragmentReassemblyEnabled controls whether Felix loads the BPF program that
reassembles out-of-order IP fragments from external networks. This program requires
a kernel newer than 5.10. When enabled (the default) and the program fails to load,
Felix reports not-ready until the user sets this to false. When false, fragmented
packets from external sources are dropped. [Default: true]
type: boolean
bpfJITHardening:
allOf:
- enum:
Expand Down Expand Up @@ -1100,6 +1108,22 @@ spec:
"NftablesRefreshInterval controls the interval at which
Felix periodically refreshes the nftables rules. [Default: 90s]"
type: string
nodeSelector:
description: |-
NodeSelector is an optional label selector that restricts this FelixConfiguration
to apply only to nodes that match the given selector. This field is only valid
on FelixConfiguration resources whose name is not "default" and does not start
with "node.". For resources named "default", the configuration applies globally
to all nodes. For resources named "node.<nodename>", the configuration applies to
the named node only.

At most one selector-scoped FelixConfiguration should match any given node.
If multiple selector-scoped resources match, the oldest (by creation
timestamp) is used and a warning is logged. This prevents an accidentally
created conflicting resource from disrupting an existing, working
configuration.
maxLength: 1024
type: string
openstackRegion:
description: |-
OpenstackRegion is the name of the region that a particular Felix belongs to. In a multi-region
Expand Down Expand Up @@ -1436,5 +1460,13 @@ spec:
- metadata
- spec
type: object
x-kubernetes-validations:
- message:
nodeSelector must not be set on the 'default' or per-node ('node.*')
FelixConfiguration
reason: FieldValueForbidden
rule:
"self.metadata.name == 'default' || self.metadata.name.startsWith('node.')
? !has(self.spec.nodeSelector) : true"
served: true
storage: true
50 changes: 38 additions & 12 deletions pkg/imports/crds/enterprise/01-crd-eck-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: agents.agent.k8s.elastic.co
spec:
group: agent.k8s.elastic.co
Expand Down Expand Up @@ -502,7 +502,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: apmservers.apm.k8s.elastic.co
spec:
group: apm.k8s.elastic.co
Expand Down Expand Up @@ -1024,7 +1024,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: autoopsagentpolicies.autoops.k8s.elastic.co
spec:
group: autoops.k8s.elastic.co
Expand Down Expand Up @@ -1068,6 +1068,32 @@ spec:
type: object
image:
type: string
namespaceSelector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
type: string
values:
items:
type: string
type: array
x-kubernetes-list-type: atomic
required:
- key
- operator
type: object
type: array
x-kubernetes-list-type: atomic
matchLabels:
additionalProperties:
type: string
type: object
type: object
x-kubernetes-map-type: atomic
podTemplate:
type: object
x-kubernetes-preserve-unknown-fields: true
Expand Down Expand Up @@ -1141,7 +1167,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: beats.beat.k8s.elastic.co
spec:
group: beat.k8s.elastic.co
Expand Down Expand Up @@ -1380,7 +1406,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: elasticmapsservers.maps.k8s.elastic.co
spec:
group: maps.k8s.elastic.co
Expand Down Expand Up @@ -1637,7 +1663,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: elasticsearchautoscalers.autoscaling.k8s.elastic.co
spec:
group: autoscaling.k8s.elastic.co
Expand Down Expand Up @@ -1894,7 +1920,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: elasticsearches.elasticsearch.k8s.elastic.co
spec:
group: elasticsearch.k8s.elastic.co
Expand Down Expand Up @@ -3263,7 +3289,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: enterprisesearches.enterprisesearch.k8s.elastic.co
spec:
group: enterprisesearch.k8s.elastic.co
Expand Down Expand Up @@ -3741,7 +3767,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: kibanas.kibana.k8s.elastic.co
spec:
group: kibana.k8s.elastic.co
Expand Down Expand Up @@ -4309,7 +4335,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: logstashes.logstash.k8s.elastic.co
spec:
group: logstash.k8s.elastic.co
Expand Down Expand Up @@ -4852,7 +4878,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: packageregistries.packageregistry.k8s.elastic.co
spec:
group: packageregistry.k8s.elastic.co
Expand Down Expand Up @@ -5094,7 +5120,7 @@ metadata:
labels:
app.kubernetes.io/instance: 'elastic-operator'
app.kubernetes.io/name: 'eck-operator-crds'
app.kubernetes.io/version: '3.3.0'
app.kubernetes.io/version: '3.3.2'
name: stackconfigpolicies.stackconfigpolicy.k8s.elastic.co
spec:
group: stackconfigpolicy.k8s.elastic.co
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ spec:
- selector
- startTime
type: object
x-kubernetes-validations:
- message: endTime must be after startTime
reason: FieldValueInvalid
rule: "!has(self.endTime) || self.endTime > self.startTime"
status:
description: AlertExceptionStatus contains the status of an alert exception.
type: object
Expand Down
Loading