Skip to content

Allow creating new projects without setting up Kubernetes #23

@vkorenev

Description

@vkorenev

Is your feature request related to a problem? Please describe.
I want to create a new Cloudstate service. However, the following command fails because there are no templates in ~/.cloudstate:

$ cloudstate create --name=inventory --profile=kotlin --registry=docker.io --tag=0.1
Creating user function project: "inventory"
Using profile: "kotlin"
You must first boot CloudState with cloudstate --init. See cloudstate --help for help
Ok(())

However, cloudstate init tries to perform some initialization on Kubernetes cluster and then fails:

$ cloudstate init
😉 Creating CloudState namespace...
Error from server (Forbidden): namespaces is forbidden: User "volodymyr.koreniev@yoppworks.com" cannot create resource "namespaces" in API group "" at the cluster scope
😻 Success on create CloudState namespace
🚀 Initializing CloudState operator...
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "apiextensions.k8s.io/v1beta1, Resource=customresourcedefinitions", GroupVersionKind: "apiextensions.k8s.io/v1beta1, Kind=CustomResourceDefinition"
Name: "statefulstores.cloudstate.io", Namespace: ""

Describe the solution you'd like
I think that the cloudstate-cli tool should allow creating a new project even if I have not set up Kubernetes cluster for deploying Cloudstate service yet. Probably, cloudstate create should fetch templates if that has not been done yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions