-
Notifications
You must be signed in to change notification settings - Fork 828
Add dummy service accounts to hook-image-puller and continuous-image-puller pods #3594
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a417772
fix(prepuller): Add dummy service accounts to hook-image-puller and c…
samyuh 351cd20
Use the same hook weight on the SA as the DaemonSet that will need it
consideRatio 28b1db3
ci: test configuration of dummy SA for image pullers
consideRatio 69581cd
Let helper functions for image puller SA names be relevant or empty
consideRatio 6ffc084
Add image puller SA names to the list of resource names
consideRatio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
17 changes: 17 additions & 0 deletions
17
jupyterhub/templates/image-puller/serviceaccount-continuous.yaml
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| {{- /* | ||
| ServiceAccount for the continuous image-puller daemonset | ||
| */}} | ||
| {{- if .Values.prePuller.continuous.serviceAccount.create -}} | ||
| {{- if .Values.prePuller.continuous.enabled -}} | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: {{ include "jupyterhub.continuous-image-puller.fullname" . }} | ||
| labels: | ||
| {{- include "jupyterhub.labels" . | nindent 4 }} | ||
| annotations: | ||
| {{- with .Values.prePuller.continuous.serviceAccount.annotations }} | ||
| {{- . | toYaml | nindent 4 }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} |
21 changes: 21 additions & 0 deletions
21
jupyterhub/templates/image-puller/serviceaccount-hook.yaml
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| {{- /* | ||
| ServiceAccount for the hook image-puller daemonset | ||
| */}} | ||
| {{- if .Values.prePuller.hook.serviceAccountImagePuller.create -}} | ||
| {{- if (include "jupyterhub.imagePuller.daemonset.hook.install" .) -}} | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: {{ include "jupyterhub.hook-image-puller-serviceaccount.fullname" . }} | ||
| labels: | ||
| {{- include "jupyterhub.labels" . | nindent 4 }} | ||
| hub.jupyter.org/deletable: "true" | ||
| annotations: | ||
| "helm.sh/hook": pre-install,pre-upgrade | ||
| "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded | ||
| "helm.sh/hook-weight": "-10" | ||
| {{- with .Values.prePuller.hook.serviceAccountImagePuller.annotations }} | ||
| {{- . | toYaml | nindent 4 }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.