Skip to content

Commit

Permalink
add v1alpha3 support also
Browse files Browse the repository at this point in the history
  • Loading branch information
zmalik authored and zain.malik committed Nov 2, 2021
1 parent cb7efdb commit da2a496
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ spec:
items:
type: string
type: array
scaling:
description: Scaling specifies scaling for the scaleset behind this
pool
properties:
maxSize:
format: int32
type: integer
minSize:
format: int32
type: integer
type: object
sku:
description: SKU is the size of the VMs in the node pool.
type: string
Expand Down
10 changes: 10 additions & 0 deletions exp/api/v1alpha3/azuremanagedmachinepool_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ type AzureManagedMachinePoolSpec struct {
// ProviderIDList is the unique identifier as specified by the cloud provider.
// +optional
ProviderIDList []string `json:"providerIDList,omitempty"`

// Scaling specifies scaling for the scaleset behind this pool
// +optional
Scaling *ManagedMachinePoolScaling `json:"scaling,omitempty"`
}

// ManagedMachinePoolScaling specifies scaling options.
type ManagedMachinePoolScaling struct {
MinSize *int32 `json:"minSize,omitempty"`
MaxSize *int32 `json:"maxSize,omitempty"`
}

// AzureManagedMachinePoolStatus defines the observed state of AzureManagedMachinePool.
Expand Down
35 changes: 34 additions & 1 deletion exp/api/v1alpha3/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions exp/api/v1alpha3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da2a496

Please sign in to comment.