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

Expose volumeMounts and volumes in gha-runner-scale-set-controller #3260

Merged
merged 6 commits into from
Feb 12, 2024

Conversation

taliastocks
Copy link
Contributor

My team needs to be able to mount our cert chain into these containers so they can trust our GHE deployment certs.

My team needs to be able to mount our cert chain into these containers so they can trust our GHE deployment certs.
@@ -110,10 +110,16 @@ spec:
volumeMounts:
- mountPath: /tmp
name: tmp
{{- range .Values.volumeMounts }}
- {{ toJson . }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please use toYaml? When someone renders a chart, it would be much easier to read

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I can do that. Thanks for the review.

Copy link
Contributor

@nikola-jokic nikola-jokic left a comment

Choose a reason for hiding this comment

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

Can you please add tests?

@taliastocks
Copy link
Contributor Author

taliastocks commented Feb 7, 2024

Can you please add tests?

You probably want me to add to TestTemplate_ControllerDeployment_Customize right?

Do you have instructions somewhere on running these tests? It doesn't look like there's a Github Action enabled (somewhat ironically).

@nikola-jokic
Copy link
Contributor

Yeah, so to run tests, you do cd charts/gha-runner-scale-set-controller/tests && go test. The action is enabled only for maintainers ☺️

add test to volumes and volumeMounts options
@taliastocks
Copy link
Contributor Author

Yeah, so to run tests, you do cd charts/gha-runner-scale-set-controller/tests && go test. The action is enabled only for maintainers ☺️

Thank you! That is fair, security is important.

@taliastocks
Copy link
Contributor Author

Tests are updated and passing.

Copy link
Contributor

@nikola-jokic nikola-jokic left a comment

Choose a reason for hiding this comment

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

LGTM

@nikola-jokic nikola-jokic added the gha-runner-scale-set Related to the gha-runner-scale-set mode label Feb 12, 2024
@nikola-jokic nikola-jokic merged commit 9fba375 into actions:master Feb 12, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gha-runner-scale-set Related to the gha-runner-scale-set mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants