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: enhance pca workflow #752

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

Conversation

maxiepax
Copy link

@maxiepax maxiepax commented Sep 10, 2024

Summary

PCA workflow previously would only complete when there was a workload domain with a single cluster.

To allow for multiple clusters under a workload domain, the code has been enhanced to successfully create the VM folder, resource rools, and tag the resource pools in the Cloud Account.

  • Changed Add-VMFolder to select the first cluster in a datacenter to create the folder.
  • Changed Add-ResourcePool to select the first cluster in a workload domain in case a cluster is not specified as parameter.
  • Changed Update-vRACloudAccountZone to allow add multiple resource pools to the cloud account. Parameter ResoucePool which was a concatenation of Cluster and Resourcepool is now entered as only the suffix, and built during the for loop.

Type

  • Bugfix
  • Enhancement or Feature
  • Code Style or Formatting
  • Documentation
  • Refactoring
  • Chore
  • Other
    Please describe:

Breaking Changes?

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

There was no other functions that used -Resourcepool as input for the Update-vRACloudAccountZone function, thus i deem it non-breaking to change the param name.

Test and Documentation

  • Tests have been completed.
  • Documentation has been added or updated.

Tests where conducted using a Standard Architecture with a Workload domain, with two clusters.

Issue References

Additional Information

@maxiepax maxiepax requested a review from a team as a code owner September 10, 2024 19:46
@vmwclabot
Copy link
Member

@maxiepax, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

@github-actions github-actions bot added the needs-review Needs Review label Sep 10, 2024
@tenthirtyam
Copy link
Collaborator

Kim, could you make these three separate PRs with referenced issues?

@GaryJBlake
Copy link
Contributor

Kim as per Ryan's comment could you split this into three separate PRs so that we can easily roll back.

Q. Have you validated these changes against a non-isolated setup in case it breaks something?

@tenthirtyam tenthirtyam modified the milestones: Backlog, v2.13.0 Oct 30, 2024
@tenthirtyam tenthirtyam changed the title Update PowerValidatedSolutions.psm1 feat: enhance pca workflow Oct 30, 2024
PCA workflow previously would only complete when there was a workload domain with a single cluster.

To allow for multiple clusters under a workload domain, the code has been enhanced to successfully create the VM folder, resource rools, and tag the resource pools in the Cloud Account.

- Changed `Add-VMFolder` to select the first cluster in a datacenter to create the folder.
- Changed `Add-ResourcePool` to select the first cluster in a workload domain in case a cluster is not specified as parameter.
- Changed `Update-vRACloudAccountZone` to allow add multiple resource pools to the cloud account. Parameter `ResoucePool` which was a concatenation of `Cluster` and `Resourcepool` is now entered as only the suffix, and built during the for loop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-review Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants