Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Kube OVN
Commits
ccda611a
Commit
ccda611a
authored
4 years ago
by
xieyanker
Browse files
Options
Download
Email Patches
Plain Diff
Fix the problem of confusion between old and new versions of crd
parent
8d4ba39b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dist/images/install-pre-1.16.sh
+202
-3
dist/images/install-pre-1.16.sh
dist/images/install.sh
+3
-3
dist/images/install.sh
yamls/crd-pre-1.16.yaml
+200
-3
yamls/crd-pre-1.16.yaml
yamls/crd.yaml
+3
-3
yamls/crd.yaml
with
408 additions
and
12 deletions
+408
-12
dist/images/install-pre-1.16.sh
+
202
-
3
View file @
ccda611a
...
...
@@ -134,6 +134,38 @@ spec:
- name: Subnet
type: string
JSONPath: .spec.subnet
validation:
openAPIV3Schema:
properties:
spec:
type: object
properties:
podName:
type: string
namespace:
type: string
subnet:
type: string
attachSubnets:
type: array
items:
type: string
nodeName:
type: string
ipAddress:
type: string
attachIps:
type: array
items:
type: string
macAddress:
type: string
attachMacs:
type: array
items:
type: string
containerID:
type: string
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
...
...
@@ -152,6 +184,12 @@ spec:
subresources:
status: {}
additionalPrinterColumns:
- name: Provider
type: string
JSONPath: .spec.provider
- name: Vpc
type: string
JSONPath: .spec.vpc
- name: Protocol
type: string
JSONPath: .spec.protocol
...
...
@@ -179,13 +217,73 @@ spec:
validation:
openAPIV3Schema:
properties:
status:
type: object
properties:
availableIPs:
type: number
usingIPs:
type: number
activateGateway:
type: string
conditions:
type: array
items:
type: object
properties:
type:
type: string
status:
type: string
reason:
type: string
message:
type: string
lastUpdateTime:
type: string
lastTransitionTime:
type: string
spec:
required: ["cidrBlock"]
type: object
properties:
vpc:
type: string
default:
type: boolean
protocol:
type: string
cidrBlock:
type: "string"
type: string
namespaces:
type: array
items:
type: string
gateway:
type: "string"
type: string
provider:
type: string
excludeIps:
type: array
items:
type: string
gatewayType:
type: string
allowSubnets:
type: array
items:
type: string
gatewayNode:
type: string
natOutgoing:
type: boolean
private:
type: boolean
vlan:
type: string
underlayGateway:
type: boolean
disableInterConnection:
type: boolean
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
...
...
@@ -211,6 +309,107 @@ spec:
- name: Subnet
type: string
JSONPath: .spec.subnet
validation:
openAPIV3Schema:
properties:
spec:
type: object
properties:
vlanId:
type: integer
providerInterfaceName:
type: string
logicalInterfaceName:
type: string
subnet:
type: string
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: vpcs.kubeovn.io
spec:
group: kubeovn.io
version: v1
scope: Cluster
names:
plural: vpcs
singular: vpc
kind: Vpc
listKind: VpcList
shortNames:
- vpc
subresources:
status: {}
additionalPrinterColumns:
- JSONPath: .status.standby
name: Standby
type: boolean
- JSONPath: .status.subnets
name: Subnets
type: string
validation:
openAPIV3Schema:
properties:
spec:
properties:
namespaces:
items:
type: string
type: array
staticRoutes:
items:
properties:
policy:
type: string
cidr:
type: string
nextHopIP:
type: string
type: object
type: array
type: object
status:
properties:
conditions:
items:
properties:
lastTransitionTime:
type: string
lastUpdateTime:
type: string
message:
type: string
reason:
type: string
status:
type: string
type:
type: string
type: object
type: array
default:
type: boolean
defaultLogicalSwitch:
type: string
router:
type: string
standby:
type: boolean
subnets:
items:
type: string
type: array
tcpLoadBalancer:
type: string
tcpSessionLoadBalancer:
type: string
udpLoadBalancer:
type: string
udpSessionLoadBalancer:
type: string
type: object
type: object
EOF
if
$DPDK
;
then
...
...
This diff is collapsed.
Click to expand it.
dist/images/install.sh
+
3
-
3
View file @
ccda611a
...
...
@@ -229,9 +229,6 @@ spec:
served: true
storage: true
additionalPrinterColumns:
- name: Provider
type: string
jsonPath: .spec.provider
- name: IP
type: string
jsonPath: .spec.ipAddress
...
...
@@ -298,6 +295,9 @@ spec:
subresources:
status: {}
additionalPrinterColumns:
- name: Provider
type: string
jsonPath: .spec.provider
- name: Vpc
type: string
jsonPath: .spec.vpc
...
...
This diff is collapsed.
Click to expand it.
yamls/crd-pre-1.16.yaml
+
200
-
3
View file @
ccda611a
...
...
@@ -25,6 +25,38 @@ spec:
-
name
:
Subnet
type
:
string
JSONPath
:
.spec.subnet
validation
:
openAPIV3Schema
:
properties
:
spec
:
type
:
object
properties
:
podName
:
type
:
string
namespace
:
type
:
string
subnet
:
type
:
string
attachSubnets
:
type
:
array
items
:
type
:
string
nodeName
:
type
:
string
ipAddress
:
type
:
string
attachIps
:
type
:
array
items
:
type
:
string
macAddress
:
type
:
string
attachMacs
:
type
:
array
items
:
type
:
string
containerID
:
type
:
string
---
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
...
...
@@ -46,6 +78,9 @@ spec:
-
name
:
Provider
type
:
string
JSONPath
:
.spec.provider
-
name
:
Vpc
type
:
string
JSONPath
:
.spec.vpc
-
name
:
Protocol
type
:
string
JSONPath
:
.spec.protocol
...
...
@@ -73,13 +108,73 @@ spec:
validation
:
openAPIV3Schema
:
properties
:
status
:
type
:
object
properties
:
availableIPs
:
type
:
number
usingIPs
:
type
:
number
activateGateway
:
type
:
string
conditions
:
type
:
array
items
:
type
:
object
properties
:
type
:
type
:
string
status
:
type
:
string
reason
:
type
:
string
message
:
type
:
string
lastUpdateTime
:
type
:
string
lastTransitionTime
:
type
:
string
spec
:
required
:
[
"
cidrBlock"
]
type
:
object
properties
:
vpc
:
type
:
string
default
:
type
:
boolean
protocol
:
type
:
string
cidrBlock
:
type
:
"
string"
type
:
string
namespaces
:
type
:
array
items
:
type
:
string
gateway
:
type
:
"
string"
type
:
string
provider
:
type
:
string
excludeIps
:
type
:
array
items
:
type
:
string
gatewayType
:
type
:
string
allowSubnets
:
type
:
array
items
:
type
:
string
gatewayNode
:
type
:
string
natOutgoing
:
type
:
boolean
private
:
type
:
boolean
vlan
:
type
:
string
underlayGateway
:
type
:
boolean
disableInterConnection
:
type
:
boolean
---
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
...
...
@@ -105,3 +200,105 @@ spec:
-
name
:
Subnet
type
:
string
JSONPath
:
.spec.subnet
validation
:
openAPIV3Schema
:
properties
:
spec
:
type
:
object
properties
:
vlanId
:
type
:
integer
providerInterfaceName
:
type
:
string
logicalInterfaceName
:
type
:
string
subnet
:
type
:
string
---
apiVersion
:
apiextensions.k8s.io/v1beta1
kind
:
CustomResourceDefinition
metadata
:
name
:
vpcs.kubeovn.io
spec
:
group
:
kubeovn.io
version
:
v1
scope
:
Cluster
names
:
plural
:
vpcs
singular
:
vpc
kind
:
Vpc
listKind
:
VpcList
shortNames
:
-
vpc
subresources
:
status
:
{}
additionalPrinterColumns
:
-
JSONPath
:
.status.standby
name
:
Standby
type
:
boolean
-
JSONPath
:
.status.subnets
name
:
Subnets
type
:
string
validation
:
openAPIV3Schema
:
properties
:
spec
:
properties
:
namespaces
:
items
:
type
:
string
type
:
array
staticRoutes
:
items
:
properties
:
policy
:
type
:
string
cidr
:
type
:
string
nextHopIP
:
type
:
string
type
:
object
type
:
array
type
:
object
status
:
properties
:
conditions
:
items
:
properties
:
lastTransitionTime
:
type
:
string
lastUpdateTime
:
type
:
string
message
:
type
:
string
reason
:
type
:
string
status
:
type
:
string
type
:
type
:
string
type
:
object
type
:
array
default
:
type
:
boolean
defaultLogicalSwitch
:
type
:
string
router
:
type
:
string
standby
:
type
:
boolean
subnets
:
items
:
type
:
string
type
:
array
tcpLoadBalancer
:
type
:
string
tcpSessionLoadBalancer
:
type
:
string
udpLoadBalancer
:
type
:
string
udpSessionLoadBalancer
:
type
:
string
type
:
object
type
:
object
This diff is collapsed.
Click to expand it.
yamls/crd.yaml
+
3
-
3
View file @
ccda611a
...
...
@@ -9,9 +9,6 @@ spec:
served
:
true
storage
:
true
additionalPrinterColumns
:
-
name
:
Provider
type
:
string
jsonPath
:
.spec.provider
-
name
:
IP
type
:
string
jsonPath
:
.spec.ipAddress
...
...
@@ -78,6 +75,9 @@ spec:
subresources
:
status
:
{}
additionalPrinterColumns
:
-
name
:
Provider
type
:
string
jsonPath
:
.spec.provider
-
name
:
Vpc
type
:
string
jsonPath
:
.spec.vpc
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help