From 61921d40ed5f139eba29b0079a09f7624554c29e Mon Sep 17 00:00:00 2001 From: Imed Date: Wed, 20 Sep 2023 20:24:01 +0200 Subject: [PATCH] Added pattern and max-length to secret names (#1549) Co-authored-by: Imed Aouidene --- config/crd/bases/awx.ansible.com_awxs.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/crd/bases/awx.ansible.com_awxs.yaml b/config/crd/bases/awx.ansible.com_awxs.yaml index f11f9e21..21fcbf55 100644 --- a/config/crd/bases/awx.ansible.com_awxs.yaml +++ b/config/crd/bases/awx.ansible.com_awxs.yaml @@ -63,21 +63,29 @@ spec: admin_password_secret: description: Secret where the admin password can be found type: string + maxLength: 255 + pattern: '^[a-zA-Z0-9][-a-zA-Z0-9]{0,253}[a-zA-Z0-9]$' postgres_configuration_secret: description: Secret where the database configuration can be found type: string old_postgres_configuration_secret: description: Secret where the old database configuration can be found for data migration type: string + maxLength: 255 + pattern: '^[a-zA-Z0-9][-a-zA-Z0-9]{0,253}[a-zA-Z0-9]$' postgres_label_selector: description: Label selector used to identify postgres pod for data migration type: string secret_key_secret: description: Secret where the secret key can be found type: string + maxLength: 255 + pattern: '^[a-zA-Z0-9][-a-zA-Z0-9]{0,253}[a-zA-Z0-9]$' broadcast_websocket_secret: description: Secret where the broadcast websocket secret can be found type: string + maxLength: 255 + pattern: '^[a-zA-Z0-9][-a-zA-Z0-9]{0,253}[a-zA-Z0-9]$' extra_volumes: description: Specify extra volumes to add to the application pod type: string