-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWX-21520 : Add custom namespace during configmap creation #149
base: master
Are you sure you want to change the base?
Conversation
@@ -72,11 +72,12 @@ type k8sStore struct { | |||
|
|||
// NewK8sStore returns a Store implementation which uses | |||
// k8s configmaps to store data. | |||
func NewK8sStore(clusterID string) (Store, configmap.ConfigMap, error) { | |||
func NewK8sStore(clusterID, ns string) (Store, configmap.ConfigMap, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Can we call this pxNs?
Can we modify all references to namespace to indicate that it's PX's namespace that we are passing?
@@ -90,6 +91,7 @@ func newK8sStoreWithParams( | |||
name string, | |||
lockTryDuration time.Duration, | |||
lockTimeout time.Duration, | |||
ns string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ns -> pxNs
@@ -99,6 +101,7 @@ func newK8sStoreWithParams( | |||
lockAttempts, | |||
0, | |||
0, | |||
ns, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ns -> pxNS
@@ -61,7 +61,7 @@ type VirtualDisk struct { | |||
} | |||
|
|||
// NewClient creates a new vsphere cloudops instance | |||
func NewClient(cfg *VSphereConfig, storeParams *store.Params) (cloudops.Ops, error) { | |||
func NewClient(cfg *VSphereConfig, storeParams *store.Params, namespace string) (cloudops.Ops, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: namespace -> pxNamespace
https://portworx.atlassian.net/browse/PWX-21520
Changes done :
Version of sched-ops is changed to latest commit hash of portworx/sched-ops#320. Because of that, other versions were also required to be updated for compatibility.
P.S : Need to update cloudops version in "porx" go.mod after this PR is merged.