Skip to content

Commit

Permalink
delete htb qos priority (#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Feb 6, 2023
1 parent 602ee37 commit cdcd9a9
Show file tree
Hide file tree
Showing 33 changed files with 29 additions and 1,146 deletions.
35 changes: 0 additions & 35 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1440,8 +1440,6 @@ spec:
type: boolean
disableInterConnection:
type: boolean
htbqos:
type: string
enableDHCP:
type: boolean
dhcpV4Options:
Expand Down Expand Up @@ -1737,37 +1735,6 @@ spec:
status: {}
conversion:
strategy: None
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: htbqoses.kubeovn.io
spec:
group: kubeovn.io
versions:
- name: v1
served: true
storage: true
additionalPrinterColumns:
- name: PRIORITY
type: string
jsonPath: .spec.priority
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
priority:
type: string # Value in range 0 to 4,294,967,295.
scope: Cluster
names:
plural: htbqoses
singular: htbqos
kind: HtbQos
shortNames:
- htbqos
EOF

if $DPDK; then
Expand Down Expand Up @@ -1804,7 +1771,6 @@ rules:
- provider-networks/status
- security-groups
- security-groups/status
- htbqoses
- iptables-eips
- iptables-fip-rules
- iptables-dnat-rules
Expand Down Expand Up @@ -2307,7 +2273,6 @@ rules:
- provider-networks/status
- security-groups
- security-groups/status
- htbqoses
- iptables-eips
- iptables-fip-rules
- iptables-dnat-rules
Expand Down
33 changes: 0 additions & 33 deletions dist/images/update/1.8.3-1.9.1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,6 @@ spec:
type: boolean
disableInterConnection:
type: boolean
htbqos:
type: string
scope: Cluster
names:
plural: subnets
Expand Down Expand Up @@ -674,36 +672,6 @@ spec:
conversion:
strategy: None
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: htbqoses.kubeovn.io
spec:
group: kubeovn.io
versions:
- name: v1
served: true
storage: true
additionalPrinterColumns:
- name: PRIORITY
type: string
jsonPath: .spec.priority
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
priority:
type: string # Value in range 0 to 4,294,967,295.
scope: Cluster
names:
plural: htbqoses
singular: htbqos
kind: HtbQos
shortNames:
- htbqos
EOF

kubectl apply -f kube-ovn-crd-1.9.yaml
Expand Down Expand Up @@ -740,7 +708,6 @@ rules:
- provider-networks/status
- security-groups
- security-groups/status
- htbqoses
verbs:
- "*"
- apiGroups:
Expand Down
33 changes: 0 additions & 33 deletions kubeovn-helm/templates/kube-ovn-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1224,8 +1224,6 @@ spec:
type: boolean
disableInterConnection:
type: boolean
htbqos:
type: string
enableDHCP:
type: boolean
dhcpV4Options:
Expand Down Expand Up @@ -1521,34 +1519,3 @@ spec:
status: {}
conversion:
strategy: None
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: htbqoses.kubeovn.io
spec:
group: kubeovn.io
versions:
- name: v1
served: true
storage: true
additionalPrinterColumns:
- name: PRIORITY
type: string
jsonPath: .spec.priority
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
priority:
type: string # Value in range 0 to 4,294,967,295.
scope: Cluster
names:
plural: htbqoses
singular: htbqos
kind: HtbQos
shortNames:
- htbqos
1 change: 0 additions & 1 deletion kubeovn-helm/templates/ovn-CR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ rules:
- provider-networks/status
- security-groups
- security-groups/status
- htbqoses
- iptables-eips
- iptables-fip-rules
- iptables-dnat-rules
Expand Down
2 changes: 0 additions & 2 deletions pkg/apis/kubeovn/v1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&OvnSnatRuleList{},
&SecurityGroup{},
&SecurityGroupList{},
&HtbQos{},
&HtbQosList{},
&SwitchLBRule{},
&SwitchLBRuleList{},
&VpcDns{},
Expand Down
29 changes: 1 addition & 28 deletions pkg/apis/kubeovn/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ type SubnetSpec struct {
Private bool `json:"private"`
AllowSubnets []string `json:"allowSubnets,omitempty"`

Vlan string `json:"vlan,omitempty"`
HtbQos string `json:"htbqos,omitempty"`

Vlan string `json:"vlan,omitempty"`
Vips []string `json:"vips,omitempty"`

LogicalGateway bool `json:"logicalGateway,omitempty"`
Expand Down Expand Up @@ -782,31 +780,6 @@ type SecurityGroupList struct {
Items []SecurityGroup `json:"items"`
}

// +genclient
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +genclient:nonNamespaced

type HtbQos struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec HtbQosSpec `json:"spec"`
}

type HtbQosSpec struct {
Priority string `json:"priority"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type HtbQosList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`

Items []HtbQos `json:"items"`
}

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +genclient:nonNamespaced
Expand Down
76 changes: 0 additions & 76 deletions pkg/apis/kubeovn/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cdcd9a9

Please sign in to comment.