Skip to content

feat: add support for k8shook pod template - #3174

Closed
nielstenboom wants to merge 6 commits into
actions:masterfrom
nielstenboom:niels/add-support-for-k8shook-pod-template
Closed

nielstenboom wants to merge 6 commits into
actions:masterfrom
nielstenboom:niels/add-support-for-k8shook-pod-template

Conversation

@nielstenboom

Copy link
Copy Markdown

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
Copy Markdown
Author

@nikola-jokic wdyt of this approach?

@nielstenboom

Copy link
Copy Markdown
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