-
Notifications
You must be signed in to change notification settings - Fork 36
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: allow ssh-credentials to be set in agent and plugin #248
Open
42atomys
wants to merge
10
commits into
buildkite:main
Choose a base branch
from
42atomys:feat/allow-git-credentials-as-secret-from-agent-and-plugin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+77
−16
Open
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b9ede4a
feat: allow git-credentials to be set in agent and plugin
a20da48
chore: rename git credentials into ssh to be more readable
550248f
chore: do a self review
42atomys 0972f93
Merge branch 'buildkite:main' into feat/allow-git-credentials-as-secr…
42atomys 603cafc
fix: env form on container are public
5806b5e
test: add integration tests for ssh credentials
0257e6f
fix: incorrect secret naming
436da5c
Merge branch 'main' into feat/allow-git-credentials-as-secret-from-ag…
42atomys 3b94d19
Merge branch 'main' into feat/allow-git-credentials-as-secret-from-ag…
42atomys 93d6741
Merge branch 'main' into feat/allow-git-credentials-as-secret-from-ag…
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 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 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 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 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 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 | ||||
---|---|---|---|---|---|---|
|
@@ -14,6 +14,19 @@ steps: | |||||
- echo | ||||||
- hello world | ||||||
|
||||||
- label: ":git::console::superhero: checkout private git with ssh credentials secret as root" | ||||||
agents: | ||||||
queue: {{.queue}} | ||||||
plugins: | ||||||
- kubernetes: | ||||||
ssh-credentials-secret: agent-stack-k8s | ||||||
podSpec: | ||||||
containers: | ||||||
- image: alpine:latest | ||||||
command: | ||||||
- echo | ||||||
- hello world | ||||||
|
||||||
- label: ":git::console::student: checkout private git repo as user" | ||||||
agents: | ||||||
queue: {{.queue}} | ||||||
|
@@ -32,3 +45,20 @@ steps: | |||||
runAsNonRoot: true | ||||||
runAsUser: 1000 | ||||||
runAsGroup: 1001 | ||||||
|
||||||
- label: ":git::console::student: checkout private git with ssh credentials secret repo as user" | ||||||
agents: | ||||||
queue: {{.queue}} | ||||||
plugins: | ||||||
- kubernetes: | ||||||
ssh-credentials-secret: agent-stack-k8s | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
podSpec: | ||||||
containers: | ||||||
- image: alpine:latest | ||||||
command: | ||||||
- echo | ||||||
- hello world | ||||||
securityContext: | ||||||
runAsNonRoot: true | ||||||
runAsUser: 1000 | ||||||
runAsGroup: 1001 |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.