-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
WIP #1
Conversation
4a6d98b
to
461f549
Compare
docstrings plz |
There was a problem hiding this 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(): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
422eaf2
to
15aef1e
Compare
Docstrings added. |
15aef1e
to
076b349
Compare
076b349
to
3daabec
Compare
No description provided.