Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Fix kuttl tests when running locally without webhooks
Browse files Browse the repository at this point in the history
The tests that assert hashes rely on webhooks modifying the spec so that
the asserted hash value matches the calculated value. When running
locally without webhooks, these tests would fail. This commit adds the
relevant parts to the specs that the webhooks add so that the caluclated
hashes are equivalent when running locally.

Signed-off-by: James Slagle <[email protected]>
  • Loading branch information
slagle committed Apr 10, 2024
1 parent 4c98b4a commit 238be84
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,22 @@ kind: OpenStackDataPlaneNodeSet
metadata:
name: edpm-compute-global
spec:
baremetalSetTemplate:
automatedCleaningMode: metadata
bmhNamespace: openshift-machine-api
cloudUserName: ""
ctlplaneInterface: ""
ctlplaneNetmask: 255.255.255.0
deploymentSSHSecret: ""
hardwareReqs:
cpuReqs:
countReq: {}
mhzReq: {}
diskReqs:
gbReq: {}
ssdReq: {}
memReqs:
gbReq: {}
preProvisioned: true
tlsEnabled: false
services:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ kind: OpenStackDataPlaneNodeSet
metadata:
name: edpm-compute-beta-nodeset
spec:
baremetalSetTemplate:
automatedCleaningMode: metadata
bmhNamespace: openshift-machine-api
cloudUserName: ""
ctlplaneInterface: ""
ctlplaneNetmask: 255.255.255.0
deploymentSSHSecret: ""
hardwareReqs:
cpuReqs:
countReq: {}
mhzReq: {}
diskReqs:
gbReq: {}
ssdReq: {}
memReqs:
gbReq: {}
preProvisioned: true
services:
- download-cache
Expand All @@ -13,6 +29,8 @@ spec:
nodes: {}
nodeTemplate:
ansibleSSHPrivateKeySecret: dataplane-ansible-ssh-private-key-secret
ansible:
ansibleUser: cloud-admin
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ kind: OpenStackDataPlaneNodeSet
metadata:
name: edpm-compute-beta-nodeset
spec:
baremetalSetTemplate:
automatedCleaningMode: metadata
bmhNamespace: openshift-machine-api
cloudUserName: ""
ctlplaneInterface: ""
ctlplaneNetmask: 255.255.255.0
deploymentSSHSecret: ""
hardwareReqs:
cpuReqs:
countReq: {}
mhzReq: {}
diskReqs:
gbReq: {}
ssdReq: {}
memReqs:
gbReq: {}
preProvisioned: true
services:
- download-cache
Expand All @@ -13,6 +29,8 @@ spec:
nodes: {}
nodeTemplate:
ansibleSSHPrivateKeySecret: dataplane-ansible-ssh-private-key-secret
ansible:
ansibleUser: cloud-admin
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,30 @@ kind: OpenStackDataPlaneNodeSet
metadata:
name: edpm-compute-no-nodes
spec:
baremetalSetTemplate:
automatedCleaningMode: metadata
bmhNamespace: openshift-machine-api
cloudUserName: ""
ctlplaneInterface: ""
ctlplaneNetmask: 255.255.255.0
deploymentSSHSecret: ""
hardwareReqs:
cpuReqs:
countReq: {}
mhzReq: {}
diskReqs:
gbReq: {}
ssdReq: {}
memReqs:
gbReq: {}
preProvisioned: true
services:
- download-cache
nodes: {}
nodeTemplate:
ansibleSSHPrivateKeySecret: dataplane-ansible-ssh-private-key-secret
ansible:
ansibleUser: cloud-admin
---
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneDeployment
Expand Down

0 comments on commit 238be84

Please sign in to comment.