Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#1016 from iawia002/go-1.11
Browse files Browse the repository at this point in the history
Bump golang version to 1.11.1
  • Loading branch information
k8s-ci-robot authored Oct 16, 2018
2 parents dd2dadf + 7334ed9 commit 87f0009
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ os:

language: go
go:
- 1.10.3
- 1.11.1
services: docker

go_import_path: github.com/kubernetes-incubator/external-storage
Expand Down
2 changes: 1 addition & 1 deletion aws/efs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ all build:
-v $$(pwd):/go/bin \
-v $$(pwd)/.go/stdlib:/usr/local/go/pkg/linux_amd64_asdf \
-w /go/src/github.com/kubernetes-incubator/external-storage/aws/efs \
golang:1.10.3-alpine \
golang:1.11.1-alpine \
go install -installsuffix "asdf" ./cmd/efs-provisioner
.PHONY: all build

Expand Down
2 changes: 1 addition & 1 deletion gluster/block/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ all build:
-v $$(pwd):/go/bin \
-v $$(pwd)/.go/stdlib:/usr/local/go/pkg/linux_amd64_asdf \
-w /go/src/github.com/kubernetes-incubator/external-storage/gluster/block \
golang:1.10.3-alpine \
golang:1.11.1-alpine \
go install -installsuffix "asdf" ./cmd/glusterblock-provisioner
.PHONY: all build

Expand Down
2 changes: 1 addition & 1 deletion gluster/file/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ all build:
-v $$(pwd):/go/bin \
-v $$(pwd)/.go/stdlib:/usr/local/go/pkg/linux_amd64_asdf \
-w /go/src/github.com/kubernetes-incubator/external-storage/gluster/file \
golang:1.10.3-alpine \
golang:1.11.1-alpine \
go install -installsuffix "asdf" ./cmd/glusterfile-provisioner
.PHONY: all build

Expand Down
2 changes: 1 addition & 1 deletion iscsi/targetd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ all build:
-v $$(pwd):/go/bin \
-v $$(pwd)/.go/stdlib:/usr/local/go/pkg/linux_amd64_asdf \
-w /go/src/github.com/kubernetes-incubator/external-storage/iscsi/targetd \
golang:1.10.3-alpine \
golang:1.11.1-alpine \
go install -installsuffix "asdf" .
.PHONY: all build

Expand Down
12 changes: 6 additions & 6 deletions lib/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1002,12 +1002,12 @@ func (ctrl *ProvisionController) provisionClaimOperation(claim *v1.PersistentVol

options := VolumeOptions{
PersistentVolumeReclaimPolicy: reclaimPolicy,
PVName: pvName,
PVC: claim,
MountOptions: mountOptions,
Parameters: parameters,
SelectedNode: selectedNode,
AllowedTopologies: allowedTopologies,
PVName: pvName,
PVC: claim,
MountOptions: mountOptions,
Parameters: parameters,
SelectedNode: selectedNode,
AllowedTopologies: allowedTopologies,
}

ctrl.eventRecorder.Event(claim, v1.EventTypeNormal, "Provisioning", fmt.Sprintf("External provisioner is provisioning volume for claim %q", claimToClaimKey(claim)))
Expand Down
4 changes: 2 additions & 2 deletions lib/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,8 +904,8 @@ func constructProvisionedVolumeWithoutStorageClassInfo(claim *v1.PersistentVolum
// pv.Spec MUST be set to match requirements in claim.Spec, especially access mode and PV size. The provisioned volume size MUST NOT be smaller than size requested in the claim, however it MAY be larger.
options := VolumeOptions{
PersistentVolumeReclaimPolicy: reclaimPolicy,
PVName: "pvc-" + string(claim.ObjectMeta.UID),
PVC: claim,
PVName: "pvc-" + string(claim.ObjectMeta.UID),
PVC: claim,
}
volume, _ := newTestProvisioner().Provision(options)

Expand Down
49 changes: 24 additions & 25 deletions nfs/pkg/volume/provision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ func TestCreateVolume(t *testing.T) {
name: "succeed creating volume",
options: controller.VolumeOptions{
PersistentVolumeReclaimPolicy: v1.PersistentVolumeReclaimDelete,
PVName: "pvc-1",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
PVName: "pvc-1",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
},
envKey: podIPEnv,
expectedServer: "1.1.1.1",
Expand All @@ -75,9 +75,9 @@ func TestCreateVolume(t *testing.T) {
name: "succeed creating volume again",
options: controller.VolumeOptions{
PersistentVolumeReclaimPolicy: v1.PersistentVolumeReclaimDelete,
PVName: "pvc-2",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
PVName: "pvc-2",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
},
envKey: podIPEnv,
expectedServer: "1.1.1.1",
Expand All @@ -91,9 +91,9 @@ func TestCreateVolume(t *testing.T) {
name: "bad parameter",
options: controller.VolumeOptions{
PersistentVolumeReclaimPolicy: v1.PersistentVolumeReclaimDelete,
PVName: "pvc-3",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{"foo": "bar"},
PVName: "pvc-3",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{"foo": "bar"},
},
envKey: podIPEnv,
expectedServer: "",
Expand All @@ -108,9 +108,9 @@ func TestCreateVolume(t *testing.T) {
name: "bad server",
options: controller.VolumeOptions{
PersistentVolumeReclaimPolicy: v1.PersistentVolumeReclaimDelete,
PVName: "pvc-4",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
PVName: "pvc-4",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
},
envKey: serviceEnv,
expectedServer: "",
Expand All @@ -125,9 +125,9 @@ func TestCreateVolume(t *testing.T) {
name: "dir already exists",
options: controller.VolumeOptions{
PersistentVolumeReclaimPolicy: v1.PersistentVolumeReclaimDelete,
PVName: "pvc-1",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
PVName: "pvc-1",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
},
envKey: podIPEnv,
expectedServer: "",
Expand All @@ -142,9 +142,9 @@ func TestCreateVolume(t *testing.T) {
name: "error exporting",
options: controller.VolumeOptions{
PersistentVolumeReclaimPolicy: v1.PersistentVolumeReclaimDelete,
PVName: "FAIL_TO_EXPORT_ME",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
PVName: "FAIL_TO_EXPORT_ME",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
},
envKey: podIPEnv,
expectedServer: "",
Expand All @@ -158,9 +158,9 @@ func TestCreateVolume(t *testing.T) {
name: "succeed creating volume last slot",
options: controller.VolumeOptions{
PersistentVolumeReclaimPolicy: v1.PersistentVolumeReclaimDelete,
PVName: "pvc-3",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
PVName: "pvc-3",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
},
envKey: podIPEnv,
expectedServer: "1.1.1.1",
Expand All @@ -174,9 +174,9 @@ func TestCreateVolume(t *testing.T) {
name: "max export limit exceeded",
options: controller.VolumeOptions{
PersistentVolumeReclaimPolicy: v1.PersistentVolumeReclaimDelete,
PVName: "pvc-3",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
PVName: "pvc-3",
PVC: newClaim(resource.MustParse("1Ki"), []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce, v1.ReadOnlyMany}, nil),
Parameters: map[string]string{},
},
envKey: podIPEnv,
expectedServer: "",
Expand Down Expand Up @@ -589,7 +589,6 @@ func TestGetServer(t *testing.T) {
expectedServer string
expectError bool
}{

{
name: "valid node only",
objs: []runtime.Object{},
Expand Down

0 comments on commit 87f0009

Please sign in to comment.