Skip to content

Commit e372b27

Browse files
author
Priya Wadhwa
committed
Fixed merge conflicts and small changes
2 parents 92d40a2 + eaac53f commit e372b27

File tree

6 files changed

+26
-13
lines changed

6 files changed

+26
-13
lines changed

cmd/storage-provisioner/main.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2016 The Kubernetes Authors All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
package main
218

319
import (

deploy/addons/storage-provisioner/storage-provisioner.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ metadata:
1919
namespace: kube-system
2020
labels:
2121
integration-test: storage-provisioner
22-
addonmanager.kubernetes.io/mode: Reconcile
23-
kubernetes.io/minikube-addons: storage-provisioner
22+
addonmanager.kubernetes.io/mode: EnsureExists
2423
spec:
2524
hostNetwork: true
2625
containers:

deploy/storage-provisioner/Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM ubuntu:16.04
16-
15+
FROM scratch
1716
COPY main main
18-
1917
CMD ["/main"]
20-

pkg/localkube/storage_provisioner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func StartStorageProvisioner(lk LocalkubeServer) func() error {
139139
// PVs
140140
pc := controller.NewProvisionController(clientset, provisionerName, hostPathProvisioner, serverVersion.GitVersion)
141141

142-
fmt.Println("wait never stop")
142+
glog.Info("Starting storage provisioner server")
143143
pc.Run(wait.NeverStop)
144144
return nil
145145
}

pkg/minikube/constants/constants.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ var LocalkubeCachedImages = []string{
181181

182182
// Pause
183183
"gcr.io/google_containers/pause-amd64:3.0",
184+
185+
//Storage provisioner
186+
"gcr.io/k8s-minikube/storage-provisioner:v1.8.0",
184187
}
185188

186189
func GetKubeadmCachedImages(version string) []string {
@@ -206,7 +209,9 @@ func GetKubeadmCachedImages(version string) []string {
206209
"gcr.io/google_containers/kube-scheduler-amd64:" + version,
207210
"gcr.io/google_containers/kube-controller-manager-amd64:" + version,
208211
"gcr.io/google_containers/kube-apiserver-amd64:" + version,
209-
}
212+
213+
//Storage provisioner
214+
"gcr.io/k8s-minikube/storage-provisioner:v1.8.0"}
210215
}
211216

212217
var ImageCacheDir = MakeMiniPath("cache", "images")

test/integration/functional_test.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ func TestFunctional(t *testing.T) {
3535
t.Run("Addons", testAddons)
3636
t.Run("Dashboard", testDashboard)
3737
t.Run("ServicesList", testServicesList)
38-
39-
// Don't run this test on kubeadm bootstrapper for now.
40-
if !strings.Contains(*args, "--bootstrapper=kubeadm") {
41-
t.Run("Provisioning", testProvisioning)
42-
}
38+
t.Run("Provisioning", testProvisioning)
4339

4440
if !strings.Contains(minikubeRunner.StartArgs, "--vm-driver=none") {
4541
t.Run("EnvVars", testClusterEnv)

0 commit comments

Comments
 (0)