Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ExternalIPPool API and update Egress API for failover support #2236

Merged
merged 1 commit into from
Jun 10, 2021
Merged
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
96 changes: 95 additions & 1 deletion build/yamls/antrea-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,11 @@ spec:
openAPIV3Schema:
properties:
spec:
anyOf:
- required:
- egressIP
- required:
- externalIPPool
properties:
appliedTo:
properties:
Expand Down Expand Up @@ -1405,9 +1410,10 @@ spec:
- format: ipv4
- format: ipv6
type: string
externalIPPool:
type: string
required:
- appliedTo
- egressIP
type: object
required:
- spec
Expand Down Expand Up @@ -1533,6 +1539,85 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
name: externalippools.crd.antrea.io
spec:
group: crd.antrea.io
names:
kind: ExternalIPPool
plural: externalippools
shortNames:
- eip
singular: externalippool
scope: Cluster
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
properties:
spec:
properties:
ipRanges:
items:
oneOf:
- required:
- cidr
- required:
- start
- end
properties:
cidr:
format: cidr
type: string
end:
oneOf:
- format: ipv4
- format: ipv6
type: string
start:
oneOf:
- format: ipv4
- format: ipv6
type: string
type: object
type: array
nodeSelector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string
values:
items:
type: string
type: array
type: object
type: array
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
required:
- ipRanges
- nodeSelector
type: object
required:
- spec
type: object
served: true
storage: true
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
Expand Down Expand Up @@ -3404,6 +3489,15 @@ rules:
- get
- watch
- list
- update
- apiGroups:
- crd.antrea.io
resources:
- externalippools
verbs:
- get
- watch
- list
- apiGroups:
- clusterinformation.antrea.tanzu.vmware.com
resources:
Expand Down
96 changes: 95 additions & 1 deletion build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,11 @@ spec:
openAPIV3Schema:
properties:
spec:
anyOf:
- required:
- egressIP
- required:
- externalIPPool
properties:
appliedTo:
properties:
Expand Down Expand Up @@ -1405,9 +1410,10 @@ spec:
- format: ipv4
- format: ipv6
type: string
externalIPPool:
type: string
required:
- appliedTo
- egressIP
type: object
required:
- spec
Expand Down Expand Up @@ -1533,6 +1539,85 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
name: externalippools.crd.antrea.io
spec:
group: crd.antrea.io
names:
kind: ExternalIPPool
plural: externalippools
shortNames:
- eip
singular: externalippool
scope: Cluster
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
properties:
spec:
properties:
ipRanges:
items:
oneOf:
- required:
- cidr
- required:
- start
- end
properties:
cidr:
format: cidr
type: string
end:
oneOf:
- format: ipv4
- format: ipv6
type: string
start:
oneOf:
- format: ipv4
- format: ipv6
type: string
type: object
type: array
nodeSelector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string
values:
items:
type: string
type: array
type: object
type: array
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
required:
- ipRanges
- nodeSelector
type: object
required:
- spec
type: object
served: true
storage: true
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
Expand Down Expand Up @@ -3404,6 +3489,15 @@ rules:
- get
- watch
- list
- update
- apiGroups:
- crd.antrea.io
resources:
- externalippools
verbs:
- get
- watch
- list
- apiGroups:
- clusterinformation.antrea.tanzu.vmware.com
resources:
Expand Down
96 changes: 95 additions & 1 deletion build/yamls/antrea-gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,11 @@ spec:
openAPIV3Schema:
properties:
spec:
anyOf:
- required:
- egressIP
- required:
- externalIPPool
properties:
appliedTo:
properties:
Expand Down Expand Up @@ -1405,9 +1410,10 @@ spec:
- format: ipv4
- format: ipv6
type: string
externalIPPool:
type: string
required:
- appliedTo
- egressIP
type: object
required:
- spec
Expand Down Expand Up @@ -1533,6 +1539,85 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
name: externalippools.crd.antrea.io
spec:
group: crd.antrea.io
names:
kind: ExternalIPPool
plural: externalippools
shortNames:
- eip
singular: externalippool
scope: Cluster
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
properties:
spec:
properties:
ipRanges:
items:
oneOf:
- required:
- cidr
- required:
- start
- end
properties:
cidr:
format: cidr
type: string
end:
oneOf:
- format: ipv4
- format: ipv6
type: string
start:
oneOf:
- format: ipv4
- format: ipv6
type: string
type: object
type: array
nodeSelector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string
values:
items:
type: string
type: array
type: object
type: array
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
required:
- ipRanges
- nodeSelector
type: object
required:
- spec
type: object
served: true
storage: true
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea
Expand Down Expand Up @@ -3404,6 +3489,15 @@ rules:
- get
- watch
- list
- update
- apiGroups:
- crd.antrea.io
resources:
- externalippools
verbs:
- get
- watch
- list
- apiGroups:
- clusterinformation.antrea.tanzu.vmware.com
resources:
Expand Down
Loading