Skip to content

refactor: vCenter entity type constants#360

Merged
TylerGillson merged 1 commit intomainfrom
refactor/entity-type-constants
Sep 6, 2024
Merged

refactor: vCenter entity type constants#360
TylerGillson merged 1 commit intomainfrom
refactor/entity-type-constants

Conversation

@TylerGillson
Copy link
Member

Issue

N/A

Description

Make all vCenter entity types constants.

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
@TylerGillson TylerGillson requested a review from a team as a code owner September 6, 2024 15:14
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement Enhancement to an existing feature labels Sep 6, 2024
@TylerGillson TylerGillson requested review from ahmad-ibra and removed request for arturshadnik September 6, 2024 15:15
Copy link
Member

@ahmad-ibra ahmad-ibra left a comment

Choose a reason for hiding this comment

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

LGTM, just left a single question around one of the entity string values

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 6, 2024
@codecov
Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 45.88235% with 46 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/vsphere/user.go 0.00% 34 Missing ⚠️
pkg/validators/tags/tags.go 57.14% 9 Missing ⚠️
api/vcenter/types.go 87.50% 1 Missing and 1 partial ⚠️
pkg/vsphere/vsphere.go 0.00% 1 Missing ⚠️
@@            Coverage Diff             @@
##             main     #360      +/-   ##
==========================================
+ Coverage   37.56%   38.57%   +1.00%     
==========================================
  Files          30       29       -1     
  Lines        1858     1737     -121     
==========================================
- Hits          698      670      -28     
+ Misses       1088      995      -93     
  Partials       72       72              
Files with missing lines Coverage Δ
api/v1alpha1/vspherevalidator_types.go 44.82% <ø> (-3.56%) ⬇️
internal/controller/vspherevalidator_controller.go 54.54% <100.00%> (+0.25%) ⬆️
...kg/validators/computeresources/computeresources.go 76.04% <100.00%> (-2.15%) ⬇️
pkg/validators/privileges/privilege.go 100.00% <100.00%> (ø)
pkg/vcsim/vcsim.go 86.51% <100.00%> (-0.72%) ⬇️
tests/integration/tags/tags.go 88.50% <100.00%> (-2.61%) ⬇️
pkg/vsphere/vsphere.go 8.18% <0.00%> (ø)
api/vcenter/types.go 87.50% <87.50%> (ø)
pkg/validators/tags/tags.go 75.00% <57.14%> (+23.57%) ⬆️
pkg/vsphere/user.go 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes


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 f9b63d8...123dc7f. Read the comment docs.

@TylerGillson TylerGillson merged commit 3fb6f51 into main Sep 6, 2024
@TylerGillson TylerGillson deleted the refactor/entity-type-constants branch September 6, 2024 15:41
TylerGillson added a commit that referenced this pull request Sep 10, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.1.0](v0.0.34...v0.1.0)
(2024-09-10)


### ⚠ BREAKING CHANGES

* support additional vCenter entities for privilege rules
([#362](#362))
* remove RolePrivilegeValidationRules, add enums to API, remove "cloud"
refs and simplify account handling
([#357](#357))

### Features

* support additional vCenter entities for privilege rules
([#362](#362))
([abe3a94](abe3a94))


### Docs

* fix typos
([f9b63d8](f9b63d8))
* update CR samples
([#367](#367))
([e6968ba](e6968ba))


### Dependency Updates

* **deps:** update golang.org/x/exp digest to 701f63a
([#364](#364))
([37af6b3](37af6b3))
* **deps:** update golang.org/x/exp digest to e7e105d
([#355](#355))
([b67befa](b67befa))
* **deps:** update module github.com/onsi/ginkgo/v2 to v2.20.2
([#353](#353))
([f9eab82](f9eab82))
* **deps:** update module github.com/onsi/gomega to v1.34.2
([#354](#354))
([d834600](d834600))
* **deps:** update module github.com/validator-labs/validator to v0.1.10
([#356](#356))
([3c0c928](3c0c928))
* **deps:** update module github.com/validator-labs/validator to v0.1.9
([#347](#347))
([cd8ff75](cd8ff75))
* **deps:** update module sigs.k8s.io/cluster-api to v1.8.2
([#358](#358))
([0f7c799](0f7c799))


### Refactoring

* remove RolePrivilegeValidationRules, add enums to API, remove "cloud"
refs and simplify account handling
([#357](#357))
([4388804](4388804))
* rename CloudDriver -&gt; VCenterDriver
([#361](#361))
([8943ff6](8943ff6))
* vCenter entity type constants
([#360](#360))
([3fb6f51](3fb6f51))

---
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

enhancement Enhancement to an existing feature lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants