Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass the workflow service account #55

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

Fryguy
Copy link
Member

@Fryguy Fryguy commented Oct 12, 2023

@agrare @bdunne @kbrock Please review.

This PR hardcodes the value for now, but it should probably be passed down as an ENV var. Not sure if we want to do this now or later. @bdunne Thoughts?

Depends on

Must be merged with

@Fryguy Fryguy added enhancement New feature or request quinteros/yes labels Oct 12, 2023
"token_file" => "/run/secrets/kubernetes.io/serviceaccount/token",
"ca_cert" => "/run/secrets/kubernetes.io/serviceaccount/ca.crt",
"namespace" => File.read("/run/secrets/kubernetes.io/serviceaccount/namespace"),
"workflow_service_account" => "manageiq-default"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This value can be productized using the app name in the CR, so it may not always be "manageiq"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to an ENV var AUTOMATION_JOB_SERVICE_ACCOUNT

@Fryguy Fryguy force-pushed the add_workflow_service_account branch from cddce53 to 61ae5dc Compare October 12, 2023 18:40
@miq-bot
Copy link
Member

miq-bot commented Oct 12, 2023

Checked commits Fryguy/manageiq-providers-workflows@61ae5dc~...74af26d with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 👍

@kbrock kbrock merged commit d73c48c into ManageIQ:master Oct 12, 2023
4 checks passed
@Fryguy
Copy link
Member Author

Fryguy commented Oct 12, 2023

Backported to quinteros in commit 81d76fd.

commit 81d76fda2a9b91e2f2f4fa9557c2fdae3962b5b3
Author: Keenan Brock <keenan@thebrocks.net>
Date:   Thu Oct 12 15:40:56 2023 -0400

    Merge pull request #55 from Fryguy/add_workflow_service_account
    
    Pass the workflow service account
    
    (cherry picked from commit d73c48cb24e133c58879b572eab755882ff157f1)

Fryguy pushed a commit that referenced this pull request Oct 12, 2023
Pass the workflow service account

(cherry picked from commit d73c48c)
Fryguy added a commit to ManageIQ/manageiq that referenced this pull request Oct 12, 2023
@Fryguy Fryguy deleted the add_workflow_service_account branch October 12, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants