From 2cc398d8d4fc5a43ada8bb579f3b16b0b74b5553 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Wed, 22 Mar 2023 17:59:49 -0400 Subject: [PATCH] restore: Set deployment_name as required The deployment_name from the AWXRestore CR doesn't requires to set a value for this parameter. That parameter is already required for the AWXBackup CR so it should be the same for AWXRestore. Creating an AWXRestore CR without deployment_name set results in a failure during the Secrets restoration. "reason":"FieldValueInvalid","message":"Invalid value: \\"-receptor-ca\\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, \'-\' or \'.\', and must start and end with an alphanumeric character (e.g. \'example.com\', regex used for validation is \'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\')" Signed-off-by: Dimitri Savineau --- config/crd/bases/awx.ansible.com_awxrestores.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/crd/bases/awx.ansible.com_awxrestores.yaml b/config/crd/bases/awx.ansible.com_awxrestores.yaml index 87d92c88..6dda4a15 100644 --- a/config/crd/bases/awx.ansible.com_awxrestores.yaml +++ b/config/crd/bases/awx.ansible.com_awxrestores.yaml @@ -39,6 +39,8 @@ spec: spec: type: object x-kubernetes-preserve-unknown-fields: true + required: + - deployment_name properties: backup_source: description: Backup source