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

WINC-962: Pick up openshift/kubernetes 1.26 rebase updates #1395

Merged
merged 4 commits into from Feb 7, 2023

Conversation

mansikulkarni96
Copy link
Member

@mansikulkarni96 mansikulkarni96 commented Jan 30, 2023

  • [services] Replace deprecated klog flags with kube-log-runner
  • [submodule][kubelet] Update to 149fe52
  • [vendor] Use 1.26 k8s and OpenShift libraries
  • [manifests] Set v1.26 as minimum k8s version

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 30, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 30, 2023

@mansikulkarni96: This pull request references WINC-962 which is a valid jira issue.

In response to this:

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.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 30, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 30, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 30, 2023

@mansikulkarni96: This pull request references WINC-962 which is a valid jira issue.

In response to this:

Manually update k8s libraries to 1.26
Ran commands:

go get -u github.com/openshift/api@6ba31fa438f20d6c822ef47ad3d771309cb5216b
go get -u github.com/openshift/client-go@72f107311084c1dabe65d31aa68d232e33950dc1
go mod tidy && go mod vendor

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.

@mansikulkarni96 mansikulkarni96 marked this pull request as ready for review February 2, 2023 14:50
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 2, 2023
@mansikulkarni96 mansikulkarni96 marked this pull request as draft February 6, 2023 18:23
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 6, 2023
@mansikulkarni96 mansikulkarni96 marked this pull request as ready for review February 7, 2023 00:44
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 7, 2023
Comment on lines 181 to 184
kubeLogCmd := fmt.Sprintf("%s -log-file=%s -redirect-stderr=false ",
windows.KubeLogRunnerPath, windows.KubeletLog)

kubeletServiceCmd := kubeLogCmd + windows.KubeletPath
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add windows.KubeletPath as part of the Sprintf, no reason for it to be separate

Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be done for kube-proxy as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

@sebsoto yes it needs to be, I am contemplating on whether to add it in this PR or add it as part of kube-proxy bump when the new sdn branch is created. kube-log-runner only has the functionality to direct the logs to a file. For kube-proxy, we have been redirecting to a log-dir for a long time now. Is it acceptable to move them only to info and error files?

Copy link
Contributor

Choose a reason for hiding this comment

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

Would doing this for kube-proxy have effect on how we collect log files (e.g. must-gather changes)?

Copy link
Contributor

Choose a reason for hiding this comment

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

If kube-proxy does not require this change we can leave it as is.

Copy link
Member Author

Choose a reason for hiding this comment

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

@aravindhp It will once we update to the 1.26 SDN branch.
@saifshaikh48 yes we will need to update the file info here

Copy link
Contributor

Choose a reason for hiding this comment

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

@aravindhp It will once we update to the 1.26 SDN branch.

We should definitely take care of this as part of that update

Copy link
Contributor

@saifshaikh48 saifshaikh48 left a comment

Choose a reason for hiding this comment

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

LGTM aside from a comment

@@ -177,6 +179,7 @@ func getFilesToTransfer() (map[*payload.FileInfo]string, error) {
payload.KubeProxyPath: K8sDir,
payload.KubeletPath: K8sDir,
payload.AzureCloudNodeManagerPath: K8sDir,
payload.KubeLogRunnerPath: K8sDir,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also add this to requiredFiles?
Although I'm seeing that var is quite outdated so maybe it warrants a task of its own to update properly.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should be updating the variable though with new additions. We can clean it up later if we need to delete any files from there.

Comment on lines 181 to 184
kubeLogCmd := fmt.Sprintf("%s -log-file=%s -redirect-stderr=false ",
windows.KubeLogRunnerPath, windows.KubeletLog)

kubeletServiceCmd := kubeLogCmd + windows.KubeletPath
Copy link
Contributor

Choose a reason for hiding this comment

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

Would doing this for kube-proxy have effect on how we collect log files (e.g. must-gather changes)?

@mansikulkarni96 mansikulkarni96 marked this pull request as draft February 7, 2023 16:51
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 7, 2023
Update to openshift/kubernetes@149fe52

This commit was generated using hack/update_submodules.sh
Copy link
Contributor

@aravindhp aravindhp left a comment

Choose a reason for hiding this comment

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

LGTM. Just a few questions. I will leave official approval to @sebsoto.

@@ -177,6 +179,7 @@ func getFilesToTransfer() (map[*payload.FileInfo]string, error) {
payload.KubeProxyPath: K8sDir,
payload.KubeletPath: K8sDir,
payload.AzureCloudNodeManagerPath: K8sDir,
payload.KubeLogRunnerPath: K8sDir,
Copy link
Contributor

Choose a reason for hiding this comment

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

We should be updating the variable though with new additions. We can clean it up later if we need to delete any files from there.

go.mod Outdated Show resolved Hide resolved
pkg/cluster/config_test.go Show resolved Hide resolved
Manually update to 1.26 libraries
Ran commands:
go get -u github.com/openshift/api@61d971884921b77ca959fafbc026c8fe5666bdb4
go get -u github.com/openshift/client-go@72f107311084c1dabe65d31aa68d232e33950dc1
go mod tidy && go mod vendor
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 7, 2023

@mansikulkarni96: This pull request references WINC-962 which is a valid jira issue.

In response to this:

  • [services] Replace deprecated klog flags with kube-log-runner
  • [submodule][kubelet] Update to 149fe52
  • [vendor] Use 1.26 k8s and OpenShift libraries
  • [manifests] Set v1.26 as minimum k8s version

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.

Copy link
Contributor

@saifshaikh48 saifshaikh48 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2023
@sebsoto
Copy link
Contributor

sebsoto commented Feb 7, 2023

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mansikulkarni96, sebsoto

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 7, 2023
@mansikulkarni96 mansikulkarni96 marked this pull request as ready for review February 7, 2023 18:35
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 7, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2023

@mansikulkarni96: all tests passed!

Full PR test history. Your PR dashboard.

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.

@openshift-merge-robot openshift-merge-robot merged commit 2baebfc into openshift:master Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants