-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configurable image names for clone step in pipeline runner (#1138)
* configure images used by git clone containers * update launch.json with images from cache acr
- Loading branch information
1 parent
38d1714
commit 790146e
Showing
17 changed files
with
434 additions
and
147 deletions.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package git | ||
|
||
import ( | ||
"github.com/equinor/radix-operator/pipeline-runner/model" | ||
gitclone "github.com/equinor/radix-operator/pkg/apis/utils/git" | ||
) | ||
|
||
func CloneConfigFromPipelineArgs(args model.PipelineArguments) gitclone.CloneConfig { | ||
return gitclone.CloneConfig{ | ||
NSlookupImage: args.GitCloneNsLookupImage, | ||
GitImage: args.GitCloneGitImage, | ||
BashImage: args.GitCloneBashImage, | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package git_test | ||
|
||
import ( | ||
"testing" | ||
|
||
internalgit "github.com/equinor/radix-operator/pipeline-runner/internal/git" | ||
"github.com/equinor/radix-operator/pipeline-runner/model" | ||
"github.com/equinor/radix-operator/pkg/apis/utils/git" | ||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func Test_CloneConfigFromPipelineArgs(t *testing.T) { | ||
args := model.PipelineArguments{GitCloneNsLookupImage: "anynslookup:any", GitCloneGitImage: "anygit:any", GitCloneBashImage: "anybash:any"} | ||
actual := internalgit.CloneConfigFromPipelineArgs(args) | ||
expected := git.CloneConfig{NSlookupImage: args.GitCloneNsLookupImage, GitImage: args.GitCloneGitImage, BashImage: args.GitCloneBashImage} | ||
assert.Equal(t, expected, actual) | ||
} |
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
Oops, something went wrong.