ansible / awx-resource-operator

41 stars 34 forks source link

add job url to status.ansibleJobResult #12

Closed mikeshng closed 4 years ago

mikeshng commented 4 years ago

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

Added url to AnsibleJobstatus.ansibleJobResult which represent the job url that it's running/ran for.

Example output:

  status:
    ansibleJobResult:
      elapsed: "6.172"
      finished: "2020-09-02T20:56:54.938639Z"
      started: "2020-09-02T20:56:48.766187Z"
      status: successful
      url: https://ansible-tower-web-svc-tower._redacted_.com/#/jobs/playbook/51

the url field name was chosen on purpose so that it sorts alphabetically in the kubectl get -o yaml output under status.ansibleJobResult.status

Tested on Ansible Tower only. Please confirm this is the expected URL for AWX as well. Thanks.

mikeshng commented 4 years ago

for https://github.com/open-cluster-management/backlog/issues/4893