Create an event when pvc is not set to alert the user

This commit is contained in:
Christian M. Adams
2021-03-31 15:21:42 -04:00
parent 6bc149bae2
commit 80c8d87f71
8 changed files with 117 additions and 30 deletions

View File

@@ -0,0 +1,17 @@
---
apiVersion: v1
kind: Event
metadata:
name: backup-error.{{ now }}
namespace: {{ meta.namespace }}
involvedObject:
apiVersion: awx.ansible.com/v1beta1
kind: {{ kind }}
name: {{ meta.name }}
namespace: {{ meta.namespace }}
message: {{ error_msg }}
reason: BackupFailed
type: Warning
firstTimestamp: {{ now }}
lastTimestamp: {{ now }}
count: 1