Skip to content
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

feat: read vCenter privileges from local file or editor #152

Merged
merged 5 commits into from
Aug 10, 2024

Conversation

TylerGillson
Copy link
Member

Issue

Resolves #99

Description

Rather than prompting users to select individual vCenter privileges, allow them to either specify a local file containing a single privilege per line or edit a file that's pre-populated with all valid privileges.

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
@TylerGillson TylerGillson requested a review from a team as a code owner August 9, 2024 18:32
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Aug 9, 2024
@TylerGillson TylerGillson requested review from ahmad-ibra and removed request for mattwelke August 9, 2024 18:33
@dosubot dosubot bot added the new-feature Net-new feature label Aug 9, 2024
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

Attention: Patch coverage is 61.44578% with 64 lines in your changes missing coverage. Please review.

Files Patch % Lines
pkg/services/validator/vmware.go 0.00% 57 Missing ⚠️
pkg/services/validator/azure.go 0.00% 4 Missing ⚠️
pkg/services/validator/aws.go 0.00% 3 Missing ⚠️
@@            Coverage Diff             @@
##             main     #152      +/-   ##
==========================================
- Coverage   39.33%   39.08%   -0.26%     
==========================================
  Files          41       41              
  Lines        5417     5444      +27     
==========================================
- Hits         2131     2128       -3     
- Misses       2899     2929      +30     
  Partials      387      387              
Files Coverage Δ
pkg/components/validator.go 57.94% <ø> (-0.14%) ⬇️
pkg/config/constants.go 100.00% <ø> (ø)
...integration/_validator/testcases/test_validator.go 92.85% <100.00%> (-0.03%) ⬇️
pkg/services/validator/aws.go 14.39% <0.00%> (ø)
pkg/services/validator/azure.go 9.69% <0.00%> (ø)
pkg/services/validator/vmware.go 10.78% <0.00%> (-0.50%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a3fe4d...a1413b4. Read the comment docs.

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
- Resource.AssignVAppToPool
- VirtualMachine.GuestOperations.QueryAliases
- Host.Inventory.RemoveHostFromCluster
- Alarm.Acknowledge
Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks for putting this all in alphabetical order 😅
going through this would be a pain otherwise

Copy link
Member Author

Choose a reason for hiding this comment

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

np :)

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 9, 2024
@TylerGillson TylerGillson merged commit 94ddd90 into main Aug 10, 2024
8 checks passed
@TylerGillson TylerGillson deleted the feat/vcenter-privileges branch August 10, 2024 00:54
arturshadnik pushed a commit that referenced this pull request Aug 12, 2024
## Issue
Resolves #99

## Description
Rather than prompting users to select individual vCenter privileges,
allow them to either specify a local file containing a single privilege
per line or edit a file that's pre-populated with all valid privileges.

---------

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
ahmad-ibra pushed a commit that referenced this pull request Aug 19, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.1.2](v0.1.1...v0.1.2)
(2024-08-19)


### Features

* add maas plugin
([#160](#160))
([ab9f21a](ab9f21a))
* allow selecting aws creds from filesystem
([#171](#171))
([c3a714c](c3a714c))
* allow specifying Azure cloud to connect to
([#170](#170))
([6a4a704](6a4a704))
* read vCenter privileges from local file or editor
([#152](#152))
([94ddd90](94ddd90))
* set exit code 2 on validation failure; restore debug log file
([#150](#150))
([2a3fe4d](2a3fe4d))
* support configuring oci validationType on a rule
([#161](#161))
([8dfc501](8dfc501))
* support direct oci validation of private registries
([#173](#173))
([9cfeab9](9cfeab9))


### Bug Fixes

* correct TUI flow for `validator install -o --apply`
([#169](#169))
([0912f6e](0912f6e))
* export creds for aws and azure direct check
([#167](#167))
([5d569de](5d569de))


### Dependency Updates

* **deps:** update anchore/sbom-action action to v0.17.1
([#163](#163))
([416d23c](416d23c))
* **deps:** update github.com/validator-labs/validator-plugin-azure
digest to b4687e5
([#149](#149))
([e7ab9a6](e7ab9a6))
* **deps:** update github.com/validator-labs/validator-plugin-vsphere
digest to a93cb70
([#147](#147))
([79304b9](79304b9))
* **deps:** update module github.com/vmware/govmomi to v0.40.0
([#162](#162))
([acf4a25](acf4a25))


### Refactoring

* lazy configuration of oci auth and signature verification secrets
([#168](#168))
([cc2c056](cc2c056))
* remove explicit TypeMetas; use vapi constants
([#154](#154))
([28b321c](28b321c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer new-feature Net-new feature size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🌱 Read vSphere privileges from a file and/or text editor
2 participants