Skip to content

Commit 86173ac

Browse files
committed
Add namespace during configmap creation for vsphere
1 parent 9ecda22 commit 86173ac

4 files changed

Lines changed: 23 additions & 9 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/libopenstorage/secrets v0.0.0-20210908194121-a1d19aa9713a
1919
github.com/oracle/oci-go-sdk/v65 v65.13.1
2020
github.com/pborman/uuid v1.2.0
21-
github.com/portworx/sched-ops v1.20.4-rc1.0.20211217234328-ead591c0f22d
21+
github.com/portworx/sched-ops v1.20.4-rc1.0.20230314044304-e069226251c6
2222
github.com/prometheus/client_golang v1.9.0
2323
github.com/sirupsen/logrus v1.8.1
2424
github.com/stretchr/testify v1.7.0

vendor/github.com/portworx/sched-ops/k8s/core/configmap/configmap.go

Lines changed: 18 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ github.com/pborman/uuid
232232
# github.com/pmezard/go-difflib v1.0.0
233233
## explicit
234234
github.com/pmezard/go-difflib/difflib
235-
# github.com/portworx/sched-ops v1.20.4-rc1.0.20211217234328-ead591c0f22d
235+
# github.com/portworx/sched-ops v1.20.4-rc1.0.20230314044304-e069226251c6
236236
## explicit; go 1.12
237237
github.com/portworx/sched-ops/k8s/common
238238
github.com/portworx/sched-ops/k8s/core

vsphere/vsphere.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ package vsphere
33
import (
44
"context"
55
"fmt"
6-
"github.com/portworx/sched-ops/k8s/core/configmap"
76
"path"
87
"path/filepath"
98
"regexp"
109
"strings"
1110
"time"
1211

12+
"github.com/portworx/sched-ops/k8s/core/configmap"
13+
1314
"github.com/hashicorp/go-version"
1415
"github.com/libopenstorage/cloudops"
1516
"github.com/libopenstorage/cloudops/backoff"
@@ -83,7 +84,7 @@ func NewClient(cfg *VSphereConfig) (cloudops.Ops, error) {
8384
logrus.Debugf(" Datacenter: %s", vmObj.Datacenter.Name())
8485
logrus.Debugf(" VMUUID: %s", cfg.VMUUID)
8586

86-
configMap, err := configmap.New(vSphereDataStoreLock, nil, 0, 420, 5*time.Second, 10*time.Second)
87+
configMap, err := configmap.New(vSphereDataStoreLock, nil, 0, 420, 5*time.Second, 10*time.Second, "")
8788
if err != nil {
8889
logrus.Errorf(err.Error())
8990
return nil, err

0 commit comments

Comments
 (0)