Skip to content

Automated cherry pick of #62649: Ensure service routing resolves kubernetes.default.svc#62654

Merged
k8s-github-robot merged 6 commits intokubernetes:release-1.10from
liggitt:automated-cherry-pick-of-#62649-upstream-release-1.10
Apr 24, 2018
Merged

Automated cherry pick of #62649: Ensure service routing resolves kubernetes.default.svc#62654
k8s-github-robot merged 6 commits intokubernetes:release-1.10from
liggitt:automated-cherry-pick-of-#62649-upstream-release-1.10

Conversation

@liggitt
Copy link
Copy Markdown
Member

@liggitt liggitt commented Apr 16, 2018

Cherry pick of #62649 on release-1.10.

#62649: Ensure service routing resolves kubernetes.default.svc

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 16, 2018
@k8s-github-robot k8s-github-robot added the do-not-merge/cherry-pick-not-approved Indicates that a PR is not yet approved to merge into a release branch. label Apr 16, 2018
@liggitt liggitt added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. labels Apr 16, 2018
@deads2k
Copy link
Copy Markdown
Contributor

deads2k commented Apr 16, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 16, 2018
@jennybuckley
Copy link
Copy Markdown

jennybuckley commented Apr 16, 2018

@MaciekPytel

@liggitt liggitt force-pushed the automated-cherry-pick-of-#62649-upstream-release-1.10 branch from 7feff47 to a60d053 Compare April 17, 2018 15:11
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 17, 2018
@MaciekPytel
Copy link
Copy Markdown
Contributor

The discussion seems to be still ongoing on the base PR. I'll wait with approving cherry-pick until base PR is finalized and merged.

@deads2k
Copy link
Copy Markdown
Contributor

deads2k commented Apr 24, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 24, 2018
@liggitt liggitt force-pushed the automated-cherry-pick-of-#62649-upstream-release-1.10 branch from a6d1892 to 11b3b98 Compare April 24, 2018 13:26
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 24, 2018
@liggitt
Copy link
Copy Markdown
Member Author

liggitt commented Apr 24, 2018

fixed up server wiring in the integration test to match 1.10-era startup:

--- a/test/integration/examples/setup_test.go
+++ b/test/integration/examples/setup_test.go
@@ -97,21 +97,17 @@ func startTestServer(t *testing.T, stopCh <-chan struct{}, setup TestServerSetup
        kubeAPIServerOptions.Authentication.RequestHeader.AllowedNames = []string{"kube-aggregator"}
        kubeAPIServerOptions.Authentication.RequestHeader.ClientCAFile = proxyCACertFile.Name()
        kubeAPIServerOptions.Authentication.ClientCert.ClientCA = clientCACertFile.Name()
-       kubeAPIServerOptions.Authorization.Modes = []string{"Node", "RBAC"}
+       kubeAPIServerOptions.Authorization.Mode = "Node,RBAC"
 
        if setup.ModifyServerRunOptions != nil {
                setup.ModifyServerRunOptions(kubeAPIServerOptions)
        }
 
-       completedOptions, err := app.Complete(kubeAPIServerOptions)
+       tunneler, proxyTransport, err := app.CreateNodeDialer(kubeAPIServerOptions)
        if err != nil {
                t.Fatal(err)
        }
-       tunneler, proxyTransport, err := app.CreateNodeDialer(completedOptions)
-       if err != nil {
-               t.Fatal(err)
-       }
-       kubeAPIServerConfig, sharedInformers, versionedInformers, _, _, _, err := app.CreateKubeAPIServerConfig(completedOptions, tunneler, proxyTransport)
+       kubeAPIServerConfig, sharedInformers, versionedInformers, _, _, _, err := app.CreateKubeAPIServerConfig(kubeAPIServerOptions, tunneler, proxyTransport)
        if err != nil {
                t.Fatal(err)
        }
@@ -119,7 +115,7 @@ func startTestServer(t *testing.T, stopCh <-chan struct{}, setup TestServerSetup
        if setup.ModifyServerConfig != nil {
                setup.ModifyServerConfig(kubeAPIServerConfig)
        }
-       kubeAPIServer, err := app.CreateKubeAPIServer(kubeAPIServerConfig, genericapiserver.NewEmptyDelegate(), sharedInformers, versionedInformers)
+       kubeAPIServer, err := app.CreateKubeAPIServer(kubeAPIServerConfig, genericapiserver.EmptyDelegate, sharedInformers, versionedInformers)
        if err != nil {
                t.Fatal(err)
        }

@deads2k
Copy link
Copy Markdown
Contributor

deads2k commented Apr 24, 2018

diff lgtm

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 24, 2018
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, liggitt

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@MaciekPytel MaciekPytel added cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. and removed do-not-merge/cherry-pick-not-approved Indicates that a PR is not yet approved to merge into a release branch. labels Apr 24, 2018
@k8s-github-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link
Copy Markdown

Automatic merge from submit-queue.

@k8s-github-robot k8s-github-robot merged commit 5f050fa into kubernetes:release-1.10 Apr 24, 2018
k8s-github-robot pushed a commit that referenced this pull request May 15, 2018
…4-upstream-release-1.9

Automatic merge from submit-queue.

Automated cherry pick of #62654: Ensure service routing resolves kubernetes.default.svc

Cherry pick of #62654 on release-1.9.

#62654: Ensure service routing resolves kubernetes.default.svc

```release-note
Fixes the kubernetes.default.svc loopback service resolution to use a loopback configuration.
```
@liggitt liggitt deleted the automated-cherry-pick-of-#62649-upstream-release-1.10 branch April 22, 2019 15:18
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. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants