Skip to content
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

[serverless-1.34] More granular image references #868

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions pkg/pipelines/tekton/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,24 @@ import (
"strings"
)

var DeployerImage = "ghcr.io/knative/func-utils:latest"
var (
FuncUtilImage = "ghcr.io/knative/func-utils:latest"
DeployerImage string
ScaffoldImage string
S2IImage string
matejvasek marked this conversation as resolved.
Show resolved Hide resolved
)

func init() {
if DeployerImage == "" {
DeployerImage = FuncUtilImage
}
if ScaffoldImage == "" {
ScaffoldImage = FuncUtilImage
}
if S2IImage == "" {
S2IImage = FuncUtilImage
}
}

func getBuildpackTask() string {
return `apiVersion: tekton.dev/v1
Expand Down Expand Up @@ -377,7 +394,7 @@ spec:
name: gen-source
- emptyDir: {}
name: env-vars
`, DeployerImage)
`, S2IImage)
}

func getDeployTask() string {
Expand Down Expand Up @@ -435,7 +452,7 @@ spec:
image: %s
script: |
scaffold $(params.path)
`, DeployerImage)
`, ScaffoldImage)
}

// GetClusterTasks returns multi-document yaml containing tekton tasks used by func.
Expand Down
Loading