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

switch to kubernetes 1.16.0-beta.1 #4

Conversation

p0lyn0mial
Copy link
Contributor

No description provided.

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 30, 2019
@p0lyn0mial p0lyn0mial force-pushed the bump-to-kubernetes-1-16-0-beta-1 branch from e9d64fe to 1825e53 Compare August 30, 2019 11:38
@p0lyn0mial
Copy link
Contributor Author

p0lyn0mial commented Aug 30, 2019

I run make test and go build ./... - haven't found any issues.

go test -race ./pkg/...
ok      github.com/openshift/apiserver-library-go/pkg/admission/imagepolicy     (cached)
?       github.com/openshift/apiserver-library-go/pkg/admission/imagepolicy/apis/imagepolicy/v1 [no test files]
ok      github.com/openshift/apiserver-library-go/pkg/admission/imagepolicy/apis/imagepolicy/validation (cached)
ok      github.com/openshift/apiserver-library-go/pkg/admission/imagepolicy/imagereferencemutators      (cached)
ok      github.com/openshift/apiserver-library-go/pkg/admission/imagepolicy/rules       (cached)
ok      github.com/openshift/apiserver-library-go/pkg/admission/quota/clusterresourcequota      (cached)
ok      github.com/openshift/apiserver-library-go/pkg/authorization/scope       (cached)
?       github.com/openshift/apiserver-library-go/pkg/configflags       [no test files]
ok      github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/capabilities   (cached)
ok      github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/group  (cached)
ok      github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/sccadmission   (cached)
?       github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/sccdefaults    [no test files]
ok      github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/sccmatching    (cached)
ok      github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/seccomp        (cached)
ok      github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/selinux        (cached)
ok      github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/user   (cached)
ok      github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/util   (cached)
ok      github.com/openshift/apiserver-library-go/pkg/securitycontextconstraints/util/sort      (cached)


➜  apiserver-library-go git:(bump-to-kubernetes-1-16-0-beta-1) go build ./...

@p0lyn0mial p0lyn0mial changed the title [WIP] Bump to kubernetes 1 16 0 beta 1 switch to kubernetes 1.16.0-beta.1 Aug 30, 2019
@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 Aug 30, 2019
@p0lyn0mial
Copy link
Contributor Author

/assign @sttts @mfojtik

version: v1.14.0
version: v1.16.0-beta.1
- package: k8s.io/klog
version: v0.4.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to add this dependency explicitly, otherwise, it failed:

go build ./...
# github.com/openshift/apiserver-library-go/vendor/k8s.io/utils/trace
vendor/k8s.io/utils/trace/trace.go:100:57: invalid operation: stepThreshold == 0 || stepDuration > stepThreshold || klog.V(4) (mismatched types bool and klog.Verbose)
vendor/k8s.io/utils/trace/trace.go:112:56: invalid operation: stepThreshold == 0 || stepDuration > stepThreshold || klog.V(4) (mismatched types bool and klog.Verbose)
# github.com/openshift/apiserver-library-go/vendor/k8s.io/apiserver/pkg/server/httplog
vendor/k8s.io/apiserver/pkg/server/httplog/httplog.go:159:2: non-bool klog.V(3) (type klog.Verbose) used as if condition
vendor/k8s.io/apiserver/pkg/server/httplog/httplog.go:189:9: non-bool klog.V(2) (type klog.Verbose) used as if condition
# github.com/openshift/apiserver-library-go/vendor/k8s.io/client-go/transport
vendor/k8s.io/client-go/transport/round_trippers.go:70:11: cannot convert klog.V(9) (type klog.Verbose) to type bool
vendor/k8s.io/client-go/transport/round_trippers.go:72:11: cannot convert klog.V(8) (type klog.Verbose) to type bool
vendor/k8s.io/client-go/transport/round_trippers.go:74:11: cannot convert klog.V(7) (type klog.Verbose) to type bool
vendor/k8s.io/client-go/transport/round_trippers.go:76:11: cannot convert klog.V(6) (type klog.Verbose) to type bool

Copy link
Contributor Author

Choose a reason for hiding this comment

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

# openshift second
- package: github.com/openshift/api
version: master
version: prebase-1.16
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will change in the near future to prebase-1.16.0-beta.1

@@ -61,7 +61,7 @@ func (d *sccExecRestrictions) Validate(a admission.Attributes, o admission.Objec

// TODO, if we want to actually limit who can use which service account, then we'll need to add logic here to make sure that
// we're allowed to use the SA the pod is using. Otherwise, user-A creates pod and user-B (who can't use the SA) can exec into it.
createAttributes := admission.NewAttributesRecord(internalPod, nil, coreapi.Kind("Pod").WithVersion(""), a.GetNamespace(), a.GetName(), a.GetResource(), "", admission.Create, false, a.GetUserInfo())
createAttributes := admission.NewAttributesRecord(internalPod, nil, coreapi.Kind("Pod").WithVersion(""), a.GetNamespace(), a.GetName(), a.GetResource(), "", admission.Create, a.GetOperationOptions(), false, a.GetUserInfo())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it is correct, based on kubernetes/kubernetes#77563

Copy link
Contributor

Choose a reason for hiding this comment

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

It wires through the field manager (of a pod) and dry run options. I tend to erase the dryrun options.

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like it's better wire through than to snip them.

Copy link
Contributor

Choose a reason for hiding this comment

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

passing ExecOptions (or what it is called) to a create admissoin is wrong. This is an artificial admission call.

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Aug 30, 2019
@p0lyn0mial p0lyn0mial force-pushed the bump-to-kubernetes-1-16-0-beta-1 branch from 7b50f4a to 1825e53 Compare August 30, 2019 13:49
@p0lyn0mial p0lyn0mial force-pushed the bump-to-kubernetes-1-16-0-beta-1 branch from 1825e53 to 1799493 Compare August 30, 2019 13:51
@sttts
Copy link
Contributor

sttts commented Aug 30, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2019
@sttts sttts merged commit 11e5bb9 into openshift:prebase-1.16.0-beta.1 Aug 30, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: p0lyn0mial, sttts

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 30, 2019
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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants