Skip to content

Commit 2df9eb8

Browse files
committed
OCM-21435 | feat: Block capacity-reservation-preference on govcloud
1 parent 7356f9d commit 2df9eb8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/machinepool/machinepool.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,11 @@ func (m *machinePool) CreateNodePools(r *rosa.Runtime, cmd *cobra.Command, clust
819819
"'--capacity-reservation-id' and associated flags")
820820
}
821821

822+
if args.CapacityReservationPreference != "" && fedramp.Enabled() {
823+
return fmt.Errorf("capacity reservation is not supported in govcloud, please remove " +
824+
"'--capacity-reservation-preference' and associated flags")
825+
}
826+
822827
if interactive.Enabled() && !autoscaling && !fedramp.Enabled() {
823828
capacityReservationId, err = interactive.GetString(interactive.Input{
824829
Question: "Capacity Reservation ID",

0 commit comments

Comments
 (0)