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

feat: add support for k8shook pod template #3174

Conversation

nielstenboom
Copy link

This PR adds support for the ACTIONS_RUNNER_CONTAINER_HOOK_TEMPLATE env var added in actions/runner-container-hooks#75 when using containerMode: kubernetes.

After this you can pass podTemplateFile as a parameter in the RunnerSpec that points to a pod template file (example) that should be mounted by the user.

This PR is still in draft because I'd like to collect some feedback from maintainers if they agree with the direction I've taken to implement this. Please let me know what you think!

closes #1730

@nielstenboom
Copy link
Author

@nikola-jokic wdyt of this approach?

@nielstenboom
Copy link
Author

This might not be the way to go actually since you can already achieve this with setting the env var manually #1730 (comment) 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot pass nodeSelector, tolarations and resources in containerMode: kubernetes
1 participant