Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Jun 14, 2024
1 parent 500a5bf commit 479c749
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions config/deployments/integration-tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Integration tests

The [crds](./crds/) are copied from the vm-operators version which is consumed as go module.

These should get updated when bumping the dependency vm-operator dependency.

To sync the new CRD's use the following script **and** update `kustomization.yaml` accordingly.

```sh
make clean-vm-operator checkout-vm-operator
rm -r config/deployments/integration-tests/crds
cp -r test/infrastructure/vm-operator/vm-operator.tmp/config/crd/bases config/deployments/integration-tests/crds

make clean-vm-operator
```
2 changes: 1 addition & 1 deletion pkg/services/vmoperator/vmopmachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (v *VmopMachineService) reconcileVMOperatorVM(ctx context.Context, supervis
vmOperatorVM.Spec.StorageClass = supervisorMachineCtx.VSphereMachine.Spec.StorageClass
}
vmOperatorVM.Spec.PowerState = vmoprv1.VirtualMachinePowerStateOn
if vmOperatorVM.Spec.Reserved == nil {
if vmOperatorVM.Spec.Reserved == nil && supervisorMachineCtx.VSphereCluster.Status.ResourcePolicyName != "" {
vmOperatorVM.Spec.Reserved = &vmoprv1.VirtualMachineReservedSpec{}
}
if vmOperatorVM.Spec.Reserved.ResourcePolicyName == "" {
Expand Down

0 comments on commit 479c749

Please sign in to comment.