Skip to content

Commit

Permalink
bump k8s packages to 1.17.6 (#881)
Browse files Browse the repository at this point in the history
* add script to bump k8s deps

* bump k8s to v1.17.6
  • Loading branch information
dprotaso authored Jun 8, 2020
1 parent a7ea77d commit dfd65db
Show file tree
Hide file tree
Showing 177 changed files with 18,983 additions and 2,202 deletions.
18 changes: 9 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module knative.dev/client

go 1.14

require (
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v0.0.6
Expand All @@ -9,7 +11,7 @@ require (
gotest.tools v2.2.0+incompatible
k8s.io/api v0.17.6
k8s.io/apimachinery v0.17.6
k8s.io/cli-runtime v0.17.3
k8s.io/cli-runtime v0.17.6
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible
knative.dev/eventing v0.15.1-0.20200608083719-c024353a712c
knative.dev/pkg v0.0.0-20200606224418-7ed1d4a552bc
Expand All @@ -24,12 +26,10 @@ require (
// See https://github.com/spf13/cobra/pull/899
replace (
github.com/spf13/cobra => github.com/chmouel/cobra v0.0.0-20191021105835-a78788917390
k8s.io/api => k8s.io/api v0.16.4
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.16.4
k8s.io/apimachinery => k8s.io/apimachinery v0.16.4
k8s.io/cli-runtime => k8s.io/cli-runtime v0.16.4
k8s.io/client-go => k8s.io/client-go v0.16.4
k8s.io/code-generator => k8s.io/code-generator v0.16.4
k8s.io/api => k8s.io/api v0.17.6
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.17.6
k8s.io/apimachinery => k8s.io/apimachinery v0.17.6
k8s.io/cli-runtime => k8s.io/cli-runtime v0.17.6
k8s.io/client-go => k8s.io/client-go v0.17.6
k8s.io/code-generator => k8s.io/code-generator v0.17.6
)

go 1.14
53 changes: 26 additions & 27 deletions go.sum

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions hack/update-k8s-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env bash

# Copyright 2020 The Knative Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset
set -o pipefail

export GO111MODULE=on
export K8S_VERSION="${1:-v0.17.6}"

K8S_DEPS=(
"k8s.io/api"
"k8s.io/apiextensions-apiserver"
"k8s.io/apimachinery"
"k8s.io/cli-runtime"
"k8s.io/client-go"
"k8s.io/code-generator"
)

function update_module {
local dep="${1}"
local version="${2}"


echo "Updating ${dep} to ${version}"

go mod edit \
-require="${dep}@${version}" \
-replace="${dep}=${dep}@${version}"
}

for dep in "${K8S_DEPS[@]}"
do
update_module "${dep}" "${K8S_VERSION}"
done

./hack/update-deps.sh
11 changes: 11 additions & 0 deletions vendor/github.com/liggitt/tabwriter/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/github.com/liggitt/tabwriter/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions vendor/github.com/liggitt/tabwriter/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dfd65db

Please sign in to comment.