Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Renovate #1

Open
wants to merge 26 commits into
base: renovate-config
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f87fcf6
GCE: enable downloading and staging of the node binaries
yujuhong Dec 10, 2018
a260748
add description about namespace for pod in log
Dec 11, 2018
869adf8
client-go/testing: Straighten out fake implementation of Evictions
bouk Nov 30, 2018
62db510
Allow setting KUBERNETES_NODE_ARCH to download node binaries
yujuhong Dec 19, 2018
e6937ec
kubeadm: add CurrentKubernetesVersion
bart0sh Dec 22, 2018
0bf0b3e
kubeadm: fix golint warnings for redundant ifs
Dec 27, 2018
f745dd2
fix kubemark makefile
gaorong Dec 27, 2018
78c9877
Filter resources logged by e2e ns debugging
liggitt Dec 27, 2018
a6ba2eb
Merge pull request #72376 from liggitt/filter-ns-debugging
k8s-ci-robot Dec 28, 2018
3453da2
AllowedProcMountTypes - Update DropDisabled[Alpha]Fields behaviour
mason1kwok Dec 28, 2018
ec6a988
Register plugins with the scheduling framework properly
y-taka-23 Dec 28, 2018
e6c3ab0
kubeadm: use T.Run API in app/util/system
bart0sh Dec 28, 2018
60fc0bf
kubeadm: fix golint warnings in package_validator
bart0sh Dec 28, 2018
a9c7dfb
Merge pull request #72368 from gaorong/kubemark-makefile
k8s-ci-robot Dec 28, 2018
91e7f46
Speedup listers for empty selectors
wojtek-t Dec 28, 2018
7c11276
Merge pull request #72406 from wojtek-t/speedup_listers
k8s-ci-robot Dec 28, 2018
8858b51
Merge pull request #72398 from bart0sh/PR0048-kubeadm-app-util-system…
k8s-ci-robot Dec 28, 2018
2cc92a0
Merge pull request #72399 from bart0sh/PR0049-kubeadm-app-util-system…
k8s-ci-robot Dec 28, 2018
d6e0d5a
Merge pull request #71929 from tanshanshan/schedulerlittle10
k8s-ci-robot Dec 28, 2018
b89ab2c
Merge pull request #72299 from bart0sh/PR0046-kubeadm-add-CurrentKube…
k8s-ci-robot Dec 28, 2018
7d85546
Merge pull request #72367 from rojkov/fix-golint-warnings
k8s-ci-robot Dec 28, 2018
18464d4
Merge pull request #71599 from bouk/fake-eviction
k8s-ci-robot Dec 28, 2018
cd06791
Merge pull request #72396 from y-taka-23/register-plugins
k8s-ci-robot Dec 29, 2018
9cdfdba
Merge pull request #71924 from yujuhong/node-binaries
k8s-ci-robot Dec 29, 2018
173846b
Merge pull request #72389 from mason1kwok/feature_gate_AllowedProcMou…
k8s-ci-robot Dec 29, 2018
2232406
Add renovate.json
renovate-bot Dec 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,21 @@ function set-preferred-region() {
# Assumed vars:
# PROJECT
# SERVER_BINARY_TAR
# NODE_BINARY_TAR (optional)
# KUBE_MANIFESTS_TAR
# ZONE
# Vars set:
# SERVER_BINARY_TAR_URL
# SERVER_BINARY_TAR_HASH
# NODE_BINARY_TAR_URL
# NODE_BINARY_TAR_HASH
# KUBE_MANIFESTS_TAR_URL
# KUBE_MANIFESTS_TAR_HASH
function upload-server-tars() {
function upload-tars() {
SERVER_BINARY_TAR_URL=
SERVER_BINARY_TAR_HASH=
NODE_BINARY_TAR_URL=
NODE_BINARY_TAR_HASH=
KUBE_MANIFESTS_TAR_URL=
KUBE_MANIFESTS_TAR_HASH=

Expand All @@ -279,11 +284,16 @@ function upload-server-tars() {
fi

SERVER_BINARY_TAR_HASH=$(sha1sum-file "${SERVER_BINARY_TAR}")

if [[ -n "${NODE_BINARY_TAR:-}" ]]; then
NODE_BINARY_TAR_HASH=$(sha1sum-file "${NODE_BINARY_TAR}")
fi
if [[ -n "${KUBE_MANIFESTS_TAR:-}" ]]; then
KUBE_MANIFESTS_TAR_HASH=$(sha1sum-file "${KUBE_MANIFESTS_TAR}")
fi

local server_binary_tar_urls=()
local node_binary_tar_urls=()
local kube_manifest_tar_urls=()

for region in "${PREFERRED_REGION[@]}"; do
Expand All @@ -301,12 +311,20 @@ function upload-server-tars() {

local staging_path="${staging_bucket}/${INSTANCE_PREFIX}-devel"

echo "+++ Staging server tars to Google Storage: ${staging_path}"
echo "+++ Staging tars to Google Storage: ${staging_path}"
local server_binary_gs_url="${staging_path}/${SERVER_BINARY_TAR##*/}"
copy-to-staging "${staging_path}" "${server_binary_gs_url}" "${SERVER_BINARY_TAR}" "${SERVER_BINARY_TAR_HASH}"

if [[ -n "${NODE_BINARY_TAR:-}" ]]; then
local node_binary_gs_url="${staging_path}/${NODE_BINARY_TAR##*/}"
copy-to-staging "${staging_path}" "${node_binary_gs_url}" "${NODE_BINARY_TAR}" "${NODE_BINARY_TAR_HASH}"
fi

# Convert from gs:// URL to an https:// URL
server_binary_tar_urls+=("${server_binary_gs_url/gs:\/\//https://storage.googleapis.com/}")
if [[ -n "${NODE_BINARY_TAR:-}" ]]; then
node_binary_tar_urls+=("${node_binary_gs_url/gs:\/\//https://storage.googleapis.com/}")
fi
if [[ -n "${KUBE_MANIFESTS_TAR:-}" ]]; then
local kube_manifests_gs_url="${staging_path}/${KUBE_MANIFESTS_TAR##*/}"
copy-to-staging "${staging_path}" "${kube_manifests_gs_url}" "${KUBE_MANIFESTS_TAR}" "${KUBE_MANIFESTS_TAR_HASH}"
Expand All @@ -316,6 +334,9 @@ function upload-server-tars() {
done

SERVER_BINARY_TAR_URL=$(join_csv "${server_binary_tar_urls[@]}")
if [[ -n "${NODE_BINARY_TAR:-}" ]]; then
NODE_BINARY_TAR_URL=$(join_csv "${node_binary_tar_urls[@]}")
fi
if [[ -n "${KUBE_MANIFESTS_TAR:-}" ]]; then
KUBE_MANIFESTS_TAR_URL=$(join_csv "${kube_manifests_tar_urls[@]}")
fi
Expand Down Expand Up @@ -436,7 +457,7 @@ function tars_from_version() {

if [[ -z "${KUBE_VERSION-}" ]]; then
find-release-tars
upload-server-tars
upload-tars
elif [[ ${KUBE_VERSION} =~ ${KUBE_RELEASE_VERSION_REGEX} ]]; then
SERVER_BINARY_TAR_URL="https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/kubernetes-server-linux-amd64.tar.gz"
# TODO: Clean this up.
Expand Down Expand Up @@ -1756,7 +1777,7 @@ function kube-up() {

# Make sure we have the tar files staged on Google Storage
find-release-tars
upload-server-tars
upload-tars

# ensure that environmental variables specifying number of migs to create
set_num_migs
Expand Down
15 changes: 15 additions & 0 deletions cluster/get-kube-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ DOWNLOAD_URL_PREFIX="${KUBERNETES_RELEASE_URL}/${KUBE_VERSION}"
SERVER_PLATFORM="linux"
SERVER_ARCH="${KUBERNETES_SERVER_ARCH:-amd64}"
SERVER_TAR="kubernetes-server-${SERVER_PLATFORM}-${SERVER_ARCH}.tar.gz"
if [[ -n "${KUBERNETES_NODE_PLATFORM-}" || -n "${KUBERNETES_NODE_ARCH-}" ]]; then
NODE_PLATFORM="${KUBERNETES_NODE_PLATFORM:${SERVER_PLATFORM}}"
NODE_ARCH="${KUBERNETES_NODE_ARCH:${SERVER_ARCH}}"
NODE_TAR="kubernetes-node-${NODE_PLATFORM}-${NODE_ARCH}.tar.gz"
fi

detect_client_info
CLIENT_TAR="kubernetes-client-${CLIENT_PLATFORM}-${CLIENT_ARCH}.tar.gz"
Expand All @@ -186,6 +191,12 @@ if [[ ! -x "${KUBE_ROOT}/platforms/${CLIENT_PLATFORM}/${CLIENT_ARCH}/kubectl" ]]
echo "Will download and extract ${CLIENT_TAR} from ${DOWNLOAD_URL_PREFIX}"
fi

DOWNLOAD_NODE_TAR=false
if [[ -n "${NODE_TAR:-}" ]]; then
DOWNLOAD_NODE_TAR=true
echo "Will download and extract ${NODE_TAR} from ${DOWNLOAD_URL_PREFIX}"
fi

TESTS_TAR="kubernetes-test.tar.gz"
DOWNLOAD_TESTS_TAR=false
if [[ -n "${KUBERNETES_DOWNLOAD_TESTS-}" ]]; then
Expand Down Expand Up @@ -213,6 +224,10 @@ if "${DOWNLOAD_SERVER_TAR}"; then
download_tarball "${KUBE_ROOT}/server" "${SERVER_TAR}"
fi

if "${DOWNLOAD_NODE_TAR}"; then
download_tarball "${KUBE_ROOT}/node" "${NODE_TAR}"
fi

if "${DOWNLOAD_CLIENT_TAR}"; then
download_tarball "${KUBE_ROOT}/client" "${CLIENT_TAR}"
extract_arch_tarball "${KUBE_ROOT}/client/${CLIENT_TAR}" "${CLIENT_PLATFORM}" "${CLIENT_ARCH}"
Expand Down
17 changes: 17 additions & 0 deletions cluster/get-kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@
# * arm
# * arm64
#
# Set KUBERNETES_NODE_PLATFORM to choose the platform for which to download
# the node binaries. If none of KUBERNETES_NODE_PLATFORM and
# KUBERNETES_NODE_ARCH is set, no node binaries will be downloaded. If only
# one of the two is set, the other will be defaulted to the
# KUBERNETES_SERVER_PLATFORM/ARCH.
# * linux
# * windows
#
# Set KUBERNETES_NODE_ARCH to choose the node architecture to download the
# node binaries. If none of KUBERNETES_NODE_PLATFORM and
# KUBERNETES_NODE_ARCH is set, no node binaries will be downloaded. If only
# one of the two is set, the other will be defaulted to the
# KUBERNETES_SERVER_PLATFORM/ARCH.
# * amd64 [default]
# * arm
# * arm64
#
# Set KUBERNETES_SKIP_DOWNLOAD to skip downloading a release.
# Set KUBERNETES_SKIP_CONFIRM to skip the installation confirmation prompt.
# Set KUBERNETES_SKIP_CREATE_CLUSTER to skip starting a cluster.
Expand Down
2 changes: 1 addition & 1 deletion cluster/images/kubemark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ gcloudpush: build
docker push $(REGISTRY)/kubemark:$(IMAGE_TAG)

push: build
docker -- push $(REGISTRY)/kubemark:$(IMAGE_TAG)
docker push $(REGISTRY)/kubemark:$(IMAGE_TAG)

.PHONY: all build gcloudpush push
4 changes: 2 additions & 2 deletions cmd/kubeadm/app/cmd/alpha/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var (

# Downloads the kubelet configuration from the ConfigMap in the cluster. Uses a specific desired kubelet version.
kubeadm alpha phase kubelet config download --kubelet-version %s
`, constants.MinimumKubeletVersion))
`, constants.CurrentKubernetesVersion))

kubeletConfigEnableDynamicLongDesc = normalizer.LongDesc(`
Enables or updates dynamic kubelet configuration for a Node, against the kubelet-config-1.X ConfigMap in the cluster,
Expand All @@ -63,7 +63,7 @@ var (

WARNING: This feature is still experimental, and disabled by default. Enable only if you know what you are doing, as it
may have surprising side-effects at this stage.
`, constants.MinimumKubeletVersion))
`, constants.CurrentKubernetesVersion))
)

// newCmdKubeletUtility returns command for `kubeadm phase kubelet`
Expand Down
5 changes: 1 addition & 4 deletions cmd/kubeadm/app/cmd/phases/controlplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ func runControlPlaneSubPhase(component string) func(c workflow.RunData) error {
cfg := data.Cfg()

fmt.Printf("[control-plane] Creating static Pod manifest for %q\n", component)
if err := controlplane.CreateStaticPodFiles(data.ManifestDir(), cfg, component); err != nil {
return err
}
return nil
return controlplane.CreateStaticPodFiles(data.ManifestDir(), cfg, component)
}
}
6 changes: 1 addition & 5 deletions cmd/kubeadm/app/cmd/phases/markcontrolplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,5 @@ func runMarkControlPlane(c workflow.RunData) error {
}

nodeRegistration := data.Cfg().NodeRegistration
if err := markcontrolplanephase.MarkControlPlane(client, nodeRegistration.Name, nodeRegistration.Taints); err != nil {
return err
}

return nil
return markcontrolplanephase.MarkControlPlane(client, nodeRegistration.Name, nodeRegistration.Taints)
}
5 changes: 1 addition & 4 deletions cmd/kubeadm/app/cmd/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,7 @@ func removeContainers(execer utilsexec.Interface, criSocketPath string) error {
if err != nil {
return err
}
if err := containerRuntime.RemoveContainers(containers); err != nil {
return err
}
return nil
return containerRuntime.RemoveContainers(containers)
}

// cleanDir removes everything in a directory, but not the directory itself
Expand Down
8 changes: 4 additions & 4 deletions cmd/kubeadm/app/cmd/upgrade/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ var (
what the _desired_ kubelet version is. Give
`)

upgradeNodeConfigExample = normalizer.Examples(`
upgradeNodeConfigExample = normalizer.Examples(fmt.Sprintf(`
# Downloads the kubelet configuration from the ConfigMap in the cluster. Uses a specific desired kubelet version.
kubeadm upgrade node config --kubelet-version v1.13.0
kubeadm upgrade node config --kubelet-version %s

# Simulates the downloading of the kubelet configuration from the ConfigMap in the cluster with a specific desired
# version. Does not change any state locally on the node.
kubeadm upgrade node config --kubelet-version v1.13.0 --dry-run
`)
kubeadm upgrade node config --kubelet-version %[1]s --dry-run
`, constants.CurrentKubernetesVersion))
)

type nodeUpgradeFlags struct {
Expand Down
5 changes: 1 addition & 4 deletions cmd/kubeadm/app/componentconfigs/registrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ func (r Registration) Unmarshal(fileContent []byte) (runtime.Object, error) {

func unmarshalObject(obj runtime.Object, fileContent []byte) error {
// Decode the file content using the componentconfig Codecs that knows about all APIs
if err := runtime.DecodeInto(Codecs.UniversalDecoder(), fileContent, obj); err != nil {
return err
}
return nil
return runtime.DecodeInto(Codecs.UniversalDecoder(), fileContent, obj)
}

const (
Expand Down
3 changes: 3 additions & 0 deletions cmd/kubeadm/app/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ var (
// MinimumKubeletVersion specifies the minimum version of kubelet which kubeadm supports
MinimumKubeletVersion = version.MustParseSemantic("v1.12.0")

// CurrentKubernetesVersion specifies current Kubernetes version supported by kubeadm
CurrentKubernetesVersion = version.MustParseSemantic("v1.13.0")

// SupportedEtcdVersion lists officially supported etcd versions with corresponding Kubernetes releases
SupportedEtcdVersion = map[uint8]string{
10: "3.1.12",
Expand Down
6 changes: 1 addition & 5 deletions cmd/kubeadm/app/phases/certs/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ func CreatePKIAssets(cfg *kubeadmapi.InitConfiguration) error {
fmt.Printf("[certs] valid certificates and keys now exist in %q\n", cfg.CertificatesDir)

// Service accounts are not x509 certs, so handled separately
if err := CreateServiceAccountKeyAndPublicKeyFiles(cfg); err != nil {
return err
}

return nil
return CreateServiceAccountKeyAndPublicKeyFiles(cfg)
}

// CreateServiceAccountKeyAndPublicKeyFiles create a new public/private key files for signing service account users.
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/phases/kubelet/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ go_test(
embed = [":go_default_library"],
deps = [
"//cmd/kubeadm/app/apis/kubeadm:go_default_library",
"//cmd/kubeadm/app/constants:go_default_library",
"//pkg/kubelet/apis:go_default_library",
"//pkg/kubelet/apis/config:go_default_library",
"//staging/src/k8s.io/api/core/v1:go_default_library",
Expand Down
3 changes: 2 additions & 1 deletion cmd/kubeadm/app/phases/kubelet/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"k8s.io/client-go/kubernetes/fake"
core "k8s.io/client-go/testing"
kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
"k8s.io/kubernetes/cmd/kubeadm/app/constants"
kubeletconfig "k8s.io/kubernetes/pkg/kubelet/apis/config"
)

Expand All @@ -35,7 +36,7 @@ func TestCreateConfigMap(t *testing.T) {
cfg := &kubeadmapi.InitConfiguration{
NodeRegistration: kubeadmapi.NodeRegistrationOptions{Name: nodeName},
ClusterConfiguration: kubeadmapi.ClusterConfiguration{
KubernetesVersion: "v1.13.0",
KubernetesVersion: constants.CurrentKubernetesVersion.String(),
ComponentConfigs: kubeadmapi.ComponentConfigs{
Kubelet: &kubeletconfig.KubeletConfiguration{},
},
Expand Down
Loading