Skip to content

Commit

Permalink
Add namespace during configmap creation for vsphere
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-bhatia committed Mar 16, 2023
1 parent 9ecda22 commit 86173ac
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/libopenstorage/secrets v0.0.0-20210908194121-a1d19aa9713a
github.com/oracle/oci-go-sdk/v65 v65.13.1
github.com/pborman/uuid v1.2.0
github.com/portworx/sched-ops v1.20.4-rc1.0.20211217234328-ead591c0f22d
github.com/portworx/sched-ops v1.20.4-rc1.0.20230314044304-e069226251c6
github.com/prometheus/client_golang v1.9.0
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.7.0
Expand Down

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

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ github.com/pborman/uuid
# github.com/pmezard/go-difflib v1.0.0
## explicit
github.com/pmezard/go-difflib/difflib
# github.com/portworx/sched-ops v1.20.4-rc1.0.20211217234328-ead591c0f22d
# github.com/portworx/sched-ops v1.20.4-rc1.0.20230314044304-e069226251c6
## explicit; go 1.12
github.com/portworx/sched-ops/k8s/common
github.com/portworx/sched-ops/k8s/core
Expand Down
5 changes: 3 additions & 2 deletions vsphere/vsphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package vsphere
import (
"context"
"fmt"
"github.com/portworx/sched-ops/k8s/core/configmap"
"path"
"path/filepath"
"regexp"
"strings"
"time"

"github.com/portworx/sched-ops/k8s/core/configmap"

"github.com/hashicorp/go-version"
"github.com/libopenstorage/cloudops"
"github.com/libopenstorage/cloudops/backoff"
Expand Down Expand Up @@ -83,7 +84,7 @@ func NewClient(cfg *VSphereConfig) (cloudops.Ops, error) {
logrus.Debugf(" Datacenter: %s", vmObj.Datacenter.Name())
logrus.Debugf(" VMUUID: %s", cfg.VMUUID)

configMap, err := configmap.New(vSphereDataStoreLock, nil, 0, 420, 5*time.Second, 10*time.Second)
configMap, err := configmap.New(vSphereDataStoreLock, nil, 0, 420, 5*time.Second, 10*time.Second, "")
if err != nil {
logrus.Errorf(err.Error())
return nil, err
Expand Down

0 comments on commit 86173ac

Please sign in to comment.