File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1174,6 +1174,9 @@ func (m *MachineScope) CreateAndAttachVolume(vpcVolume *infrav1beta2.VPCVolume)
1174
1174
// TODO: EncryptionKeyCRN is not supported for now, the field is omitted from the manifest
1175
1175
if vpcVolume .Profile != "custom" {
1176
1176
volumeOptions .VolumePrototype = & vpcv1.VolumePrototype {
1177
+ ResourceGroup : & vpcv1.ResourceGroupIdentityByID {
1178
+ ID : & m .IBMVPCCluster .Spec .ResourceGroup ,
1179
+ },
1177
1180
Profile : & vpcv1.VolumeProfileIdentityByName {
1178
1181
Name : & vpcVolume .Profile ,
1179
1182
},
@@ -1184,6 +1187,9 @@ func (m *MachineScope) CreateAndAttachVolume(vpcVolume *infrav1beta2.VPCVolume)
1184
1187
}
1185
1188
} else {
1186
1189
volumeOptions .VolumePrototype = & vpcv1.VolumePrototype {
1190
+ ResourceGroup : & vpcv1.ResourceGroupIdentityByID {
1191
+ ID : & m .IBMVPCCluster .Spec .ResourceGroup ,
1192
+ },
1187
1193
Iops : & vpcVolume .Iops ,
1188
1194
Profile : & vpcv1.VolumeProfileIdentityByName {
1189
1195
Name : & vpcVolume .Profile ,
You can’t perform that action at this time.
0 commit comments