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

WIP #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

WIP #1

wants to merge 1 commit into from

Conversation

njoyce
Copy link

@njoyce njoyce commented Mar 7, 2019

No description provided.

@njoyce njoyce force-pushed the random-refactorings branch 4 times, most recently from 4a6d98b to 461f549 Compare March 7, 2019 14:56
@tylertreat
Copy link
Member

docstrings plz

Copy link
Member

@tylertreat tylertreat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, would just add some docstrings.



@charm.configure
def configure_workload():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you deliberately remove the charm status stuff? E.g. the existing charm code has stuff like:

layer.status.maintenance('starting workload')

IMO it's nice to be able to pipe messages out to the juju client.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea - they seemed like standard messages that the framework/library should be providing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, yes I agree they should just have built-in ones for these hooks.


workload.set_oci_image(charm.resources['mariadb'])
workload.open_port('db', containerPort=3306, protocol='TCP')
workload.env.set('MYSQL_ROOT_PASSWORD', root_password)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this mapping to a podspec?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, and potentially a configuration to run it in the machine world too

@njoyce njoyce force-pushed the random-refactorings branch 2 times, most recently from 422eaf2 to 15aef1e Compare March 7, 2019 21:02
@njoyce
Copy link
Author

njoyce commented Mar 7, 2019

Docstrings added.

@RealKinetic RealKinetic deleted a comment from njoyce Mar 7, 2019
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

Successfully merging this pull request may close these issues.

2 participants