Skip to content

Including whole objects to the the context for shell commands to have access to#36

Merged
babourine merged 1 commit intomainfrom
stan_shell_context
Aug 8, 2025
Merged

Including whole objects to the the context for shell commands to have access to#36
babourine merged 1 commit intomainfrom
stan_shell_context

Conversation

@babourine
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings August 8, 2025 03:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the context available to shell commands by providing access to complete objects instead of just their context fields. The change allows shell scripts to access full object properties through JSON parsing with jq.

  • Changed runtimeContext struct to include complete objects (*job.Job, *cluster.Cluster) instead of just their context fields
  • Added Runtime field to provide access to the runtime object
  • Updated Golang base image version from 1.24.5 to 1.24.6

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
internal/pkg/object/command/shell/shell.go Modified runtimeContext to include full objects and added Runtime field for enhanced shell command access
Dockerfile Updated Golang base image to version 1.24.6

@babourine babourine merged commit 7ac1068 into main Aug 8, 2025
5 checks passed
@babourine babourine deleted the stan_shell_context branch August 8, 2025 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants