Skip to content

Commit

Permalink
feat(testworkflows): allow to pass SSH private key for cloning Git re…
Browse files Browse the repository at this point in the history
…pository (#275)
  • Loading branch information
rangoo94 authored Jun 4, 2024
1 parent f91b0db commit a56be54
Show file tree
Hide file tree
Showing 5 changed files with 935 additions and 14 deletions.
4 changes: 4 additions & 0 deletions api/testworkflows/v1/content_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ type ContentGit struct {
Token string `json:"token,omitempty" expr:"template"`
// external token to fetch with
TokenFrom *corev1.EnvVarSource `json:"tokenFrom,omitempty" expr:"force"`
// plain text SSH private key to fetch with
SshKey string `json:"sshKey,omitempty" expr:"template"`
// external SSH private key to fetch with
SshKeyFrom *corev1.EnvVarSource `json:"sshKeyFrom,omitempty" expr:"force"`
// authorization type for the credentials
AuthType testsv3.GitAuthType `json:"authType,omitempty" expr:"template"`
// where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
Expand Down
5 changes: 5 additions & 0 deletions api/testworkflows/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a56be54

Please sign in to comment.