Skip to content

Commit

Permalink
Sanitize version name for kube_dev
Browse files Browse the repository at this point in the history
When in development mode, awx version may look
like 23.9.1.dev18+gee9eac15dc.d20240311

k8s job to the migration can only have
a name with alphanumeric, and '.', '-'

so we can just drop off the +

Signed-off-by: Seth Foster <fosterbseth@gmail.com>
  • Loading branch information
fosterseth committed Mar 11, 2024
1 parent 90b4b0d commit e26d3f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/installer/tasks/migrate_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
changed_when: false
register: version_check

- name: Update instance version
- name: Sanitize instance version
set_fact:
version: "{{ version_check.stdout | trim }}"
version: "{{ version_check.stdout.split('+')[0] | trim }}"

# It is possible to do a wait on this task to create the job and wait
# until it completes. Unfortunately, if the job doesn't wait finish within
Expand Down

0 comments on commit e26d3f7

Please sign in to comment.