Skip to content

Commit a241f90

Browse files
committed
fix: add in --data directory registry.yaml for nonexistent resource failure case
1 parent 54c326d commit a241f90

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/e2e/run.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,21 @@ RECIPE
14211421
local data_dir="${validate_dir}/data"
14221422
mkdir -p "${data_dir}/checks/gpu-operator"
14231423

1424+
# --data requires a registry.yaml in the external directory
1425+
cat > "${data_dir}/registry.yaml" <<'REGISTRY'
1426+
apiVersion: aicr.nvidia.com/v1alpha1
1427+
kind: ComponentRegistry
1428+
components:
1429+
- name: gpu-operator
1430+
displayName: GPU Operator
1431+
healthCheck:
1432+
assertFile: checks/gpu-operator/assert.yaml
1433+
helm:
1434+
defaultRepository: https://helm.ngc.nvidia.com/nvidia
1435+
defaultChart: nvidia/gpu-operator
1436+
defaultNamespace: gpu-operator
1437+
REGISTRY
1438+
14241439
cat > "${data_dir}/checks/gpu-operator/assert.yaml" <<'ASSERT'
14251440
apiVersion: apps/v1
14261441
kind: Deployment

0 commit comments

Comments
 (0)