Skip to content

Commit

Permalink
Merge pull request #194 from prashanth26/update-k8s-to-1.12
Browse files Browse the repository at this point in the history
Update k8s to 1.12
  • Loading branch information
hardikdr authored Dec 4, 2018
2 parents 1144143 + 93e2349 commit d156c29
Show file tree
Hide file tree
Showing 1,175 changed files with 42,873 additions and 15,486 deletions.
115 changes: 91 additions & 24 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ required = [

[[constraint]]
name = "k8s.io/api"
version = "kubernetes-1.10.8"
version = "kubernetes-1.12.1"

[[constraint]]
name = "k8s.io/apimachinery"
version = "kubernetes-1.10.4"
version = "kubernetes-1.12.1"

[[constraint]]
name = "k8s.io/apiserver"
version = "kubernetes-1.10.8"
version = "kubernetes-1.12.1"

[[constraint]]
branch = "release-7.0"
name = "k8s.io/client-go"
version = "kubernetes-1.12.1"

[[constraint]]
name = "k8s.io/code-generator"
version = "kubernetes-1.10.8"
version = "kubernetes-1.12.1"

# [[override]]
# name = "k8s.io/gengo"
Expand Down
7 changes: 5 additions & 2 deletions cmd/machine-controller-manager/app/controllermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Modifications Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights
package app

import (
"context"
"fmt"
"net"
"net/http"
Expand Down Expand Up @@ -121,7 +122,8 @@ func Run(s *options.MCMServer) error {

recorder := createRecorder(kubeClientControl)

run := func(stop <-chan struct{}) {
run := func(ctx context.Context) {
var stop <-chan struct{}
// Control plane client used to interact with machine APIs
controlMachineClientBuilder := machinecontroller.SimpleClientBuilder{
ClientConfig: controlkubeconfig,
Expand Down Expand Up @@ -173,7 +175,8 @@ func Run(s *options.MCMServer) error {
glog.Fatalf("error creating lock: %v", err)
}

leaderelection.RunOrDie(leaderelection.LeaderElectionConfig{
ctx := context.TODO()
leaderelection.RunOrDie(ctx, leaderelection.LeaderElectionConfig{
Lock: rl,
LeaseDuration: s.LeaderElection.LeaseDuration.Duration,
RenewDeadline: s.LeaderElection.RenewDeadline.Duration,
Expand Down
Loading

0 comments on commit d156c29

Please sign in to comment.