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

Go build fails on k8s apimachinery, as alpha functionality was deprecated #3

Open
MatsNl opened this issue Sep 17, 2019 · 2 comments
Open

Comments

@MatsNl
Copy link

MatsNl commented Sep 17, 2019

Hi,

I'm trying to build your project from source for an ARM device. Mostly successful, but the go build of the initializer fails with the following messages:

tproxy-initializer/main.go:100:11: options.IncludeUninitialized undefined (type "k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions has no field or method IncludeUninitialized)
tproxy-initializer/main.go:104:11: options.IncludeUninitialized undefined (type "k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions has no field or method IncludeUninitialized)
tproxy-initializer/main.go:134:26: deployment.ObjectMeta.GetInitializers undefined (type "k8s.io/apimachinery/pkg/apis/meta/v1".ObjectMeta has no field or method GetInitializers)
tproxy-initializer/main.go:135:47: deployment.ObjectMeta.GetInitializers undefined (type "k8s.io/apimachinery/pkg/apis/meta/v1".ObjectMeta has no field or method GetInitializers)
tproxy-initializer/main.go:140:33: "k8s.io/apimachinery/pkg/runtime".NewScheme().DeepCopy undefined (type *"k8s.io/apimachinery/pkg/runtime".Scheme has no field or method DeepCopy)

It appears this functionality has been removed in k8s 1.14: https://discuss.kubernetes.io/t/kubernetes-initializer-includeuninitialized/5211
Therefore I think forcing a lower version would not be appropriate here, like is done in this solution: kuberhealthy/kuberhealthy#118
Any suggestions?
Thanks

@ScottGuymer
Copy link

I have run into the same issue here.

I think that the solution is to update to use a MutatingAdmissionWebhook.

Im not sure how much of the initializer code should "just work" with a webhook. It might be that no changes are needed but i havent looked that deep yet.

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

No branches or pull requests

2 participants