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

Rebase kubernetes 1.7.6 #42

Merged
merged 166 commits into from
Oct 4, 2017
Merged

Conversation

ironcladlou
Copy link

@ironcladlou ironcladlou commented Sep 22, 2017

Rebase for kubernetes 1.7.6.

/cc @deads2k @soltysh

Paul Weil and others added 12 commits September 22, 2017 10:19
:100644 100644 a9b6b37... 2328ffc... M	pkg/apiserver/api_installer.go
:100644 100644 c561ddb... 17ef5df... M	pkg/kubelet/server.go
…vider

Previously, if the kubelet tried to register itself with the API server,
and was rejected due to the external ID changing, it would delete the
node object and recreate it.  This commit causes it to tolerate
a change in ExternalID when the ExternalID is not being provided by a
cloud provider, assuming the new ExternalID is either the node's
(metadata) name, or one of node's addresses.

:100644 100644 0c4fdc1... 8deaa82... M	pkg/kubelet/kubelet.go
:100644 100644 ac7025a... dce57e1... M	pkg/apimachinery/registered/registered.go
:100644 100644 b32534e... 3e694fc... M	pkg/controller/serviceaccount/tokens_controller.go
:100644 100644 eaa35e6... 2a50982... M	pkg/client/cache/fifo.go
:100644 100644 0f2ceb8... 667c168... M	pkg/client/cache/fifo_test.go
Doesn't offer enough use, complicates creation and setup.
We don't run system pods so waiting for them is somewhat pointless
@ironcladlou
Copy link
Author

Build is currently broken in at least one major way:

origin.sha Outdated
@@ -0,0 +1 @@
9009938f67
Copy link

Choose a reason for hiding this comment

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

This is not needed, we need to create this at the end.

Copy link

Choose a reason for hiding this comment

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

still outstanding

Copy link
Author

Choose a reason for hiding this comment

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

Dropped

origin.sha Outdated
@@ -1 +1 @@
9009938f67
87ceff292ab199dc902b52f942951f1b7b88e4fa
Copy link

Choose a reason for hiding this comment

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

Not needed either.

@ironcladlou ironcladlou force-pushed the rebase-1.7.6 branch 3 times, most recently from 3d4044b to be7153e Compare September 26, 2017 13:00
@ironcladlou ironcladlou changed the title WIP: Rebase kubernetes 1.7.6 Rebase kubernetes 1.7.6 Sep 27, 2017
@soltysh
Copy link

soltysh commented Sep 29, 2017

This needs ironcladlou#25 to merge in and then it'll be ready for merge to fork.

@@ -1,20 +1,4 @@
// +build !ignore_autogenerated
Copy link

Choose a reason for hiding this comment

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

should drop this commit and regenerate at the end

