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 36da29c commit ac72f77
Show file tree
Hide file tree
Showing 33 changed files with 34 additions and 1,146 deletions.
35 changes: 0 additions & 35 deletions dist/images/install.sh
Expand Up @@ -1446,8 +1446,6 @@ spec:
type: boolean
disableInterConnection:
type: boolean
htbqos:
type: string
enableDHCP:
type: boolean
dhcpV4Options:
Expand Down Expand Up @@ -1745,37 +1743,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 @@ -1812,7 +1779,6 @@ rules:
- provider-networks/status
- security-groups
- security-groups/status
- htbqoses
- iptables-eips
- iptables-fip-rules
- iptables-dnat-rules
Expand Down Expand Up @@ -2315,7 +2281,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
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
Expand Up @@ -1232,8 +1232,6 @@ spec:
type: boolean
disableInterConnection:
type: boolean
htbqos:
type: string
enableDHCP:
type: boolean
dhcpV4Options:
Expand Down Expand Up @@ -1531,34 +1529,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
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
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
Expand Up @@ -121,9 +121,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 @@ -786,31 +784,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
81 changes: 5 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.

0 comments on commit ac72f77

Please sign in to comment.