Skip to content

Add --dry-run option to the generic create command #2452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kwiatekus opened this issue Apr 4, 2025 · 0 comments
Open

Add --dry-run option to the generic create command #2452

kwiatekus opened this issue Apr 4, 2025 · 0 comments
Labels
area/cli Related to all activities around CLI
Milestone

Comments

@kwiatekus
Copy link
Contributor

kwiatekus commented Apr 4, 2025

Description

Allow users to generate yaml file instead of creating it on the cluster

For example via:

kyma alpha function create foo --dry-run -o yaml > function.yaml

AC

  • the "dry-run" option should be applicable to all commands that use the generic "create" command
  • dry-run w/o -oyaml flag should output the same as kubectl
k create ns boo --dry-run
namespace/boo created (dry run)

Reasons

We need to support generating function CR as yaml manifest so that users could have one approach to applying their application resources in a unified way for all CRs( using helm, kubect, kustomize or gitops approach)

@kwiatekus kwiatekus added the area/cli Related to all activities around CLI label Apr 4, 2025
@kwiatekus kwiatekus added this to the 3.1.0 milestone Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to all activities around CLI
Projects
None yet
Development

No branches or pull requests

1 participant