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

Gopkg.*,pkg/generator/templates.go: update to kubernetes 1.11.2 #391

Closed
wants to merge 1 commit into from

Conversation

eparis
Copy link
Contributor

@eparis eparis commented Aug 9, 2018

No description provided.

@eparis
Copy link
Contributor Author

eparis commented Aug 9, 2018

Not sure it if works. I can't get make test to work against master... So seeing what CI says.

@eparis eparis force-pushed the rebase-1.11 branch 4 times, most recently from 8ae614f to 02d378b Compare August 9, 2018 18:13
@AlexNPavel
Copy link
Contributor

At the moment, we cannot use Kubernetes 1.11 in our CI, nor can we use minikube >= 0.26.0. The issue with minikube is reported here: kubernetes/minikube#2704. We could use --bootstrapper=localkube, but that will be removed in the next version of minikube.
Updating to v0.28.2 also would not provide any improvements for use as the latest version of kubernetes supported by minikube v0.28.2 when using the localkube bootstrapper is 1.10.0. You can see all supported version using minikube get-k8s-versions. At the moment, we have to stick with 1.10.0

@eparis eparis force-pushed the rebase-1.11 branch 3 times, most recently from 33be9ba to 093bef4 Compare August 9, 2018 18:23
@hasbro17
Copy link
Contributor

hasbro17 commented Aug 9, 2018

@eparis I'm thinking we should hold off on updating to kubernetes-1.11.x at the moment.
We're in the midst of trying to use the the controller-runtime library in the SDK #382
That's still constrained to kubernetes-1.10.1 tags.
https://github.com/kubernetes-sigs/controller-runtime/blob/master/Gopkg.toml#L47

The SDK currently pins the revisions for the k8s dependencies by overriding them in the generated operator project:

[[override]]
  name = "k8s.io/client-go"
  # revision for tag "kubernetes-1.11.2"
  revision = "1f13a808da65775f22cbf47862c4e5898d8f4ca1"

I expect that will cause problems when we try to vendor the controller-runtime which expects 1.10.1 tags.
We have to revisit on whether we need to override the k8s.io deps to their exact revisions in the Gopkg.toml template but that's a separate issue.

Plus the fact that we can't run our CI with a 1.11 cluster at the moment.

@shawn-hurley
Copy link
Member

@hasbro17

I think that we will need to do this once the PRs for controller runtime are merged.
kubernetes-sigs/controller-runtime#101
kubernetes-sigs/controller-runtime#136

and the master branch is based on 1.11
https://github.com/kubernetes-sigs/controller-runtime/blob/master/Gopkg.toml#L25-L39

@eparis any chance you could rebase with master branch?

@hasbro17
Copy link
Contributor

hasbro17 commented Sep 19, 2018

@shawn-hurley We can update our k8s deps to 1.11 right now along with bumping up the controller-runtime dependency to v0.1.2.

In our CI minikube will have to stay at 0.26.0(k8s 1.10)
https://github.com/operator-framework/operator-sdk/blob/master/hack/ci/setup-minikube.sh#L4-L5

@eparis Can you please also update other places where we've used the old discovery pkg.
In the test-framework pkg:
https://github.com/operator-framework/operator-sdk/blob/master/pkg/test/framework.go#L50
And in the sdk's e2e framework:
https://github.com/operator-framework/operator-sdk/blob/master/test/e2e/framework/framework.go#L105

# revision for tag "kubernetes-1.10.1"
revision = "989be4278f353e42f26c416c53757d16fcff77db"
# revision for tag "kubernetes-1.11.2"
revision = "1f13a808da65775f22cbf47862c4e5898d8f4ca1"

[[override]]
name = "sigs.k8s.io/controller-runtime"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also update the controller-runtime version below to version = "v0.1.2".

Copy link
Contributor

Choose a reason for hiding this comment

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

Turns out v0.1.3 is out. We can bump up to that since it comes with the leader election pkg.

# revision for tag "kubernetes-1.10.1"
revision = "73d903622b7391f3312dcbac6483fed484e185f8"
# revision for tag "kubernetes-1.11.2"
revision = "2d6f90ab1293a1fb871cf149423ebb72aa7423aa"

[[override]]
name = "k8s.io/apiextensions-apiserver"
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be bumped to 1.11.2 as well right?

func GetKubeConfig() *rest.Config {
once.Do(newSingletonFactory)
return singletonFactory.kubeConfig
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not get rid of the core client and config just yet. At least not in this PR.
This was requested as an escape hatch from the sdk's generic client. #190

We'll rethink this through after the controller-runtime refactor.

@wongma7
Copy link
Contributor

wongma7 commented Sep 24, 2018

not being able to import 1.11 is blocking me, okay if i continue this work in a new pr @eparis?

@hasbro17
Copy link
Contributor

Closing in favor of #522

@hasbro17 hasbro17 closed this Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants