Skip to content

Commit

Permalink
Fix some typos and remove unused variables in ci/kind scripts (#6494)
Browse files Browse the repository at this point in the history
Signed-off-by: Hongliang Liu <[email protected]>
  • Loading branch information
hongliangl authored Jun 28, 2024
1 parent a77f1e6 commit 3a18bab
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
34 changes: 17 additions & 17 deletions ci/kind/kind-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,35 @@ function echoerr {
}

_usage="
Usage: $0 create CLUSTER_NAME [--pod-cidr POD_CIDR] [--service-cidr SERVICE_CIDR] [--antrea-cni] [--num-workers NUM_WORKERS] [--images IMAGES] [--subnets SUBNETS] [--ip-family ipv4|ipv6|dual] [--k8s-version VERSION]
Usage: $0 create CLUSTER_NAME [--pod-cidr POD_CIDR] [--service-cidr SERVICE_CIDR] [--antrea-cni] [--num-workers NUM_WORKERS] [--images IMAGES] [--subnets SUBNETS] [--ip-family ipv4|ipv6|dual] [--k8s-version VERSION]
$0 destroy CLUSTER_NAME
$0 help
where:
create: create a kind cluster with name CLUSTER_NAME
destroy: delete a kind cluster with name CLUSTER_NAME
--pod-cidr: specifies pod cidr used in kind cluster, kind's default value will be used if empty.
--service-cidr: specifies service clusterip cidr used in kind cluster, kind's default value will be used if empty.
--encap-mode: inter-node pod traffic encap mode, default is encap
--no-proxy: disable Antrea proxy
--no-kube-proxy: disable Kube proxy
--no-kube-node-ipam: disable NodeIPAM in kube-controller-manager
create: create a kind cluster with name CLUSTER_NAME.
destroy: delete a kind cluster with name CLUSTER_NAME.
--pod-cidr: specify pod cidr used in kind cluster, kind's default value will be used if empty.
--service-cidr: specify service clusterip cidr used in kind cluster, kind's default value will be used if empty.
--encap-mode: inter-node pod traffic encap mode, default is encap.
--no-proxy: disable Antrea proxy.
--no-kube-proxy: disable Kube proxy.
--no-kube-node-ipam: disable NodeIPAM in kube-controller-manager.
--antrea-cni: install Antrea CNI in Kind cluster; by default the cluster is created without a CNI installed.
--prometheus: create RBAC resources for Prometheus, default is false
--num-workers: specifies number of worker nodes in kind cluster, default is $NUM_WORKERS
--images: specifies images loaded to kind cluster, default is $IMAGES
--prometheus: create RBAC resources for Prometheus, default is false.
--num-workers: specify number of worker nodes in kind cluster, default is $NUM_WORKERS.
--images: specify images loaded to kind cluster, default is $IMAGES.
--subnets: a subnet creates a separate Docker bridge network (named 'antrea-<idx>') with the assigned subnet. A worker
Node will be connected to one of those network. Default is empty: all worker Nodes connected to the default Docker
bridge network created by kind.
--vlan-subnets: specifies the subnets of the VLAN to which all Nodes will be connected, in addition to the primary network.
--vlan-subnets: specify the subnets of the VLAN to which all Nodes will be connected, in addition to the primary network.
The IP expression of the subnet will be used as the gateway IP. For example, '--vlan-subnets 10.100.100.1/24' means
that a VLAN sub-interface will be created on the primary Docker bridge, and it will be assigned the 10.100.100.1/24 address.
--vlan-id: specifies the ID of the VLAN to which all Nodes will be connected, in addition to the primary network. Note,
--vlan-id: specify the ID of the VLAN to which all Nodes will be connected, in addition to the primary network. Note,
'--vlan-subnets' and '--vlan-id' must be specified together.
--extra-networks: an extra network creates a separate Docker bridge network (named 'antrea-<idx>') with the assigned
subnet. All worker Nodes will be connected to all the extra networks, in addition to the default Docker bridge
network. Note, '--extra-networks' and '--subnets' cannot be specified together.
--ip-family: specifies the ip-family for the kind cluster, default is $IP_FAMILY.
--k8s-version: specifies the Kubernetes version of the kind cluster, kind's default K8s version will be used if empty.
--ip-family: specify the ip-family for the kind cluster, default is $IP_FAMILY.
--k8s-version: specify the Kubernetes version of the kind cluster, kind's default K8s version will be used if empty.
--deploy-external-server: deploy a container running as an external server for the cluster.
--all: delete all kind clusters
--until: delete kind clusters that have been created before the specified duration.
Expand Down Expand Up @@ -574,7 +574,7 @@ while [[ $# -gt 0 ]]
shift
;;
--num-workers)
add_option "--num-workers" "create"
add_option "--num-workers" "create"
NUM_WORKERS="$2"
shift 2
;;
Expand Down
6 changes: 0 additions & 6 deletions ci/kind/test-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ _usage="Usage: $0 [--encap-mode <mode>] [--ip-family <v4|v6|dual>] [--coverage]
--networkpolicy-evaluation Configures additional NetworkPolicy evaluation level when running e2e tests.
--extra-network Creates an extra network that worker Nodes will connect to. Cannot be specified with the hybrid mode.
--extra-vlan Creates an subnet-based VLAN that worker Nodes will connect to.
--deploy-external-server Deploy a container running as an external server for the cluster.
--skip A comma-separated list of keywords, with which tests should be skipped.
--coverage Enables measure Antrea code coverage when running e2e tests on kind.
--setup-only Only perform setting up the cluster and run test.
Expand Down Expand Up @@ -80,7 +79,6 @@ flow_visibility=false
np_evaluation=false
extra_network=false
extra_vlan=false
deploy_external_server=false
coverage=false
skiplist=""
setup_only=false
Expand Down Expand Up @@ -144,10 +142,6 @@ case $key in
extra_vlan=true
shift
;;
--deploy-external-server)
deploy_external_server=true
shift
;;
--coverage)
coverage=true
shift
Expand Down

0 comments on commit 3a18bab

Please sign in to comment.