Skip to content

Commit 2c0e9c8

Browse files
authored
Merge pull request #3275 from wojtek-t/remove_kubernetes_dependency
Reduce dependencies on kubernetes repo
2 parents 090da37 + 84f44e6 commit 2c0e9c8

File tree

7 files changed

+80
-178
lines changed

7 files changed

+80
-178
lines changed

clusterloader2/cmd/clusterloader.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
corev1 "k8s.io/api/core/v1"
3030
"k8s.io/client-go/kubernetes"
3131
"k8s.io/klog/v2"
32-
"k8s.io/kubernetes/pkg/cluster/ports"
3332
"k8s.io/perf-tests/clusterloader2/api"
3433
"k8s.io/perf-tests/clusterloader2/pkg/config"
3534
"k8s.io/perf-tests/clusterloader2/pkg/errors"
@@ -71,7 +70,7 @@ func initClusterFlags() {
7170
flags.StringEnvVar(&clusterLoaderConfig.ClusterConfig.KubeConfigPath, "kubeconfig", "KUBECONFIG", "", "Path to the kubeconfig file (if not empty, --run-from-cluster must be false)")
7271
flags.BoolEnvVar(&clusterLoaderConfig.ClusterConfig.RunFromCluster, "run-from-cluster", "RUN_FROM_CLUSTER", false, "Whether to use in-cluster client-config to create a client, --kubeconfig must be unset")
7372
flags.IntEnvVar(&clusterLoaderConfig.ClusterConfig.Nodes, "nodes", "NUM_NODES", 0, "number of nodes")
74-
flags.IntEnvVar(&clusterLoaderConfig.ClusterConfig.KubeletPort, "kubelet-port", "KUBELET_PORT", ports.KubeletPort, "Port of the kubelet to use")
73+
flags.IntEnvVar(&clusterLoaderConfig.ClusterConfig.KubeletPort, "kubelet-port", "KUBELET_PORT", 10250, "Port of the kubelet to use")
7574
flags.IntEnvVar(&clusterLoaderConfig.ClusterConfig.K8SClientsNumber, "k8s-clients-number", "K8S_CLIENTS_NUMBER", 0, fmt.Sprintf("(Optional) Number of k8s clients to use. If 0, will create 1 client per %d nodes", nodesPerClients))
7675
flags.StringEnvVar(&clusterLoaderConfig.ClusterConfig.EtcdCertificatePath, "etcd-certificate", "ETCD_CERTIFICATE", "/etc/srv/kubernetes/pki/etcd-apiserver-server.crt", "Path to the etcd certificate on the master machine")
7776
flags.StringEnvVar(&clusterLoaderConfig.ClusterConfig.EtcdKeyPath, "etcd-key", "ETCD_KEY", "/etc/srv/kubernetes/pki/etcd-apiserver-server.key", "Path to the etcd key on the master machine")

clusterloader2/go.mod

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -60,49 +60,35 @@ require (
6060
k8s.io/gengo v0.0.0-20230829151522-9cce18d56c01
6161
k8s.io/klog/v2 v2.130.1
6262
k8s.io/kubelet v0.31.4
63-
k8s.io/kubernetes v1.31.4
6463
)
6564

6665
require (
6766
cloud.google.com/go/compute/metadata v0.3.0 // indirect
6867
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
6968
github.com/AzureAD/microsoft-authentication-library-for-go v1.3.3 // indirect
70-
github.com/NYTimes/gziphandler v1.1.1 // indirect
71-
github.com/antlr4-go/antlr/v4 v4.13.0 // indirect
72-
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
7369
github.com/beorn7/perks v1.0.1 // indirect
7470
github.com/blang/semver/v4 v4.0.0 // indirect
75-
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
7671
github.com/cespare/xxhash/v2 v2.3.0 // indirect
77-
github.com/coreos/go-semver v0.3.1 // indirect
78-
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
7972
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
8073
github.com/edsrzf/mmap-go v1.0.0 // indirect
8174
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
82-
github.com/felixge/httpsnoop v1.0.4 // indirect
8375
github.com/fsnotify/fsnotify v1.7.0 // indirect
8476
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
8577
github.com/go-kit/kit v0.10.0 // indirect
8678
github.com/go-logfmt/logfmt v0.5.1 // indirect
8779
github.com/go-logr/logr v1.4.2 // indirect
88-
github.com/go-logr/stdr v1.2.2 // indirect
8980
github.com/go-openapi/jsonpointer v0.19.6 // indirect
9081
github.com/go-openapi/jsonreference v0.20.2 // indirect
9182
github.com/go-openapi/swag v0.22.4 // indirect
9283
github.com/gogo/protobuf v1.3.2 // indirect
9384
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
94-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
9585
github.com/golang/protobuf v1.5.4 // indirect
9686
github.com/golang/snappy v0.0.4 // indirect
97-
github.com/google/cel-go v0.20.1 // indirect
9887
github.com/google/gnostic-models v0.6.8 // indirect
9988
github.com/google/gofuzz v1.2.0 // indirect
10089
github.com/google/uuid v1.6.0 // indirect
10190
github.com/gorilla/websocket v1.5.0 // indirect
102-
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
103-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect
10491
github.com/imdario/mergo v0.3.6 // indirect
105-
github.com/inconshreveable/mousetrap v1.1.0 // indirect
10692
github.com/josharian/intern v1.0.0 // indirect
10793
github.com/json-iterator/go v1.1.12 // indirect
10894
github.com/klauspost/compress v1.17.9 // indirect
@@ -120,48 +106,21 @@ require (
120106
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
121107
github.com/prometheus/client_golang v1.20.4 // indirect
122108
github.com/prometheus/procfs v0.15.1 // indirect
123-
github.com/spf13/cobra v1.8.1 // indirect
124-
github.com/stoewer/go-strcase v1.2.0 // indirect
125109
github.com/uber/jaeger-client-go v2.25.0+incompatible // indirect
126110
github.com/uber/jaeger-lib v2.4.0+incompatible // indirect
127111
github.com/x448/float16 v0.8.4 // indirect
128-
go.etcd.io/etcd/api/v3 v3.5.14 // indirect
129-
go.etcd.io/etcd/client/pkg/v3 v3.5.14 // indirect
130-
go.etcd.io/etcd/client/v3 v3.5.14 // indirect
131-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.53.0 // indirect
132-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
133-
go.opentelemetry.io/otel v1.28.0 // indirect
134-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 // indirect
135-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.27.0 // indirect
136-
go.opentelemetry.io/otel/metric v1.28.0 // indirect
137-
go.opentelemetry.io/otel/sdk v1.28.0 // indirect
138-
go.opentelemetry.io/otel/trace v1.28.0 // indirect
139-
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
140112
go.uber.org/atomic v1.10.0 // indirect
141113
go.uber.org/goleak v1.3.0 // indirect
142-
go.uber.org/multierr v1.11.0 // indirect
143-
go.uber.org/zap v1.26.0 // indirect
144-
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect
145114
golang.org/x/net v0.35.0 // indirect
146115
golang.org/x/sys v0.31.0 // indirect
147116
golang.org/x/term v0.30.0 // indirect
148117
golang.org/x/text v0.23.0 // indirect
149-
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
150-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
151-
google.golang.org/grpc v1.65.0 // indirect
152118
google.golang.org/protobuf v1.36.5 // indirect
153119
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
154120
gopkg.in/inf.v0 v0.9.1 // indirect
155-
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
156121
gopkg.in/yaml.v3 v3.0.1 // indirect
157-
k8s.io/apiextensions-apiserver v0.0.0 // indirect
158-
k8s.io/apiserver v0.31.4 // indirect
159-
k8s.io/cloud-provider v0.0.0 // indirect
160-
k8s.io/controller-manager v0.31.4 // indirect
161-
k8s.io/kms v0.31.4 // indirect
162122
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect
163123
k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 // indirect
164-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 // indirect
165124
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
166125
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
167126
sigs.k8s.io/yaml v1.4.0 // indirect

0 commit comments

Comments
 (0)