Skip to content

Commit

Permalink
upgrade to latest dependencies
Browse files Browse the repository at this point in the history
bumping knative.dev/hack/schema a861c8e...d7586a2:%0A  > d7586a2 Update e2e kntest link (# 295)%0Abumping knative.dev/pkg 74c4be5...eb63a40:%0A  > eb63a40 Support to set qps and burst via env variable (# 2755)%0Abumping knative.dev/hack a861c8e...d7586a2:%0A  > d7586a2 Update e2e kntest link (# 295)

Signed-off-by: Knative Automation <[email protected]>
  • Loading branch information
knative-automation committed Jun 21, 2023
1 parent c9dcaf3 commit 9b3a30d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ require (
k8s.io/apiserver v0.26.5
k8s.io/client-go v0.26.5
k8s.io/utils v0.0.0-20221108210102-8e77b1f39fe2
knative.dev/hack v0.0.0-20230606014732-a861c8e9da08
knative.dev/hack/schema v0.0.0-20230606014732-a861c8e9da08
knative.dev/pkg v0.0.0-20230612155445-74c4be5e935e
knative.dev/hack v0.0.0-20230615155948-d7586a218601
knative.dev/hack/schema v0.0.0-20230615155948-d7586a218601
knative.dev/pkg v0.0.0-20230616134650-eb63a40adfb0
knative.dev/reconciler-test v0.0.0-20230613125845-0061957b480e
sigs.k8s.io/yaml v1.3.0
)
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1048,12 +1048,12 @@ k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 h1:+70TFaan3hfJzs+7VK2o+O
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280/go.mod h1:+Axhij7bCpeqhklhUTe3xmOn6bWxolyZEeyaFpjGtl4=
k8s.io/utils v0.0.0-20221108210102-8e77b1f39fe2 h1:GfD9OzL11kvZN5iArC6oTS7RTj7oJOIfnislxYlqTj8=
k8s.io/utils v0.0.0-20221108210102-8e77b1f39fe2/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
knative.dev/hack v0.0.0-20230606014732-a861c8e9da08 h1:6DH2ktsj5KoKMAxPFmiDopMCVR1LzhxFNy3D/JCg7JE=
knative.dev/hack v0.0.0-20230606014732-a861c8e9da08/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
knative.dev/hack/schema v0.0.0-20230606014732-a861c8e9da08 h1:6GxAX3NCBTNUcK8h27G8gQEvVFZQ1ElWCH2fFdLUBBA=
knative.dev/hack/schema v0.0.0-20230606014732-a861c8e9da08/go.mod h1:GeIb+PLd5mllawcpHEGF5J5fYTQrvgEO5liao8lUKUs=
knative.dev/pkg v0.0.0-20230612155445-74c4be5e935e h1:koM+NopG2Yw738NlJhQF3ZwpyS+HHznuLm294VYlUKg=
knative.dev/pkg v0.0.0-20230612155445-74c4be5e935e/go.mod h1:dqC6IrvyBE7E+oZocs5PkVhq1G59pDTA7r8U17EAKMk=
knative.dev/hack v0.0.0-20230615155948-d7586a218601 h1:yMe29SMHrAIt3+J+APvf4WVP6cW7ZDtUhh5uxD5ERdA=
knative.dev/hack v0.0.0-20230615155948-d7586a218601/go.mod h1:yk2OjGDsbEnQjfxdm0/HJKS2WqTLEFg/N6nUs6Rqx3Q=
knative.dev/hack/schema v0.0.0-20230615155948-d7586a218601 h1:NDs3F/IZ1GmUzFuaFWVk2vz6XM+rWfTNVco0NglJ2+k=
knative.dev/hack/schema v0.0.0-20230615155948-d7586a218601/go.mod h1:GeIb+PLd5mllawcpHEGF5J5fYTQrvgEO5liao8lUKUs=
knative.dev/pkg v0.0.0-20230616134650-eb63a40adfb0 h1:weQWWxEEbNOPuL4qtGiBZuMSFhcjF/Cu163uktd/xFE=
knative.dev/pkg v0.0.0-20230616134650-eb63a40adfb0/go.mod h1:dqC6IrvyBE7E+oZocs5PkVhq1G59pDTA7r8U17EAKMk=
knative.dev/reconciler-test v0.0.0-20230613125845-0061957b480e h1:m9YZbaTbljnHrdIstFP/jXikjYKRuBHz4CQ3YfDS1Og=
knative.dev/reconciler-test v0.0.0-20230613125845-0061957b480e/go.mod h1:iB/uRML7hm+V0YvUrAxO+SSq1wg0FRi2p8aVCIjbzeo=
pgregory.net/rapid v0.3.3 h1:jCjBsY4ln4Atz78QoBWxUEvAHaFyNDQg9+WU62aCn1U=
Expand Down
2 changes: 1 addition & 1 deletion vendor/knative.dev/hack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ main "$@"
This is a helper script for Knative E2E test scripts. To use it:

1. [optional] Customize the test cluster. Pass the flags as described
[here](../tools/kntest/pkg/kubetest2/gke/README.md) to the `initialize` function
[here](https://github.com/knative/toolbox/blob/main/kntest/pkg/kubetest2/gke/README.md) to the `initialize` function
call if the default values don't fit your needs.

1. Source the script.
Expand Down
16 changes: 14 additions & 2 deletions vendor/knative.dev/pkg/environment/client_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ package environment
import (
"flag"
"fmt"
"log"
"math"
"os"
"strconv"

"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
Expand All @@ -45,9 +47,19 @@ func (c *ClientConfig) InitFlags(fs *flag.FlagSet) {
fs.StringVar(&c.Kubeconfig, "kubeconfig", os.Getenv("KUBECONFIG"),
"Path to a kubeconfig. Only required if out-of-cluster.")

fs.IntVar(&c.Burst, "kube-api-burst", 0, "Maximum burst for throttle.")
fs.IntVar(&c.Burst, "kube-api-burst", int(envVarOrDefault("KUBE_API_BURST", 0)), "Maximum burst for throttle.")

fs.Float64Var(&c.QPS, "kube-api-qps", 0, "Maximum QPS to the server from the client.")
fs.Float64Var(&c.QPS, "kube-api-qps", envVarOrDefault("KUBE_API_QPS", 0.0), "Maximum QPS to the server from the client.")
}

func envVarOrDefault(key string, val float64) float64 {
var err error
if v := os.Getenv(key); v != "" {
if val, err = strconv.ParseFloat(v, 64); err != nil {
log.Fatal(err)
}
}
return val
}

func (c *ClientConfig) GetRESTConfig() (*rest.Config, error) {
Expand Down
6 changes: 3 additions & 3 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1237,17 +1237,17 @@ k8s.io/utils/net
k8s.io/utils/pointer
k8s.io/utils/strings/slices
k8s.io/utils/trace
# knative.dev/hack v0.0.0-20230606014732-a861c8e9da08
# knative.dev/hack v0.0.0-20230615155948-d7586a218601
## explicit; go 1.18
knative.dev/hack
knative.dev/hack/shell
# knative.dev/hack/schema v0.0.0-20230606014732-a861c8e9da08
# knative.dev/hack/schema v0.0.0-20230615155948-d7586a218601
## explicit; go 1.18
knative.dev/hack/schema/commands
knative.dev/hack/schema/docs
knative.dev/hack/schema/registry
knative.dev/hack/schema/schema
# knative.dev/pkg v0.0.0-20230612155445-74c4be5e935e
# knative.dev/pkg v0.0.0-20230616134650-eb63a40adfb0
## explicit; go 1.18
knative.dev/pkg/apiextensions/storageversion
knative.dev/pkg/apiextensions/storageversion/cmd/migrate
Expand Down

0 comments on commit 9b3a30d

Please sign in to comment.