Skip to content

Commit

Permalink
Pin to newer Node version that is still supported by Paketo
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchwarze0 committed Jul 12, 2024
1 parent 28d8b8b commit 3575e2a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/e2e/v1alpha1/common_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ func (b *buildPrototype) Dockerfile(dockerfile string) *buildPrototype {
return b
}

func (b *buildPrototype) Env(key string, value string) *buildPrototype {
b.build.Spec.Env = append(b.build.Spec.Env, core.EnvVar{
Name: key,
Value: value,
})
return b
}

func (b *buildPrototype) determineParameterIndex(name string) int {
index := -1
for i, paramValue := range b.build.Spec.ParamValues {
Expand Down
1 change: 1 addition & 0 deletions test/e2e/v1alpha1/e2e_image_mutate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ var _ = Describe("For a Kubernetes cluster with Tekton and build installed", fun
OutputImageCredentials(os.Getenv(EnvVarImageRepoSecret)).
OutputImageInsecure(insecure).
OutputTimestamp(outputTimestamp).
Env("BP_NODE_VERSION", "~20").
BuildSpec()).
MustCreate()
}
Expand Down
8 changes: 8 additions & 0 deletions test/e2e/v1beta1/common_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ func (b *buildPrototype) OutputImage(image string) *buildPrototype {
return b
}

func (b *buildPrototype) Env(key string, value string) *buildPrototype {
b.build.Spec.Env = append(b.build.Spec.Env, core.EnvVar{
Name: key,
Value: value,
})
return b
}

func (b *buildPrototype) OutputVulnerabilitySettings(settings buildv1beta1.VulnerabilityScanOptions) *buildPrototype {
b.build.Spec.Output.VulnerabilityScan = &settings
return b
Expand Down
1 change: 1 addition & 0 deletions test/e2e/v1beta1/e2e_image_mutate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ var _ = Describe("For a Kubernetes cluster with Tekton and build installed", fun
OutputImageCredentials(os.Getenv(EnvVarImageRepoSecret)).
OutputImageInsecure(insecure).
OutputTimestamp(outputTimestamp).
Env("BP_NODE_VERSION", "~20").
BuildSpec()).
MustCreate()
}
Expand Down

0 comments on commit 3575e2a

Please sign in to comment.