@@ -71,7 +71,7 @@ func init() {
addControllerRole(rbac.ClusterRole{
ObjectMeta: metav1.ObjectMeta{Name: saRolePrefix + "cronjob-controller"},
Rules: []rbac.PolicyRule{
rbac.NewRule("get", "list", "watch", "update").Groups(batchGroup).Resources("cronjobs").RuleOrDie(),
rbac.NewRule("get", "list", "watch", "update", "delete").Groups(batchGroup).Resources("cronjobs").RuleOrDie(),
Copy link

Choose a reason for hiding this comment

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

this commit needs repicking... this isn't the permission we ended up granting upstream

Copy link

Choose a reason for hiding this comment

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

There are 2 modifying this:

  • b384813 - UPSTREAM: 49133: add controller permissions to set blockOwnerDeletion (6 days ago)
  • 6b69907 - UPSTREAM: 49133: update permissions to allow block owner deletion (7 days ago)

We could squash them into one.

Copy link

Choose a reason for hiding this comment

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

yeah

Copy link
Author

Choose a reason for hiding this comment

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

squashed

@@ -50,7 +50,6 @@ import (
"k8s.io/kubernetes/pkg/volume/local"
Copy link

Choose a reason for hiding this comment

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

these two should cancel and be able to be dropped:

UPSTREAM: <drop>: hack out portworx to avoid double proto registration
UPSTREAM: revert: dcb5eef2d8a6d14816d8d1f767f0d0016b84dcdf: "UPSTREAM: <drop>: hack out portworx to avoid double proto registration"

Copy link
Author

Choose a reason for hiding this comment

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

Dropped

@@ -72,7 +72,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {

// this test wants powerful permissions. Since the namespace names are unique, we can leave this
// lying around so we don't have to race any caches
framework.BindClusterRoleInNamespace(c.Rbac(), "edit", f.Namespace.Name,
framework.BindClusterRoleInNamespace(c.RbacV1beta1(), f.ClientPool, "edit", f.Namespace.Name,
Copy link

Choose a reason for hiding this comment

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

these two should cancel and be able to both be dropped:

UPSTREAM: revert: c502d10: <carry>: match kube rbac setup in e2es with openshift kinds
UPSTREAM: <carry>: match kube rbac setup in e2es with openshift kinds

Copy link
Author

Choose a reason for hiding this comment

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

Dropped

@@ -0,0 +1,26 @@
package pod
Copy link

Choose a reason for hiding this comment

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

these two should cancel and both be able to be dropped:

UPSTREAM: Revert "UPSTREAM: <drop>: keep old pod available"
UPSTREAM: <drop>: keep old pod available

Copy link
Author

Choose a reason for hiding this comment

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

Dropped

@@ -746,14 +746,12 @@ func TestDiscoveryReplaceAliases(t *testing.T) {
{
name: "all-replacement",
arg: "all",
expected: "buildconfigs,builds,imagestreams,deploymentconfigs,pods,replicationcontrollers,services,statefulsets.apps,horizontalpodautoscalers.autoscaling,jobs.batch,deployments.extensions,replicasets.extensions",
// expected: "buildconfigs,builds,imagestreams,deploymentconfigs,deployments,horizontalpodautoscalers,replicationcontrollers,routes,services,statefulsets,jobs,replicasets,pods",
expected: "pods,replicationcontrollers,services,statefulsets.apps,horizontalpodautoscalers.autoscaling,jobs.batch,deployments.extensions,replicasets.extensions",
Copy link

Choose a reason for hiding this comment

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

squash these commits:

UPSTREAM: <drop>: restore normal alias test
UPSTREAM: <drop>: add origin resource shortcuts to kube shortcut restmapper

Copy link
Author

Choose a reason for hiding this comment

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

Squashed

@@ -138,10 +138,10 @@ func TestProxyHandler(t *testing.T) {
apiService: &apiregistration.APIService{
ObjectMeta: metav1.ObjectMeta{Name: "v1.foo"},
Spec: apiregistration.APIServiceSpec{
Service: &apiregistration.ServiceReference{},
Copy link

Choose a reason for hiding this comment

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

drop this commit completely, this got merged upstream and the secure test is below

Copy link
Author

Choose a reason for hiding this comment

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

Dropped

pkg/api/types.go Outdated
@@ -1580,6 +1580,9 @@ const (
// Capability represent POSIX capabilities type
type Capability string

// CapabilityAll represent all POSIX capabilities types.
Copy link

@liggitt liggitt Oct 2, 2017

Choose a reason for hiding this comment

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

drop these (they cancel):

UPSTREAM: <carry>: allow to use * as a capability in Security Context
UPSTREAM: revert: 1b2aacbd4010757b6978ddc40bfc8d89495c89dd: <carry>: allow to use * as a capability in Security Context Constraints.

Copy link
Author

Choose a reason for hiding this comment

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

Dropped

@@ -0,0 +1,28 @@
/*
Copy link

Choose a reason for hiding this comment

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

drop both of these (they cancel):

UPSTREAM: <drop>: drop post 3.7 rebase. allows disabled aggregator 
UPSTREAM: revert: 7fc9d38a7a: <drop>: drop post 3.7 rebase. allows disabled aggregator

Copy link
Author

Choose a reason for hiding this comment

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

Dropped

@@ -251,18 +251,20 @@ func (c completedConfig) NewWithDelegate(delegationTarget genericapiserver.Deleg
return nil
Copy link

Choose a reason for hiding this comment

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

drop both of these, they cancel:

UPSTREAM: revert: fbf1f04: <drop>: disable openapi aggregation
UPSTREAM: <drop>: disable openapi aggregation 

Copy link
Author

Choose a reason for hiding this comment

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

Dropped

Robert Rati and others added 16 commits October 3, 2017 08:56
:100644 100644 2b0ff8c2c7... 3d05185057... M	pkg/cloudprovider/providers/aws/tags.go
…h verbosity.

:100644 100644 b123c5a7a2... 7e25e48435... M	plugin/pkg/scheduler/algorithm/predicates/BUILD
:100644 100644 95939bf504... 06deb30149... M	plugin/pkg/scheduler/algorithm/predicates/predicates.go
:100644 100644 74a5174968... aa6f711c95... M	cmd/cloud-controller-manager/app/options/options.go
:100644 100644 28f906e528... 49f793294b... M	cmd/cloud-controller-manager/controller-manager.go
:100644 100644 4e77a7f0ef... 7d071dacaa... M	cmd/kube-controller-manager/app/controllermanager.go
:100644 100644 dec8d1f1ad... be69e12898... M	cmd/kube-controller-manager/app/options/options.go
:100644 100644 4c99e4a42c... a42543aa1b... M	pkg/apis/componentconfig/types.go
:100644 100644 2fb837b719... 0074fe3d02... M	pkg/cloudprovider/cloud.go
:100644 100644 a55061a74c... 5ab1b9e75e... M	pkg/cloudprovider/providers/aws/aws.go
:100644 100644 3d05185057... bb63fce2bf... M	pkg/cloudprovider/providers/aws/tags.go
:100644 100644 ca2e48b7e6... 1b4e645dd9... M	pkg/cloudprovider/providers/azure/azure.go
:100644 100644 f8e2b3ffb6... 1b86d8243a... M	pkg/cloudprovider/providers/cloudstack/cloudstack.go
:100644 100644 dcca77f511... a92c2d9b80... M	pkg/cloudprovider/providers/fake/fake.go
:100644 100644 90e2570a42... 0086678bca... M	pkg/cloudprovider/providers/gce/gce.go
:100644 100644 9462ff0a05... 3670813950... M	pkg/cloudprovider/providers/mesos/mesos.go
:100644 100644 08a35565e6... 5073cf4ef8... M	pkg/cloudprovider/providers/openstack/openstack.go
:100644 100644 8273c0b170... 496c444388... M	pkg/cloudprovider/providers/ovirt/ovirt.go
:100644 100644 f33e9c27a8... dd7b065d5a... M	pkg/cloudprovider/providers/photon/photon.go
:100644 100644 cf6ca3d445... 21782f4839... M	pkg/cloudprovider/providers/rackspace/rackspace.go
:100644 100644 63383a0657... 35d60888d2... M	pkg/cloudprovider/providers/vsphere/vsphere.go
UPSTREAM: 49117: Add apiserver metric for response sizes split by namespace scope
UPSTREAM: 49678: Report non-resource URLs in max-in-flight correctly
UPSTREAM: 49678: Timeout filter returns 504 and an inconsistent error body
UPSTREAM: 50123: Report pod logs as CONNECT in metrics
UPSTREAM: 52237: Add scope to all apiserver metrics and report resource scope

:100644 100644 a7877975cf... cb637257a4... M	pkg/registry/core/pod/rest/log.go
:100644 100644 d856440a83... 435a746b44... M	staging/src/k8s.io/apiserver/pkg/endpoints/handlers/proxy.go
:100644 100644 7a412a3e27... 9651c6f65a... M	staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
:100644 100644 2b5a3e0fd4... 067131411d... M	staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go
:100644 100644 989517c917... 07696d3d3e... M	staging/src/k8s.io/apiserver/pkg/endpoints/request/requestinfo.go
:100644 100644 77aa7d0076... 612678c328... M	staging/src/k8s.io/apiserver/pkg/server/filters/BUILD
:100644 100644 b5192bc590... a0208ed034... M	staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight.go
:100644 100644 79e185e818... fc302b22b4... M	staging/src/k8s.io/apiserver/pkg/server/filters/maxinflight_test.go
:100644 100644 19894b470b... 6bc496bdbf... M	staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go
:100644 100644 991427231a... 6283a6cc21... M	staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go
:100644 100644 7a97202f78... 37f6ee05ae... M	pkg/controller/volume/attachdetach/attach_detach_controller.go
:100644 100644 552530170f... 3aaf715525... M	pkg/controller/volume/attachdetach/cache/actual_state_of_world.go
:100644 100644 88ae500d82... 81e5653fd0... M	pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go
:100644 100644 ec011918ab... 12da11be39... M	pkg/controller/volume/attachdetach/reconciler/reconciler_test.go
…:nodes group

:100644 100644 1697ad680d... 4c9cd35296... M	plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
:100644 100644 5b666247fc... 87e8d85066... M	plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-role-bindings.yaml
:100644 100644 d7da1ba0ce... 9eec35352a... M	pkg/apis/componentconfig/helpers.go
:100644 100644 b001433753... 613d41c3c1... M	pkg/util/taints/taints.go
:100644 100644 31228219fe... 72987e330d... M	pkg/controller/node/timed_workers_test.go
:100644 100644 b6045ab6f1... 223ef46bed... M	cmd/kubelet/app/server.go
:100644 100644 49f641ab36... 9f4753b222... M	pkg/kubelet/cadvisor/BUILD
:100644 100644 8f8b3e8f87... a8020a503c... M	pkg/kubelet/cadvisor/cadvisor_linux.go
:100644 100644 d28d71ffa0... 7dbbde83ff... M	pkg/kubelet/cadvisor/cadvisor_unsupported.go
:100644 100644 4de44d7fba... 0033f92314... M	pkg/kubelet/cadvisor/cadvisor_windows.go
:100644 100644 2a97ba3523... 9ad6267ec2... M	pkg/kubelet/cadvisor/types.go
:100644 100644 bd30c66530... 42248f6695... M	pkg/kubelet/cadvisor/util.go
:100644 100644 ce50a109f0... 32f3f6a9e3... M	test/e2e_node/environment/conformance.go
:100644 100644 9f4753b222... c5de9dad14... M	pkg/kubelet/cadvisor/BUILD
:100644 100644 7dbbde83ff... be42d39e36... M	pkg/kubelet/cadvisor/cadvisor_unsupported.go
:100644 100644 0033f92314... 404dd05c75... M	pkg/kubelet/cadvisor/cadvisor_windows.go
:000000 100644 0000000000... a9e88b5bf8... A	pkg/kubelet/cadvisor/helpers_linux.go
:000000 100644 0000000000... af90f150c1... A	pkg/kubelet/cadvisor/helpers_unsupported.go
:100644 100644 42248f6695... bd30c66530... M	pkg/kubelet/cadvisor/util.go
:100644 100644 a9e88b5bf8... 94af5d39de... M	pkg/kubelet/cadvisor/helpers_linux.go
:100644 100644 b85f6c8c23... d1dfa73a6c... M	staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_test.go
:100644 100644 b5f310af04... 528b7094c7... M	staging/src/k8s.io/apiserver/pkg/server/options/audit.go
:100644 100644 82005d6ab3... 897aa13666... M	staging/src/k8s.io/apiserver/plugin/pkg/audit/log/BUILD
:100644 100644 9f381806d5... dec402e504... M	staging/src/k8s.io/apiserver/plugin/pkg/audit/log/backend.go
:100644 100644 526710c2c6... 78082d216b... M	staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go
:100644 100644 3c52d52c28... c5340c85d9... M	staging/src/k8s.io/apiserver/pkg/endpoints/filters/BUILD
:100644 100644 9ff9c45b9d... 2de7bc1733... M	staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go
:000000 100644 0000000000... a3c192f79f... A	staging/src/k8s.io/apiserver/pkg/endpoints/filters/authn_audit.go
:000000 100644 0000000000... fb9eeebf6b... A	staging/src/k8s.io/apiserver/pkg/endpoints/filters/authn_audit_test.go
:100644 100644 87a82518a6... 78fa466c34... M	staging/src/k8s.io/apiserver/pkg/server/config.go
:100644 100644 2de7bc1733... c65c6119c7... M	staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go
:100644 100644 2fcce4da75... 195340ecbd... M	staging/src/k8s.io/apiserver/pkg/audit/policy/reader.go
:100644 100644 be76364f59... 3eabbd3cb3... M	staging/src/k8s.io/apiserver/pkg/audit/policy/reader_test.go
@ironcladlou ironcladlou force-pushed the rebase-1.7.6 branch 2 times, most recently from 2c4da71 to a08f5ee Compare October 3, 2017 13:12
@ironcladlou
Copy link
Author

Addressed all comments (I think), and added a new commit at the end with new code generation results. PTAL.

@liggitt
Copy link

liggitt commented Oct 3, 2017

where did UPSTREAM: <carry>: allow PV controller recycler template override (3dc98da) go?

edit: we don't need it, and I asked you to drop it. carry on.

@liggitt
Copy link

liggitt commented Oct 3, 2017

LGTM

@liggitt
Copy link

liggitt commented Oct 3, 2017

are tests passing on this branch? if so, let's pull this into the origin branch, and get LGTM/green there before merging this

@soltysh
Copy link

soltysh commented Oct 3, 2017

@liggitt double checking, if yes I'll merge it in.

@soltysh
Copy link

soltysh commented Oct 3, 2017

1.7.x rebase

@soltysh
Copy link

soltysh commented Oct 4, 2017

Double checked it works fine. The only problem I've struggled was related to failures in integration tests which were cause by the low open files limit. After I bumped it to 102400 the integration suite passed.
@smarterclayton @mfojtik @ironcladlou @deads2k @sttts fyi, in case you hit this

Merging.

@soltysh soltysh merged commit ad0dbed into openshift:release-1.7.6 Oct 4, 2017
@sttts
Copy link

sttts commented Oct 4, 2017

🚀

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.