Skip to content

Commit 099c1d3

Browse files
add env to migration data (#138)
1 parent 22dbeba commit 099c1d3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "venona",
3-
"version": "1.2.13",
3+
"version": "1.2.14",
44
"description": "Codefresh agent to run on Codefresh's runtime environment and execute pipeline",
55
"main": "index.js",
66
"scripts": {

venonactl/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.13
1+
1.2.14

venonactl/pkg/plugins/venona.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type venonaPlugin struct {
4242
type migrationData struct {
4343
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
4444
Tolerations [] v1.Toleration `json:"tolerations,omitempty"`
45+
Env [] v1.EnvVar
4546
}
4647

4748
const (
@@ -264,6 +265,7 @@ func (u *venonaPlugin) Migrate(opt *MigrateOptions, v Values) error {
264265
migrationData := migrationData{
265266
Tolerations: list.Items[0].Spec.Tolerations,
266267
NodeSelector: list.Items[0].Spec.NodeSelector,
268+
Env: list.Items[0].Spec.Containers[0].Env
267269
}
268270
var jsonData []byte
269271
jsonData, err = json.Marshal(migrationData)

0 commit comments

Comments
 (0)