kelos-dev / kelos-dev/kelos

CLI UX: 'axon run --dry-run' doesn't show auto-created Workspace and Secret resources

Open
#252 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

actor/kelos generated-by-kelos kelos/needs-input kind/feature priority/important-longterm triage-accepted
Dominant language
Go
Stars
331
Forks
40
Avg merge
1d 21h
Merged PRs (30d)
70

Description

Problem

When running axon run --dry-run with a workspace configuration in ~/.axon/config.yaml, only the Task resource is displayed. The auto-created Workspace and Secret resources are not shown, which makes it unclear what will actually be created in the cluster.

Steps to Reproduce

  1. Create a config file with workspace settings:
apiKey: "fake-key"
workspace:
  repo: https://github.com/test/test.git
  ref: main
  1. Run:
axon run -p "test task" --dry-run

Current Behavior

Output only shows the Task resource:

apiVersion: axon.io/v1alpha1
kind: Task
metadata:
  name: task-ksrtl
  namespace: default
spec:
  credentials:
    secretRef:
      name: axon-credentials  # Created but not shown!
  workspaceRef:
    name: axon-workspace      # Created but not shown!
  ...

Expected Behavior

The --dry-run flag should display ALL resources that would be created, including:

  1. The Secret resource (when using apiKey or oauthToken in config)
  2. The Workspace resource (when using inline workspace config)
  3. The Task resource

This would give users a complete picture of what will be created and help them understand the full impact of their command.

Why This Matters

  • Users need to see secret names to understand what's being created
  • Users need to verify workspace configuration before creating it
  • --dry-run should show the complete truth of what will happen
  • This helps users learn the YAML structure and migrate to direct kubectl usage

Suggested Fix

Modify the --dry-run output to include all auto-created resources in a multi-document YAML format:

---
apiVersion: v1
kind: Secret
metadata:
  name: axon-credentials
  namespace: default
...
---
apiVersion: axon.io/v1alpha1
kind: Workspace
metadata:
  name: axon-workspace
  namespace: default
...
---
apiVersion: axon.io/v1alpha1
kind: Task
metadata:
  name: task-ksrtl
  namespace: default
...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the axon run --dry-run entry point and reproduce the behavior with the workspace configuration in ~/.axon/config.yaml. Done means the output includes Secret, Workspace, and Task resources as separate YAML documents when those resources would be auto-created.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.