Skip to content

Commit

Permalink
remove unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jun 25, 2023
1 parent 2cb162d commit b332d9c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 30 deletions.
9 changes: 0 additions & 9 deletions charts/templates/kube-ovn-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1781,9 +1781,6 @@ spec:
- name: Subnet
type: string
jsonPath: .spec.subnet
- name: Protocol
type: string
jsonPath: .spec.protocol
- name: IPs
type: string
jsonPath: .spec.ips
Expand Down Expand Up @@ -1816,12 +1813,6 @@ spec:
x-kubernetes-list-type: set
items:
type: string
protocol:
type: string
enum:
- IPv4
- IPv6
- Dual
ips:
type: array
minItems: 1
Expand Down
9 changes: 0 additions & 9 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2319,9 +2319,6 @@ spec:
- name: Subnet
type: string
jsonPath: .spec.subnet
- name: Protocol
type: string
jsonPath: .spec.protocol
- name: IPs
type: string
jsonPath: .spec.ips
Expand Down Expand Up @@ -2354,12 +2351,6 @@ spec:
x-kubernetes-list-type: set
items:
type: string
protocol:
type: string
enum:
- IPv4
- IPv6
- Dual
ips:
type: array
minItems: 1
Expand Down
1 change: 0 additions & 1 deletion pkg/apis/kubeovn/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ type IPPool struct {

type IPPoolSpec struct {
Subnet string `json:"subnet,omitempty"`
Protocol string `json:"protocol,omitempty"`
Namespaces []string `json:"namespaces,omitempty"`
IPs []string `json:"ips,omitempty"`
}
Expand Down
3 changes: 1 addition & 2 deletions pkg/controller/ippool.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ func (c *Controller) enqueueUpdateIPPool(old, new interface{}) {
}

if !reflect.DeepEqual(oldIPPool.Spec.Namespaces, newIPPool.Spec.Namespaces) ||
!reflect.DeepEqual(oldIPPool.Spec.IPs, newIPPool.Spec.IPs) ||
oldIPPool.Spec.Protocol != newIPPool.Spec.Protocol {
!reflect.DeepEqual(oldIPPool.Spec.IPs, newIPPool.Spec.IPs) {
klog.V(3).Infof("enqueue update ippool %s", key)
c.addOrUpdateIPPoolQueue.Add(key)
}
Expand Down
9 changes: 0 additions & 9 deletions yamls/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2090,9 +2090,6 @@ spec:
- name: Subnet
type: string
jsonPath: .spec.subnet
- name: Protocol
type: string
jsonPath: .spec.protocol
- name: IPs
type: string
jsonPath: .spec.ips
Expand Down Expand Up @@ -2125,12 +2122,6 @@ spec:
x-kubernetes-list-type: set
items:
type: string
protocol:
type: string
enum:
- IPv4
- IPv6
- Dual
ips:
type: array
minItems: 1
Expand Down

0 comments on commit b332d9c

Please sign in to comment.