Fix backup reconciliation loop, add error status

This commit is contained in:
Christian M. Adams
2021-03-30 16:57:01 -04:00
parent f17dcdc3e9
commit e1dca00f46
16 changed files with 243 additions and 140 deletions

View File

@@ -1,3 +1,4 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
@@ -11,12 +12,21 @@ spec:
singular: awxbackup
scope: Namespaced
versions:
- name: v1beta1
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true
served: true
storage: true
subresources:
status: {}
- name: v1beta1
served: true
storage: true
subresources:
status: {}
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true
description: Schema validation for the AWXBackup CRD
# TODO: Figure out how to require the tower_name field
properties:
spec:
type: object
properties:
tower_name:
description: Name of the deployment to be backed up
type: string

View File

@@ -1,9 +1,11 @@
---
apiVersion: awx.ansible.com/v1beta1
kind: AWXBackup
metadata:
name: example-awxbackup
namespace: example-awx
spec:
tower_name: ''
tower_backup_pvc: ''
tower_backup_size: ''
tower_backup_storage_class: ''