-
Notifications
You must be signed in to change notification settings - Fork 13
Apply k8s 1.18.5 #1046
Apply k8s 1.18.5 #1046
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I missed something, the imports make the diff very large unfortunately. But nothing that we can do to fix it.
Selector: labels.SelectorFromSet(map[string]string{ | ||
key.PodWatcherLabel: project.Name(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this seems incorrect. It should still be project.Name IMO. This chantge here could have unintended consequences for updates where the version might not be the project version version (while upgrading the nodes).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple small things, otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IGTLGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
REVERT ME: use k8scloudconfig from dockerhub-qps-v7 branch go mod tidy add secret with token load secret as part of configuration add dockerhubToken to CI values base64 encode secret make secret kubernetes-compliant make secret safely quoted fix CI defaults fix secret mount pass DockerhubToken to controllers update test cases update test cases (goconst) fix configmap redefinition bump k8scloudconfig to v7.2.0 fmt
This reverts commit 26c478e.
Towards https://github.com/giantswarm/giantswarm/issues/12716
Kubernetes client-go v1.18 introduced a breaking change by adding context.Context to all API calls. This meant we had to release new major versions of all core libraries like operatorkit and apiextensions that also used client-go. This PR updates all of these libraries in kvm-operator so we can run on controls planes with k8s 1.18 and get updates to GS libraries. 80% of the code changes are simply updating the library major versions and adding context.Context to all API calls. The rest is compatibility fixes for the updated libraries such as the removal of certain features in operatorkit and reading certificates differently. I will highlight other questions and important changes with GitHub comments in the code.