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

WIP: Bump cloud-provider-gcp to k8s v1.24 #333

Closed
wants to merge 5 commits into from

Conversation

Fedosin
Copy link
Contributor

@Fedosin Fedosin commented May 23, 2022

Ran:
go mod tidy && ./tools/update_vendor.sh

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 23, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Fedosin
To complete the pull request process, please assign cheftako after the PR has been reviewed.
You can assign the PR to them by writing /assign @cheftako in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Fedosin Fedosin force-pushed the bump_k8s_124 branch 2 times, most recently from 5874b8d to 377810d Compare May 23, 2022 20:38
@Fedosin
Copy link
Contributor Author

Fedosin commented May 23, 2022

/test cloud-provider-gcp-e2e-full

@Fedosin Fedosin force-pushed the bump_k8s_124 branch 6 times, most recently from 1c43ac9 to eeb6ba3 Compare May 24, 2022 12:22
@jprzychodzen
Copy link
Contributor

Before that we should probably do #331 to have a clean cut for 1.23.

/hold

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels May 24, 2022
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 30, 2022
go.mod Show resolved Hide resolved
@jprzychodzen
Copy link
Contributor

I see diffs between k/k release-1.24 branch and this commit (regarding the cluster directory). Are those changes by design?

@jprzychodzen
Copy link
Contributor

/assign

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Jun 22, 2022

@Fedosin: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
cloud-provider-gcp-e2e-full 5b92f53 link true /test cloud-provider-gcp-e2e-full

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot
Copy link
Contributor

@Fedosin: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 23, 2022
Copy link
Contributor

@jprzychodzen jprzychodzen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed /cluster part. It seems that some of stuff needs to be different from k/k repository, to enable running CCM.

@@ -311,10 +311,9 @@ function set_binary_version() {
function find-tar() {
local -r tarball=$1
locations=(
"${KUBE_ROOT}/bazel-bin/release/${tarball}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this is reverting CCM specific code change, there are some other. I'm doing upgrade to newest release-1.23 k/k /cluster directory to identify all differences between k/k and cloud-provider-gcp differences in #341

@@ -506,13 +505,8 @@ EOF
# If KUBERNETES_SKIP_CONFIRM is set to y, we'll automatically download binaries
# without prompting.
function verify-kube-binaries() {
# TODO: @cheftako Remove the hack to get a local kubectl from existing tars.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we can change that (it might be cloud-provider-gcp specific)

@@ -27,7 +27,10 @@ function get-num-nodes {
# NUM_NODES
# NUM_WINDOWS_NODES
function get-master-size {
local suggested_master_size=2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be different. We are running additional controller on master machine

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added setting on presubmit level, no need to revert this anymore

See kubernetes/test-infra#26662

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, it's still needed (and also node size override to n1-standard-4), as kubetest2 does not support presets.

@@ -419,10 +404,7 @@ EVICTION_HARD="${EVICTION_HARD:-memory.available<250Mi,nodefs.available<10%,node
SCHEDULING_ALGORITHM_PROVIDER="${SCHEDULING_ALGORITHM_PROVIDER:-}"

# Optional: install a default StorageClass
ENABLE_DEFAULT_STORAGE_CLASS="${ENABLE_DEFAULT_STORAGE_CLASS:-true}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

422-425 are cloud-provider-gcp specific.

# TLS_CIPHER_SUITES defines cipher suites allowed to be used by kube-apiserver.
# If this variable is unset or empty, kube-apiserver will allow its default set of cipher suites.
export TLS_CIPHER_SUITES=""

# Optional: Enable credential sidecar.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

570 - 582 are cloud-provider-specific, we need them.

@@ -1336,9 +1273,6 @@ ${var_name}: ${var_value}
EOF
done
fi
cat >>$file <<EOF
ENABLE_CREDENTIAL_SIDECAR: $(yaml-quote ${ENABLE_CREDENTIAL_SIDECAR:-false})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed.

@@ -1379,8 +1313,6 @@ KUBE_POD_LOG_READERS_GROUP: 2007
KONNECTIVITY_SERVER_RUNASUSER: 2008
KONNECTIVITY_SERVER_RUNASGROUP: 2008
KONNECTIVITY_SERVER_SOCKET_WRITER_GROUP: 2008
CLOUD_CONTROLLER_MANAGER_RUNASUSER: 2009
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed.

@@ -97,7 +97,7 @@ function detect_client_info() {
if [ -n "${KUBERNETES_CLIENT_ARCH-}" ]; then
CLIENT_ARCH="${KUBERNETES_CLIENT_ARCH}"
else
# TODO: migrate the kube::util::host_platform function out of hack/lib and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be reverted, to keep in line with usage of util.sh from /cluster

@@ -32,15 +32,25 @@ set -o pipefail

KUBE_ROOT=${KUBE_ROOT:-$(dirname "${BASH_SOURCE[0]}")/..}
source "${KUBE_ROOT}/cluster/kube-util.sh"
source "${KUBE_ROOT}/cluster/clientbin.sh"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is tricky, I'm not sure if we need to use cloud-provider-gcp version, or we are free to use k/k

@@ -41,7 +41,7 @@ readonly master_ssh_supported_providers="gce aws"
readonly node_ssh_supported_providers="gce gke aws"
readonly gcloud_supported_providers="gce gke"

readonly master_logfiles="kube-apiserver.log kube-apiserver-audit.log kube-scheduler.log kube-controller-manager.log etcd.log etcd-events.log glbc.log cluster-autoscaler.log kube-addon-manager.log konnectivity-server.log fluentd.log kubelet.cov cloud-controller-manager.log"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert, so we will gather logs from ccm.

@jprzychodzen
Copy link
Contributor

/close

It has already happened.

@k8s-ci-robot
Copy link
Contributor

@jprzychodzen: Closed this PR.

In response to this:

/close

It has already happened.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants