Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.24.5
FROM golang:1.24.6

RUN apt-get update && apt-get install -y nodejs npm awscli jq

Expand Down
10 changes: 6 additions & 4 deletions internal/pkg/object/command/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ type shellJobContext struct {
}

type runtimeContext struct {
Job *context.Context `yaml:"job,omitempty" json:"job,omitempty"`
Job *job.Job `yaml:"job,omitempty" json:"job,omitempty"`
Command *shellCommandContext `yaml:"command,omitempty" json:"command,omitempty"`
Cluster *context.Context `yaml:"cluster,omitempty" json:"cluster,omitempty"`
Cluster *cluster.Cluster `yaml:"cluster,omitempty" json:"cluster,omitempty"`
Runtime *plugin.Runtime `yaml:"runtime,omitempty" json:"runtime,omitempty"`
}

func New(commandContext *context.Context) (plugin.Handler, error) {
Expand Down Expand Up @@ -60,9 +61,10 @@ func (s *shellCommandContext) handler(r *plugin.Runtime, j *job.Job, c *cluster.
// this will enable us to pass any context into shell command and...
// parse those keys in the shell script using `jq` utility
rc := &runtimeContext{
Job: j.Context,
Job: j,
Command: s,
Cluster: c.Context,
Cluster: c,
Runtime: r,
}

contextContent, err := json.MarshalIndent(rc, ``, ` `)
Expand Down