Skip to content

Commit

Permalink
feat: add CreateAwsHybridMachinePool func
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-ibra committed Dec 6, 2024
1 parent d3d2dbe commit 07d77f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/hybrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@ func (h *V1Client) PutAwsHybridConfig(configUID string, hybridConfig *models.V1A
_, err := h.Client.V1AwsCloudConfigsUIDHybridConfig(params)
return err
}

// CreateAwsHybridMachinePool creates a Hybrid AWS cloud config's Edge-Native machine pool
func (h *V1Client) CreateAwsHybridMachinePool(configUID string, machinePool *models.V1HybridEdgeNativeMachinePoolConfigEntity) error {
params := clientv1.NewV1AwsCloudConfigsEdgeNativeUIDMachinePoolCreateParamsWithContext(h.ctx).
WithBody(machinePool).
WithConfigUID(configUID)

_, err := h.Client.V1AwsCloudConfigsEdgeNativeUIDMachinePoolCreate(params)
return err
}

0 comments on commit 07d77f8

Please sign in to comment.