Skip to content

PWX-28882: Fix Nomad support issues for vSphere provider#137

Merged
nrevanna merged 11 commits intomasterfrom
PWX-28882_master
Mar 26, 2023
Merged

PWX-28882: Fix Nomad support issues for vSphere provider#137
nrevanna merged 11 commits intomasterfrom
PWX-28882_master

Conversation

@nrevanna
Copy link
Copy Markdown
Contributor

Configmap apis were used in vSphere provider which stopped px from
coming up on Nomad. The following changes are made
    - Store interface moved to cloudops
    - DriveSetStore interface created with Store as composite. Contains
      interfaces with DriveSet datastructure.
    - GetLockTryDuration introduced
    - Renamed GetLockTimeout/SetLockTimeout to
      GetLockHoldTimeout/SetLockHoldTimeout.
    - Implemented IsKeyLocked() and LockWithKey() interfaces in kv_store
    - Removed noOpStore implementation. It was a stop gap solution for
      lack of implementation in kv_store

What this PR does / why we need it:

Which issue(s) this PR fixes (optional)
Closes #

Special notes for your reviewer:

    Configmap apis were used in vSphere provider which stopped px from
    coming up on Nomad. The following changes are made
        - Store interface moved to cloudops
        - DriveSetStore interface created with Store as composite. Contains
          interfaces with DriveSet datastructure.
        - GetLockTryDuration introduced
        - Renamed GetLockTimeout/SetLockTimeout to
          GetLockHoldTimeout/SetLockHoldTimeout.
        - Implemented IsKeyLocked() and LockWithKey() interfaces in kv_store
        - Removed noOpStore implementation. It was a stop gap solution for
          lack of implementation in kv_store

Signed-off-by: Naveen Revanna <nrevanna@purestorage.com>
Comment thread store/store.go Outdated
Comment thread store/store.go Outdated
Comment thread store/store.go Outdated
Comment thread store/store.go
Comment thread store/store.go Outdated
Comment thread store/store_k8s.go
Comment thread store/store_k8s.go Outdated
Comment thread store/store_kv.go
Comment thread vsphere/vsphere.go Outdated
Comment thread vsphere/vsphere.go
Copy link
Copy Markdown
Contributor

@adityadani adityadani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm after comments are addressed

Comment thread store/store.go Outdated
Comment thread store/store_k8s.go
Comment thread store/store_k8s.go
Comment thread store/store_k8s.go Outdated
Comment thread store/store_kv.go Outdated
Comment thread store/store_kv.go Outdated
Comment thread store/store_kv.go Outdated
Comment thread vsphere/vsphere.go Outdated
Comment thread store/store.go
@nrevanna nrevanna requested a review from pureneelesh March 25, 2023 06:58
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (b4dd76b) 8.09% compared to head (6bfc5a5) 8.07%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #137      +/-   ##
=========================================
- Coverage    8.09%   8.07%   -0.02%     
=========================================
  Files          18      18              
  Lines        4672    4681       +9     
=========================================
  Hits          378     378              
- Misses       4272    4281       +9     
  Partials       22      22              
Impacted Files Coverage Δ
vsphere/vsphere.go 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nrevanna nrevanna merged commit 9b329d7 into master Mar 26, 2023
@nrevanna nrevanna deleted the PWX-28882_master branch March 26, 2023 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants