Skip to content

clear up rkl.#619

Open
Cosh-y wants to merge 1 commit into
rk8s-dev:mainfrom
Cosh-y:clear-up-rkl-cli
Open

clear up rkl.#619
Cosh-y wants to merge 1 commit into
rk8s-dev:mainfrom
Cosh-y:clear-up-rkl-cli

Conversation

@Cosh-y
Copy link
Copy Markdown
Contributor

@Cosh-y Cosh-y commented May 20, 2026

Remove the logic in rkl that manages resources on a per-container basis and the logic that directly modifies cluster state without going through rks.

Remove the logic in rkl that manages resources on a per-container basis
and the logic that directly modifies cluster state without going through rks.

Signed-off-by: harry <ambition0316@126.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 78e377250a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

metadata,
spec: PodSpec {
containers: vec![container],
restart_policy: RestartPolicy::Always,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep single-container pods from restarting unconditionally

The new container-to-pod conversion hard-codes restart_policy to RestartPolicy::Always, which changes rkl run/rkl apply -f <container.yaml> from one-shot container execution into perpetual restart behavior whenever the process exits. This breaks short-lived workloads (for example, migration or batch commands) by turning normal completion into a restart loop; the generated pod should default to Never (or preserve an explicit user policy) to avoid this regression.

Useful? React with 👍 / 👎.

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.

1 participant