Skip to content

Conversation

@sinnykumari
Copy link
Contributor

@sinnykumari sinnykumari commented Apr 6, 2020

  • Updated kubernetes to 1.18.0 and Updated all related modules according to 1.18 in go.mod file. Then ran
$ make go-deps && make update
    $ clientgofix ./...

As the tool is in active development, it doesn't fix API at all places. Remaining API changes has been fixed manually as per the API signature. We are making use of context.TODO() to create an empty context and corresponding empty option object wherever required in API call.

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 6, 2020
@sinnykumari sinnykumari changed the title Update vendored kubernetes to 1.18.0 [WIP] Update vendored kubernetes to 1.18.0 Apr 6, 2020
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 6, 2020
@sinnykumari sinnykumari changed the title [WIP] Update vendored kubernetes to 1.18.0 Update vendored kubernetes to 1.18.0 Apr 6, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 6, 2020
@sinnykumari
Copy link
Contributor Author

/test unit

@sinnykumari
Copy link
Contributor Author

/cc @runcom
@runcom any idea how to tell CI to use golang 1.13?

sinnykumari added a commit to sinnykumari/release that referenced this pull request Apr 6, 2020
In 4.5 and above releases, Machine-config-operator is switching to
kubernetes 1.18.0 version. This requires switching to Go 1.13

Related - openshift/machine-config-operator#1618

Signed-off-by: Sinny Kumari <[email protected]>
@sinnykumari
Copy link
Contributor Author

Requires PR openshift/release#8148 for tests to pass
/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 6, 2020
@sinnykumari
Copy link
Contributor Author

/retest

1 similar comment
@sinnykumari
Copy link
Contributor Author

/retest

Updated all kubernetes related modules according to 1.18 in go.mod file.
Then, ran `make go-deps && make update`
With kubernetes 1.18 update, we have also updated other vendored
kube modules. Updated client-go module has incompatible APIs
which adds context support. More details in
https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/20200123-client-go-ctx.md

In this commit  we ran clientgofix tool ( https://github.com/kubernetes-sigs/clientgofix )
in MCO repository to automatically fix API changes
$ clientgofix ./...

As the tool is in active development, it doesn't fix API at all places. Remaining
API changes has been fixed manually as per the API signature.

We are making use of context.TODO() to create an empty context wherever
required in API call and corresponding empty option object.
apimachinery 1.18 uses errors.Is() function
(//github.com/kubernetes/apimachinery/blob/release-1.18/pkg/util/errors/errors.go#L99 )
which has been introduced in Go 1.13. See https://blog.golang.org/go1.13-errors

golang release image being used in Dockerfile has been updated to use Go
1.13 version as well
@runcom
Copy link
Member

runcom commented Apr 8, 2020

@sinnykumari this needs a rebase now that Christian's PR is merged

@sinnykumari
Copy link
Contributor Author

Rebased and also made changes to fix e2e-gcp-op test failure

@runcom
Copy link
Member

runcom commented Apr 8, 2020

/skip

@runcom
Copy link
Member

runcom commented Apr 8, 2020

/retest

@sinnykumari
Copy link
Contributor Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 8, 2020
@sinnykumari
Copy link
Contributor Author

/retest

@yuqi-zhang
Copy link
Contributor

/retest

1 similar comment
@sinnykumari
Copy link
Contributor Author

/retest

@sinnykumari
Copy link
Contributor Author

/cc @yuqi-zhang

@runcom
Copy link
Member

runcom commented Apr 9, 2020

nice nice
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 9, 2020
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

Copy link
Contributor

@yuqi-zhang yuqi-zhang left a comment

Choose a reason for hiding this comment

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

/lgtm

Sorry for the late review, everything looks good!

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: runcom, sinnykumari, yuqi-zhang

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [runcom,sinnykumari,yuqi-zhang]

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

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 9, 2020

@sinnykumari: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-scaleup-rhel7 9209fd1 link /test e2e-aws-scaleup-rhel7

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.

Details

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-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 6ebc53e into openshift:master Apr 9, 2020
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants