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

charmcraft init produces error charm for machine charms #328

Closed
erik78se opened this issue May 2, 2021 · 3 comments
Closed

charmcraft init produces error charm for machine charms #328

erik78se opened this issue May 2, 2021 · 3 comments

Comments

@erik78se
Copy link
Contributor

erik78se commented May 2, 2021

description

I'm having a really bad experience from starting charming with charmcraft.

The default charm created as part of a "charmcraft init" seems defaulted to a kubernetes charm, which means that for anyone like me - still working on machine charms - the produced charm is broken from start and needs to be heavily modified to get running.

Consider new charmers. They will be stuck from start and giving up here.

The produced charm from "charmcraft init" should NEVER fail as this destroys the experience from anyone trying to get started on juju.

Please create a charm that works from start regardless if you are working on a K8 or machine charm.

Since K8 charms and Machine charms are so different, it should be two different default charms created I guess. So, charmcraft init should really take that into consideration.

version used

charmcraft 1.0.0 403 latest/beta canonical✓ -

@heitorPB
Copy link
Contributor

heitorPB commented Jul 8, 2021

charmcraft init --vm or charmcraft init --k8s would be nice to have.

@sergiusens
Copy link
Collaborator

This should no longer be an issue as the series keyword is no longer part of metadata.yaml.

Please re-open if still experiencing issues with the template generated by the latest charmcraft (1.2/1.3 at the time of this writing).

@heitorPB
Copy link
Contributor

This should no longer be an issue as the series keyword is no longer part of metadata.yaml.

I'm not sure that is the issue that @erik78se is reporting...

The issue is that charmcraft init only generates k8s charms. It is not helpful to create machine charms.

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

No branches or pull requests

3 participants