ansible / awx-resource-operator

41 stars 34 forks source link

generate a unique kubejob name per ansible job reconcile #4

Closed mikeshng closed 4 years ago

mikeshng commented 4 years ago

Signed-off-by: Mike Ng ming@redhat.com

When launching the kube job the name should be unique enough so that when the AnsibleJob CR updates and causes a reconcile, it will launch another job without any errors.

Sample output:

NAME                    COMPLETIONS   DURATION   AGE
bigjoblaunch-52d50d7f   1/1           50s        4m4s
bigjoblaunch-c2dbfc02   1/1           21s        96s
mikeshng commented 4 years ago

@maxamillion could you please take a look if you have some cycles? Thanks.

mikeshng commented 4 years ago

For https://github.com/open-cluster-management/backlog/issues/4228