Skip to content

feat: add component size checks#130

Merged
GaryJBlake merged 1 commit into
mainfrom
feat/add-component-size-checks
Apr 25, 2023
Merged

feat: add component size checks#130
GaryJBlake merged 1 commit into
mainfrom
feat/add-component-size-checks

Conversation

@tenthirtyam
Copy link
Copy Markdown
Contributor

@tenthirtyam tenthirtyam commented Apr 20, 2023

In order to have a good experience with our community, we recommend that you read the contributing guidelines for making a pull request.

Summary of Pull Request

  • Added component size checks (e.g., tiny, x-small, small, etc...) for vCenter Server instances and NSX Local Manager clusters to the overview report.
  • Updates CHANGELOG.md
  • Updates module version from v2.1.0.1001 to v2.1.0.1002.

Type of Pull Request

  • This is a bug fix.
  • This is an enhancement or feature.
  • This is a code style / formatting update.
  • This is a documentation update.
  • This is a refactoring update.
  • This is a chore update
  • This is something else.
    Please describe:

Related to Existing Issues

Closes #71

Test and Documentation Coverage

  • Tests have been completed (for bug fixes / features).
  • Documentation has been added / updated (for bug fixes / features).
PS F:\> Request-VcenterOverview -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1!

vCenter Server FQDN : sfo-m01-vc01.sfo.rainpole.io
Version             : 7.0.3.01000-20395099
Domain Name         : sfo-m01
Domain Type         : management
Size                : small
CPU                 : 4
Memory (GB)         : 19
Total Clusters      : 1
Total Hosts         : 4
Total VMs           : 41
Powered On VMs      : 40
Powered Off VMs     : 1

vCenter Server FQDN : sfo-w01-vc01.sfo.rainpole.io
Version             : 7.0.3.01000-20395099
Domain Name         : sfo-w01
Domain Type         : vi
Size                : medium
CPU                 : 8
Memory (GB)         : 28
Total Clusters      : 1
Total Hosts         : 3
Total VMs           : 24
Powered On VMs      : 22
Powered Off VMs     : 2

PS F:\> Request-NetworkOverview -server sfo-vcf01.sfo.rainpole.io -user admin@local -pass VMw@re1!VMw@re1!

NSX Manager Cluster FQDN : sfo-m01-nsx01.sfo.rainpole.io
Version                  : 3.2.1.2.0-20541212
Domain Name              : sfo-m01
Domain Type              : management
Shared                   : False
Size                     : medium
CPU                      : 6
Memory (GB)              : 24
Edge Cluster             : True
AVN                      : True

NSX Manager Cluster FQDN : sfo-w01-nsx01.sfo.rainpole.io
Version                  : 3.2.1.2.0-20541212
Domain Name              : sfo-w01
Domain Type              : vi
Shared                   : False
Size                     : medium
CPU                      : 6
Memory (GB)              : 24
Edge Cluster             : True
AVN                      : False

image

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

@tenthirtyam tenthirtyam added the enhancement Enhancement label Apr 20, 2023
@tenthirtyam tenthirtyam added this to the v2.1.0 milestone Apr 20, 2023
@tenthirtyam tenthirtyam self-assigned this Apr 20, 2023
@tenthirtyam
Copy link
Copy Markdown
Contributor Author

Note
Holding for v2.1.0 since v2.0.0 is code complete.

@tenthirtyam tenthirtyam added do-not-merge Do Not Merge report/overview Overview Report and removed do-not-merge Do Not Merge labels Apr 20, 2023
@tenthirtyam tenthirtyam force-pushed the feat/add-component-size-checks branch from 0aa5999 to 0d8ec2e Compare April 25, 2023 14:51
- Added component size checks (e.g., tiny, x-small, small, etc...) for vCenter Server instances and NSX Local Manager clusters to the overview report.
- Updates `CHANGELOG.md`
- Updates module version from v2.1.0.1001 to v2.1.0.1002.

Signed-off-by: Ryan Johnson <johnsonryan@vmware.com>
@tenthirtyam tenthirtyam force-pushed the feat/add-component-size-checks branch from 0d8ec2e to fa7cd7d Compare April 25, 2023 14:57
@tenthirtyam tenthirtyam marked this pull request as ready for review April 25, 2023 14:58
@tenthirtyam tenthirtyam requested a review from a team as a code owner April 25, 2023 14:58
@tenthirtyam tenthirtyam requested a review from GaryJBlake April 25, 2023 14:59
Copy link
Copy Markdown
Contributor

@GaryJBlake GaryJBlake left a comment

Choose a reason for hiding this comment

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

LGTM!

@GaryJBlake GaryJBlake merged commit 6d9dbbc into main Apr 25, 2023
@GaryJBlake GaryJBlake deleted the feat/add-component-size-checks branch April 25, 2023 15:08
if (Get-VCFEdgeCluster | Where-Object {$_.nsxtCluster.id -eq $domain.nsxtCluster.id}) { $edgeCluster = "True" } else { $edgeCluster = "False" }
if ($domain.type -eq "MANAGEMENT" -and (Get-VCFApplicationVirtualNetwork)) { $avnStatus = "True"} else { $avnStatus = "False" }
$customObject = New-Object -TypeName psobject
$nsxManagerNode = ($vcfNsxDetails = Get-NsxtServerDetail -fqdn $server -username $user -password $pass -domain sfo-m01 -listNodes).nodes | Select-Object -First 1
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Bug introduced whilst testing. Will fix this for v2.1.0.

tenthirtyam pushed a commit that referenced this pull request May 2, 2023
Updates `Request-NetworkOverview` to resolve a bug introduced in #130.

Signed-off-by: Ryan Johnson <johnsonryan@vmware.com>
@tenthirtyam tenthirtyam mentioned this pull request May 2, 2023
11 tasks
tenthirtyam pushed a commit that referenced this pull request May 2, 2023
- Updates `Request-NetworkOverview` to resolve a bug introduced in #130.
- Updates module version from v2.1.0.1004 to v2.1.0.1005.

Signed-off-by: Ryan Johnson <johnsonryan@vmware.com>
GaryJBlake pushed a commit that referenced this pull request May 3, 2023
- Updates `Request-NetworkOverview` to resolve a bug introduced in #130.
- Updates module version from v2.1.0.1004 to v2.1.0.1005.

Signed-off-by: Ryan Johnson <johnsonryan@vmware.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2023

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Enhancement report/overview Overview Report

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for checking component size

2 participants