mirror of https://github.com/knative/caching.git
upgrade to latest dependencies (#363)
Signed-off-by: Matt Moore (via Sockpuppet) <mattmoor@vmware.com>
This commit is contained in:
parent
fe0a9fab73
commit
c5ce5c5965
4
go.mod
4
go.mod
|
@ -15,8 +15,8 @@ require (
|
||||||
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible
|
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible
|
||||||
k8s.io/code-generator v0.18.8
|
k8s.io/code-generator v0.18.8
|
||||||
k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29
|
k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29
|
||||||
knative.dev/pkg v0.0.0-20201019233058-fc447086b7b0
|
knative.dev/pkg v0.0.0-20201020221017-1787376258ce
|
||||||
knative.dev/test-infra v0.0.0-20201015231956-d236fb0ea9ff
|
knative.dev/test-infra v0.0.0-20201020210659-8f5dc4814ac3
|
||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
|
|
6
go.sum
6
go.sum
|
@ -1921,8 +1921,8 @@ knative.dev/pkg v0.0.0-20200505191044-3da93ebb24c2/go.mod h1:Q6sL35DdGs8hIQZKdaC
|
||||||
knative.dev/pkg v0.0.0-20200515002500-16d7b963416f/go.mod h1:tMOHGbxtRz8zYFGEGpV/bpoTEM1o89MwYFC4YJXl3GY=
|
knative.dev/pkg v0.0.0-20200515002500-16d7b963416f/go.mod h1:tMOHGbxtRz8zYFGEGpV/bpoTEM1o89MwYFC4YJXl3GY=
|
||||||
knative.dev/pkg v0.0.0-20200528142800-1c6815d7e4c9/go.mod h1:QgNZTxnwpB/oSpNcfnLVlw+WpEwwyKAvJlvR3hgeltA=
|
knative.dev/pkg v0.0.0-20200528142800-1c6815d7e4c9/go.mod h1:QgNZTxnwpB/oSpNcfnLVlw+WpEwwyKAvJlvR3hgeltA=
|
||||||
knative.dev/pkg v0.0.0-20200711004937-22502028e31a/go.mod h1:AqAJV6rYi8IGikDjJ/9ZQd9qKdkXVlesVnVjwx62YB8=
|
knative.dev/pkg v0.0.0-20200711004937-22502028e31a/go.mod h1:AqAJV6rYi8IGikDjJ/9ZQd9qKdkXVlesVnVjwx62YB8=
|
||||||
knative.dev/pkg v0.0.0-20201019233058-fc447086b7b0 h1:lgXE/cUCgdUm5G8/eX/Bt6wvm6/XIkmyIaZU+vp1Ofw=
|
knative.dev/pkg v0.0.0-20201020221017-1787376258ce h1:xIi8uNvYwamWAPW8BlnD++oIdhHq/o55ect8NAohD8k=
|
||||||
knative.dev/pkg v0.0.0-20201019233058-fc447086b7b0/go.mod h1:Gd7eJYKYPveffVad0/wImHpQSYn+Pt9q09HGJyL/b54=
|
knative.dev/pkg v0.0.0-20201020221017-1787376258ce/go.mod h1:Gd7eJYKYPveffVad0/wImHpQSYn+Pt9q09HGJyL/b54=
|
||||||
knative.dev/test-infra v0.0.0-20200407185800-1b88cb3b45a5/go.mod h1:xcdUkMJrLlBswIZqL5zCuBFOC22WIPMQoVX1L35i0vQ=
|
knative.dev/test-infra v0.0.0-20200407185800-1b88cb3b45a5/go.mod h1:xcdUkMJrLlBswIZqL5zCuBFOC22WIPMQoVX1L35i0vQ=
|
||||||
knative.dev/test-infra v0.0.0-20200505052144-5ea2f705bb55/go.mod h1:WqF1Azka+FxPZ20keR2zCNtiQA1MP9ZB4BH4HuI+SIU=
|
knative.dev/test-infra v0.0.0-20200505052144-5ea2f705bb55/go.mod h1:WqF1Azka+FxPZ20keR2zCNtiQA1MP9ZB4BH4HuI+SIU=
|
||||||
knative.dev/test-infra v0.0.0-20200513011557-d03429a76034/go.mod h1:aMif0KXL4g19YCYwsy4Ocjjz5xgPlseYV+B95Oo4JGE=
|
knative.dev/test-infra v0.0.0-20200513011557-d03429a76034/go.mod h1:aMif0KXL4g19YCYwsy4Ocjjz5xgPlseYV+B95Oo4JGE=
|
||||||
|
@ -1930,6 +1930,8 @@ knative.dev/test-infra v0.0.0-20200519015156-82551620b0a9/go.mod h1:A5b2OAXTOeHT
|
||||||
knative.dev/test-infra v0.0.0-20200707183444-aed09e56ddc7/go.mod h1:RjYAhXnZqeHw9+B0zsbqSPlae0lCvjekO/nw5ZMpLCs=
|
knative.dev/test-infra v0.0.0-20200707183444-aed09e56ddc7/go.mod h1:RjYAhXnZqeHw9+B0zsbqSPlae0lCvjekO/nw5ZMpLCs=
|
||||||
knative.dev/test-infra v0.0.0-20201015231956-d236fb0ea9ff h1:I8tkQx28wNs6v/ymlGv6oKQFASCFHTgJtgo7dvv5XII=
|
knative.dev/test-infra v0.0.0-20201015231956-d236fb0ea9ff h1:I8tkQx28wNs6v/ymlGv6oKQFASCFHTgJtgo7dvv5XII=
|
||||||
knative.dev/test-infra v0.0.0-20201015231956-d236fb0ea9ff/go.mod h1:lm0U0k6ARXr8Po0LcSTCfETg63LOF3ajUxcoqy5JSH0=
|
knative.dev/test-infra v0.0.0-20201015231956-d236fb0ea9ff/go.mod h1:lm0U0k6ARXr8Po0LcSTCfETg63LOF3ajUxcoqy5JSH0=
|
||||||
|
knative.dev/test-infra v0.0.0-20201020210659-8f5dc4814ac3 h1:FldGYq5wPrQqGuC8JI3a07nC0lGKqG7wtqvebxonnnE=
|
||||||
|
knative.dev/test-infra v0.0.0-20201020210659-8f5dc4814ac3/go.mod h1:lm0U0k6ARXr8Po0LcSTCfETg63LOF3ajUxcoqy5JSH0=
|
||||||
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc=
|
||||||
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b/go.mod h1:2odslEg/xrtNQqCYg2/jCoyKnw3vv5biOc3JnIcYfL4=
|
||||||
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
mvdan.cc/unparam v0.0.0-20190720180237-d51796306d8f/go.mod h1:4G1h5nDURzA3bwVMZIVpwbkw+04kSxk3rAtzlimaUJw=
|
||||||
|
|
|
@ -207,7 +207,7 @@ type Impl struct {
|
||||||
|
|
||||||
// ControllerOptions encapsulates options for creating a new controller,
|
// ControllerOptions encapsulates options for creating a new controller,
|
||||||
// including throttling and stats behavior.
|
// including throttling and stats behavior.
|
||||||
type ControllerOptions struct { //nolint for backcompat.
|
type ControllerOptions struct { //nolint // for backcompat.
|
||||||
WorkQueueName string
|
WorkQueueName string
|
||||||
Logger *zap.SugaredLogger
|
Logger *zap.SugaredLogger
|
||||||
Reporter StatsReporter
|
Reporter StatsReporter
|
||||||
|
|
|
@ -55,7 +55,7 @@ func Flags() *Environment {
|
||||||
flag.StringVar(&env.ServerURL, "server", "",
|
flag.StringVar(&env.ServerURL, "server", "",
|
||||||
"The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
|
"The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
|
||||||
|
|
||||||
flag.StringVar(&env.Kubeconfig, "kubeconfig", "",
|
flag.StringVar(&env.Kubeconfig, "kubeconfig", os.Getenv("KUBECONFIG"),
|
||||||
"Path to a kubeconfig. Only required if out-of-cluster.")
|
"Path to a kubeconfig. Only required if out-of-cluster.")
|
||||||
|
|
||||||
flag.IntVar(&env.Burst, "kube-api-burst", 0, "Maximum burst for throttle.")
|
flag.IntVar(&env.Burst, "kube-api-burst", 0, "Maximum burst for throttle.")
|
||||||
|
@ -97,10 +97,6 @@ func ParseAndGetRESTConfigOrDie() *rest.Config {
|
||||||
// 3. Fallback to in-cluster config.
|
// 3. Fallback to in-cluster config.
|
||||||
// 4. Fallback to the ~/.kube/config.
|
// 4. Fallback to the ~/.kube/config.
|
||||||
func GetRESTConfig(serverURL, kubeconfig string) (*rest.Config, error) {
|
func GetRESTConfig(serverURL, kubeconfig string) (*rest.Config, error) {
|
||||||
if kubeconfig == "" {
|
|
||||||
kubeconfig = os.Getenv("KUBECONFIG")
|
|
||||||
}
|
|
||||||
|
|
||||||
// If we have an explicit indication of where the kubernetes config lives, read that.
|
// If we have an explicit indication of where the kubernetes config lives, read that.
|
||||||
if kubeconfig != "" {
|
if kubeconfig != "" {
|
||||||
c, err := clientcmd.BuildConfigFromFlags(serverURL, kubeconfig)
|
c, err := clientcmd.BuildConfigFromFlags(serverURL, kubeconfig)
|
||||||
|
|
|
@ -346,7 +346,7 @@ func prometheusPort() (int, error) {
|
||||||
|
|
||||||
// JsonToMetricsOptions converts a json string of a
|
// JsonToMetricsOptions converts a json string of a
|
||||||
// ExporterOptions. Returns a non-nil ExporterOptions always.
|
// ExporterOptions. Returns a non-nil ExporterOptions always.
|
||||||
func JsonToMetricsOptions(jsonOpts string) (*ExporterOptions, error) { // nolint No rename due to backwards incompatibility.
|
func JsonToMetricsOptions(jsonOpts string) (*ExporterOptions, error) { //nolint // No rename due to backwards incompatibility.
|
||||||
var opts ExporterOptions
|
var opts ExporterOptions
|
||||||
if jsonOpts == "" {
|
if jsonOpts == "" {
|
||||||
return nil, errors.New("json options string is empty")
|
return nil, errors.New("json options string is empty")
|
||||||
|
@ -360,7 +360,7 @@ func JsonToMetricsOptions(jsonOpts string) (*ExporterOptions, error) { // nolint
|
||||||
}
|
}
|
||||||
|
|
||||||
// MetricsOptionsToJson converts a ExporterOptions to a json string.
|
// MetricsOptionsToJson converts a ExporterOptions to a json string.
|
||||||
func MetricsOptionsToJson(opts *ExporterOptions) (string, error) { // nolint No rename due to backwards incompatibility.
|
func MetricsOptionsToJson(opts *ExporterOptions) (string, error) { //nolint // No rename due to backwards incompatibility.
|
||||||
if opts == nil {
|
if opts == nil {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ func NewEvent(eventtype, reason, messageFmt string, args ...interface{}) Event {
|
||||||
|
|
||||||
// ReconcilerEvent wraps the fields required for recorders to create a
|
// ReconcilerEvent wraps the fields required for recorders to create a
|
||||||
// kubernetes recorder Event.
|
// kubernetes recorder Event.
|
||||||
type ReconcilerEvent struct { //nolint for backcompat.
|
type ReconcilerEvent struct { //nolint:golint // for backcompat.
|
||||||
EventType string
|
EventType string
|
||||||
Reason string
|
Reason string
|
||||||
Format string
|
Format string
|
||||||
|
|
|
@ -521,6 +521,7 @@ function add_trap {
|
||||||
# "master".
|
# "master".
|
||||||
# Additional dependencies can be included in the upgrade by providing them in a
|
# Additional dependencies can be included in the upgrade by providing them in a
|
||||||
# global env var: FLOATING_DEPS
|
# global env var: FLOATING_DEPS
|
||||||
|
# --upgrade will set GOPROXY to direct unless it is already set.
|
||||||
function go_update_deps() {
|
function go_update_deps() {
|
||||||
cd "${REPO_ROOT_DIR}" || return 1
|
cd "${REPO_ROOT_DIR}" || return 1
|
||||||
|
|
||||||
|
@ -541,10 +542,20 @@ function go_update_deps() {
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if (( UPGRADE )); then
|
if [[ $UPGRADE == 1 ]]; then
|
||||||
echo "--- Upgrading to ${VERSION}"
|
echo "--- Upgrading to ${VERSION}"
|
||||||
|
# From shell parameter expansion:
|
||||||
|
# ${parameter:+word}
|
||||||
|
# If parameter is null or unset, nothing is substituted, otherwise the expansion of word is substituted.
|
||||||
|
# -z is if the length of the string, so skip setting GOPROXY if GOPROXY is already set.
|
||||||
|
if [[ -z ${GOPROXY:+skip} ]]; then
|
||||||
|
export GOPROXY=direct
|
||||||
|
echo "Using 'GOPROXY=direct'."
|
||||||
|
else
|
||||||
|
echo "Respecting 'GOPROXY=${GOPROXY}'."
|
||||||
|
fi
|
||||||
FLOATING_DEPS+=( $(run_go_tool knative.dev/test-infra/buoy buoy float ${REPO_ROOT_DIR}/go.mod --release ${VERSION} --domain knative.dev) )
|
FLOATING_DEPS+=( $(run_go_tool knative.dev/test-infra/buoy buoy float ${REPO_ROOT_DIR}/go.mod --release ${VERSION} --domain knative.dev) )
|
||||||
if (( ${#FLOATING_DEPS[@]} )); then
|
if [[ ${#FLOATING_DEPS[@]} > 0 ]]; then
|
||||||
echo "Floating deps to ${FLOATING_DEPS[@]}"
|
echo "Floating deps to ${FLOATING_DEPS[@]}"
|
||||||
go get -d ${FLOATING_DEPS[@]}
|
go get -d ${FLOATING_DEPS[@]}
|
||||||
else
|
else
|
||||||
|
|
|
@ -734,7 +734,7 @@ k8s.io/kube-openapi/pkg/util/sets
|
||||||
k8s.io/utils/buffer
|
k8s.io/utils/buffer
|
||||||
k8s.io/utils/integer
|
k8s.io/utils/integer
|
||||||
k8s.io/utils/trace
|
k8s.io/utils/trace
|
||||||
# knative.dev/pkg v0.0.0-20201019233058-fc447086b7b0
|
# knative.dev/pkg v0.0.0-20201020221017-1787376258ce
|
||||||
## explicit
|
## explicit
|
||||||
knative.dev/pkg/apis
|
knative.dev/pkg/apis
|
||||||
knative.dev/pkg/apis/duck
|
knative.dev/pkg/apis/duck
|
||||||
|
@ -762,7 +762,7 @@ knative.dev/pkg/reconciler
|
||||||
knative.dev/pkg/signals
|
knative.dev/pkg/signals
|
||||||
knative.dev/pkg/system
|
knative.dev/pkg/system
|
||||||
knative.dev/pkg/tracker
|
knative.dev/pkg/tracker
|
||||||
# knative.dev/test-infra v0.0.0-20201015231956-d236fb0ea9ff
|
# knative.dev/test-infra v0.0.0-20201020210659-8f5dc4814ac3
|
||||||
## explicit
|
## explicit
|
||||||
knative.dev/test-infra/scripts
|
knative.dev/test-infra/scripts
|
||||||
knative.dev/test-infra/tools/dep-collector
|
knative.dev/test-infra/tools/dep-collector
|
||||||
|
|
Loading…
Reference in New Issue