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: set supervisor cluster name #784

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PowerValidatedSolutions.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RootModule = 'PowerValidatedSolutions.psm1'

# Version number of this module.
ModuleVersion = '2.12.0.1050'
ModuleVersion = '2.12.1.1001'

# ID used to uniquely identify this module
GUID = 'a6dfed7b-65d2-4da2-bdcc-7f3d3df9b75d'
Expand Down
8 changes: 5 additions & 3 deletions PowerValidatedSolutions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -11281,8 +11281,6 @@ Function Enable-SupervisorCluster {
workerDnsServers = @("172.16.11.4", "172.16.11.5")
masterDnsSearchDomain = "sfo.rainpole.io"
}

.EXAMPLE
Enable-SupervisorCluster @wmClusterInput
This example enables Workload Management on a vSphere Cluster in workload domain sfo-w01

Expand All @@ -11305,6 +11303,9 @@ Function Enable-SupervisorCluster {
.PARAMETER cluster
The name of the vSphere cluster.

.PARAMETER supervisorName
The name of the supervisor cluster.

.PARAMETER sizeHint
The size of the vSphere cluster.

Expand Down Expand Up @@ -11387,6 +11388,7 @@ Function Enable-SupervisorCluster {
[Parameter (Mandatory = $true)] [ValidateNotNullOrEmpty()] [String]$pass,
[Parameter (Mandatory = $true)] [ValidateNotNullOrEmpty()] [String]$domain,
[Parameter (Mandatory = $true)] [ValidateNotNullOrEmpty()] [String]$cluster,
[Parameter (Mandatory = $false)] [ValidateNotNullOrEmpty()] [String]$supervisorName,
[Parameter (Mandatory = $true)] [ValidateSet("Tiny", "Small", "Medium", "Large")] [String]$sizeHint,
[Parameter (Mandatory = $true)] [ValidateSet("DHCP", "StaticRange")][String]$managementNetworkMode,
[Parameter (Mandatory = $true)] [ValidateNotNullOrEmpty()] [String]$managementVirtualNetwork,
Expand Down Expand Up @@ -11722,7 +11724,7 @@ Function Enable-SupervisorCluster {
ManagementNetworkSubnetMask = $managementNetworkSubnetMask
MasterDnsNames = $masterDnsName
MasterNtpServer = $masterNtpServers
Cluster = (Get-Cluster -Name $cluster)
Cluster = $supervisorName -or (Get-Cluster -Name $cluster)
EphemeralStoragePolicy = (Get-SpbmStoragePolicy -Name $ephemeralStoragePolicy)
ImageStoragePolicy = (Get-SpbmStoragePolicy -Name $imageStoragePolicy)
MasterStoragePolicy = (Get-SpbmStoragePolicy -Name $masterStoragePolicy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Enables Workload Management on a VCF cluster
## Syntax

```powershell
Enable-SupervisorCluster [-server] <String> [-user] <String> [-pass] <String> [-domain] <String> [-cluster] <String> [-sizeHint] <String> [-managementNetworkMode] <String> [-managementVirtualNetwork] <String> [-managementNetworkStartIpAddress] <String> [-managementNetworkAddressRangeSize] <Int32> [-managementNetworkGateway] <String> [-managementNetworkSubnetMask] <String> [-masterDnsName] <Array> [-masterNtpServers] <Array> [-masterDnsServers] <Array> [-contentLibrary] <String> [-ephemeralStoragePolicy] <String> [-imageStoragePolicy] <String> [-masterStoragePolicy] <String> [-nsxEdgeCluster] <String> [-distributedSwitch] <String> [-podCIDRs] <String> [-serviceCIDR] <String> [-externalIngressCIDRs] <String> [-externalEgressCIDRs] <String> [-masterDnsSearchDomain] <String> [-workerDnsServers] <Array> [[-ConfigurationTimeoutSeconds] <Object>] [-skipValidation] [-validateOnly] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Enable-SupervisorCluster [-server] <String> [-user] <String> [-pass] <String> [-domain] <String> [-cluster] <String> [-supervisorName] <String> [-sizeHint] <String> [-managementNetworkMode] <String> [-managementVirtualNetwork] <String> [-managementNetworkStartIpAddress] <String> [-managementNetworkAddressRangeSize] <Int32> [-managementNetworkGateway] <String> [-managementNetworkSubnetMask] <String> [-masterDnsName] <Array> [-masterNtpServers] <Array> [-masterDnsServers] <Array> [-contentLibrary] <String> [-ephemeralStoragePolicy] <String> [-imageStoragePolicy] <String> [-masterStoragePolicy] <String> [-nsxEdgeCluster] <String> [-distributedSwitch] <String> [-podCIDRs] <String> [-serviceCIDR] <String> [-externalIngressCIDRs] <String> [-externalEgressCIDRs] <String> [-masterDnsSearchDomain] <String> [-workerDnsServers] <Array> [[-configurationTimeoutSeconds] <Object>] [-skipValidation] [-validateOnly] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## Description
Expand Down Expand Up @@ -55,17 +55,12 @@ $wmClusterInput = @{
workerDnsServers = @("172.16.11.4", "172.16.11.5")
masterDnsSearchDomain = "sfo.rainpole.io"
}
```

### Example 2

```powershell
Enable-SupervisorCluster @wmClusterInput
Enable-SupervisorCluster @wmClusterInput
```

This example enables Workload Management on a vSphere Cluster in workload domain sfo-w01

### Example 3
### Example 2

```powershell
Enable-SupervisorCluster -server sfo-vcf01.sfo.rainpole.io -user [email protected] -pass VMw@re1! -domain sfo-w01 -sizeHint Tiny -managementVirtualNetwork sfo-w01-kub-seg01 -managementNetworkMode StaticRange -managementNetworkStartIpAddress 192.168.20.10 -managementNetworkAddressRangeSize 5 -managementNetworkGateway 192.168.20.1 -managementNetworkSubnetMask 255.255.255.0 -cluster sfo-w01-cl01 -contentLibrary Kubernetes -ephemeralStoragePolicy vsphere-with-tanzu-storage-policy -imageStoragePolicy vsphere-with-tanzu-storage-policy -masterStoragePolicy vsphere-with-tanzu-storage-policy -nsxEdgeCluster sfo-w01-ec01 -distributedSwitch sfo-w01-sfo-w01-vc01-sfo-w01-cl01-vds01 -podCIDRs "100.100.0.0/20" -serviceCIDR "100.200.0.0/22" -externalIngressCIDRs "192.168.21.0/24" -externalEgressCIDRs "192.168.22.0/24" -masterNtpServers @("172.16.11.253", "172.16.12.253") -masterDnsServers @("172.16.11.4", "172.16.11.5") -masterDnsName sfo-w01-cl01.sfo.rainpole.io -masterDnsSearchDomain sfo.rainpole.io -workerDnsServers @("172.16.11.4", "172.16.11.5")
Expand Down Expand Up @@ -155,6 +150,22 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -supervisorCluster

The name of the supervisor cluster.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -sizeHint

The size of the vSphere cluster.
Expand All @@ -165,7 +176,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 6
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -181,7 +192,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 7
Position: 8
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -197,7 +208,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 8
Position: 9
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -213,7 +224,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 9
Position: 10
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -229,7 +240,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 10
Position: 11
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -245,7 +256,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 11
Position: 12
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -261,7 +272,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 12
Position: 13
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -277,7 +288,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 13
Position: 14
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -293,7 +304,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 14
Position: 15
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -309,7 +320,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 15
Position: 16
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -325,7 +336,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 16
Position: 17
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -341,7 +352,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 17
Position: 18
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -357,7 +368,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 18
Position: 19
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -373,7 +384,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 19
Position: 20
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -389,7 +400,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 20
Position: 21
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -405,7 +416,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 21
Position: 22
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -421,7 +432,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 22
Position: 23
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -437,7 +448,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 23
Position: 24
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -453,7 +464,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 24
Position: 25
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -469,7 +480,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 25
Position: 26
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -485,7 +496,7 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 26
Position: 27
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -501,13 +512,13 @@ Parameter Sets: (All)
Aliases:

Required: True
Position: 27
Position: 28
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ConfigurationTimeoutSeconds
### -configurationTimeoutSeconds

The timeout in seconds for the configuration to complete.

Expand All @@ -517,7 +528,7 @@ Parameter Sets: (All)
Aliases:

Required: False
Position: 28
Position: 29
Default value: 3600
Accept pipeline input: False
Accept wildcard characters: False
Expand Down
Loading