Skip to content

Commit

Permalink
Feat: add image pull secret in task step (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvintian committed May 29, 2023
1 parent 34c6911 commit 97c5853
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/stdlib/actions/v1/pkgs/task.cue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ let defaultBaseImage = "gcr.io/distroless/base@sha256:aa4fd987555ea10e1a4ec8765d
namespace: string
workspaces: [_name_=string]: #workspace & {name: "\(_name_)"}
secrets: [_name_=string]: #secret & {name: "\(_name_)"}
pullSecrets: [...string]
steps: [...#Script]

toolImage: *defaultToolImage | string
Expand All @@ -34,6 +35,7 @@ let defaultBaseImage = "gcr.io/distroless/base@sha256:aa4fd987555ea10e1a4ec8765d
scripts_: strings.Join(generate_scripts_, "")
workspaces_: workspaces
secrets_: secrets
pullSecrets_: pullSecrets
toolImage_: toolImage
baseImage_: baseImage
}
Expand Down Expand Up @@ -81,6 +83,7 @@ let defaultBaseImage = "gcr.io/distroless/base@sha256:aa4fd987555ea10e1a4ec8765d
scripts_: string
workspaces_: {...}
secrets_: {...}
pullSecrets_: [...string]
volumes_: [ for x in workspaces_ {name: x.name, emptyDir: {}}]
secretVolumes_: [ for x in secrets_ {name: x.name, secret: {secretName: x.name, items: x.items}}]
toolImage_: string
Expand Down Expand Up @@ -143,6 +146,7 @@ let defaultBaseImage = "gcr.io/distroless/base@sha256:aa4fd987555ea10e1a4ec8765d
name: "vela-internal-downward"
}] + _settings.volumes_ + _settings.secretVolumes_
restartPolicy: "Never"
imagePullSecrets: [ for x in _settings.pullSecrets_ {name: x}]
}
}

Expand Down

0 comments on commit 97c5853

Please sign in to comment.