Skip to content
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

Implement CLI commands for serverless module #1247

Open
4 tasks
kwiatekus opened this issue Nov 14, 2024 · 0 comments
Open
4 tasks

Implement CLI commands for serverless module #1247

kwiatekus opened this issue Nov 14, 2024 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@kwiatekus
Copy link
Contributor

kwiatekus commented Nov 14, 2024

Description

Implement a set of CLI commands for serverless allowing users for C/R/D operations for Function CRs

> kyma function --help

Description:
  manage functions # description of new commands group

Commands:
  create - create function
  patch - update individual function fields (not all flags must be provided, but only those changed)
  get - get function/s
  delete - delete function

Function creation from local (source and dependencies) files should be possible

> kyma function create --help

Description:
  create function

Flags:
  --name (required)
  --namespace - resource namespace (default: default)
  --runtime, -r - function runtime (default: Nodejs20)
  --replicas - function replicas (default: 1)
  --source - path to file with functions code 
  --dependencies - path to file with functions dependencies

Function can be created w/o passing source and dependency paths. CLI should have advanced defaulting for this case.

AC

  • commands (config maps) are part of serverless module
  • user should be able to create function from local files (handler and dependency)
  • users should be able to create function for all supported runtime types (Node.js and python)
  • users do not need to pass path to files; CLI should default the content with minimalistic hello-world like example

Reason
Kyma users are currently using kyma cli v2 commands to apply functions from local files.

Related links
accepted design
prototype

@kwiatekus kwiatekus added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant