Skip to content

Commit

Permalink
shorten memoryonly VM name
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieqliu committed Oct 22, 2024
1 parent 17d65d0 commit f4c2f38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions launcher/image/test/test_health_monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ steps:
args: ['create_vm.sh','-i', '${_IMAGE_NAME}',
'-p', '${_IMAGE_PROJECT}',
'-m', 'tee-image-reference=${_WORKLOAD_IMAGE},tee-monitoring-enable=memoryonly',
'-n', '${_VM_NAME_PREFIX}-memoryonly-${BUILD_ID}',
'-n', '${_VM_NAME_PREFIX}-mem-${BUILD_ID}',
'-z', '${_ZONE}',
]
waitFor: ['-'] # The '-' indicates that this step begins immediately.
- name: 'gcr.io/cloud-builders/gcloud'
id: CheckMemoryOnlyMonitoringEnabled
entrypoint: 'bash'
# Search a regex pattern that ensures all monitoring is enabled and measured into COS event logs.
args: ['scripts/test_memory_monitoring.sh', '${_VM_NAME_PREFIX}-memoryonly-${BUILD_ID}', '${_ZONE}', 'Health Monitoring is enabled by the VM operator.*memory/bytes_used enabled']
args: ['scripts/test_memory_monitoring.sh', '${_VM_NAME_PREFIX}-mem-${BUILD_ID}', '${_ZONE}', 'Health Monitoring is enabled by the VM operator.*memory/bytes_used enabled']
waitFor: ['CreateVMMemoryOnlyMonitoringEnabled']
- name: 'gcr.io/cloud-builders/gcloud'
id: CleanUpVMMemoryOnlyMonitoringEnabled
entrypoint: 'bash'
env:
- 'CLEANUP=$_CLEANUP'
args: ['cleanup.sh', '${_VM_NAME_PREFIX}-memoryonly-${BUILD_ID}', '${_ZONE}']
args: ['cleanup.sh', '${_VM_NAME_PREFIX}-mem-${BUILD_ID}', '${_ZONE}']
waitFor: ['CheckMemoryOnlyMonitoringEnabled']

- name: 'gcr.io/cloud-builders/gcloud'
Expand Down

0 comments on commit f4c2f38

Please sign in to comment.