-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: build the JOB URL on the server side
With the advent of controller behind our server the URL to access the job details for JobTemplate and WorkflowTemplate has changed We have an api end point that is specificed in the RH AAP Credential Type this is sent to the ansible-rulebook so that it can talk to the controller via the api. This end point could point to a controller directly or to a controller behind our server. To directly access the controller we only need the host and port so the API end point would look like e.g. https://<<your_controller>>/ This will map the Job URL for a Job Template to look like https://<<your_controller>>/#/jobs/playbook/23/details/ This will map the Job URL for a Workflow Template to look like https://<<your_controller>>/#/jobs/workflow/24/details/ When the controller is behind our server the API end point is e.g. https://<<your_server>>/api/controller This will map the Job URL for a Job Template to look like https://<<your_server>>/execution/jobs/playbook/25/details/ This will map the Job URL for a Workflow Template to look like https://<<your_server>>/execution/jobs/workflow/26/details/ For this to work correctly we need ansible-rulebook to pass in the controller_job_id and the action_type. Currently it doesn't send up the controller_job_id which is being fixed in a separate PR. https://issues.redhat.com/browse/AAP-25064
- Loading branch information
Showing
4 changed files
with
192 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters