Skip to content

Commit

Permalink
chore(bump-version): bump kubernetes dependency to "kubernetes-1.17.0…
Browse files Browse the repository at this point in the history
…" version (#1596)

* bump client go version from kubernetes-1.14.3 to kubernetes-1.17.0
* generated code using new version of clint go
* manual changes

Signed-off-by: Shovan Maity <[email protected]>
  • Loading branch information
Shovan Maity authored Jan 29, 2020
1 parent 27bab2c commit 0689d00
Show file tree
Hide file tree
Showing 590 changed files with 119,297 additions and 150,110 deletions.
74 changes: 51 additions & 23 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 @@ -33,23 +33,23 @@ required = [

[[constraint]]
name = "k8s.io/kubernetes"
version = "~1.14"
version = "1.17.0"

[[constraint]]
name = "k8s.io/api"
version = "kubernetes-1.14.3"
version = "kubernetes-1.17.0"

[[constraint]]
name = "k8s.io/apimachinery"
version = "kubernetes-1.14.3"
version = "kubernetes-1.17.0"

[[constraint]]
name = "k8s.io/client-go"
version = "kubernetes-1.14.3"
version = "kubernetes-1.17.0"

[[constraint]]
name = "k8s.io/code-generator"
version = "kubernetes-1.14.3"
version = "kubernetes-1.17.0"

#[[constraint]]
# name = "k8s.io/apiextensions-apiserver"
Expand Down
14 changes: 10 additions & 4 deletions cmd/cstor-pool-mgmt/controller/replica-controller/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ func TestGetVolumeReplicaResource(t *testing.T) {
"VolumeReplicaResource1": {
expectedName: "VolumeReplicaResource1",
test: &apis.CStorVolumeReplica{
ObjectMeta: metav1.ObjectMeta{Name: "VolumeReplicaResource1"},
ObjectMeta: metav1.ObjectMeta{
Name: "VolumeReplicaResource1",
Namespace: "default",
},
Spec: apis.CStorVolumeReplicaSpec{
TargetIP: "10.210.110.121",
Capacity: "100MB",
Expand All @@ -57,7 +60,10 @@ func TestGetVolumeReplicaResource(t *testing.T) {
"VolumeReplicaResource2": {
expectedName: "VolumeReplicaResource2",
test: &apis.CStorVolumeReplica{
ObjectMeta: metav1.ObjectMeta{Name: "VolumeReplicaResource2"},
ObjectMeta: metav1.ObjectMeta{
Name: "VolumeReplicaResource2",
Namespace: "default",
},
Spec: apis.CStorVolumeReplicaSpec{
TargetIP: "10.210.110.121",
Capacity: "100MB",
Expand All @@ -67,13 +73,13 @@ func TestGetVolumeReplicaResource(t *testing.T) {
}
for desc, ut := range testVolumeReplicaResource {
// Create a volume-replica resource.
_, err := volumeReplicaController.clientset.OpenebsV1alpha1().CStorVolumeReplicas("default").Create(ut.test)
_, err := volumeReplicaController.clientset.OpenebsV1alpha1().CStorVolumeReplicas(ut.test.ObjectMeta.Namespace).Create(ut.test)
if err != nil {
t.Fatalf("Desc:%v, Unable to create resource : %v", desc, ut.test.ObjectMeta.Name)
}

// Get volume replica resource with name
cStorVolumeReplicaObtained, err := volumeReplicaController.getVolumeReplicaResource(ut.test.ObjectMeta.Name)
cStorVolumeReplicaObtained, err := volumeReplicaController.getVolumeReplicaResource(ut.test.ObjectMeta.Namespace + "/" + ut.test.ObjectMeta.Name)

if cStorVolumeReplicaObtained.Name != ut.expectedName {
t.Fatalf("Desc:%v, volName mismatch, Expected:%v, Got:%v", desc, ut.expectedName,
Expand Down
6 changes: 3 additions & 3 deletions pkg/apis/openebs.io/ndm/v1alpha1/zz_generated.deepcopy.go

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

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

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

4 changes: 2 additions & 2 deletions pkg/apis/openebs.io/upgrade/v1alpha1/zz_generated.deepcopy.go

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

Loading

0 comments on commit 0689d00

Please sign in to comment.