-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #686 from juanmanuel-tirado/JUJU-1361_upgrade_ubun…
…tu_example_charm Revision of test onos.charm
- Loading branch information
Showing
14 changed files
with
315 additions
and
976 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
venv/ | ||
build/ | ||
*.charm | ||
|
||
.coverage | ||
__pycache__/ | ||
*.py[cod] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/venv | ||
*.py[cod] | ||
*.charm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# ubuntu | ||
|
||
## Developing | ||
|
||
Create and activate a virtualenv with the development requirements: | ||
|
||
virtualenv -p python3 venv | ||
source venv/bin/activate | ||
pip install -r requirements-dev.txt | ||
|
||
## Code overview | ||
|
||
TEMPLATE-TODO: | ||
One of the most important things a consumer of your charm (or library) | ||
needs to know is what set of functionality it provides. Which categories | ||
does it fit into? Which events do you listen to? Which libraries do you | ||
consume? Which ones do you export and how are they used? | ||
|
||
## Intended use case | ||
|
||
TEMPLATE-TODO: | ||
Why were these decisions made? What's the scope of your charm? | ||
|
||
## Roadmap | ||
|
||
If this Charm doesn't fulfill all of the initial functionality you were | ||
hoping for or planning on, please add a Roadmap or TODO here | ||
|
||
## Testing | ||
|
||
The Python operator framework includes a very nice harness for testing | ||
operator behaviour without full deployment. Just `run_tests`: | ||
|
||
./run_tests |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# ubuntu | ||
|
||
## Description | ||
|
||
A simple Ubuntu image for testing purposes. | ||
|
||
## Usage | ||
|
||
Nothing relevant simply to be deployed for testing. | ||
|
||
|
||
## Relations | ||
|
||
NA. | ||
|
||
## OCI Images | ||
|
||
NA. | ||
|
||
## Contributing | ||
|
||
Please see the [Juju SDK docs](https://juju.is/docs/sdk) for guidelines | ||
on enhancements to this charm following best practice guidelines, and | ||
`CONTRIBUTING.md` for developer guidance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2022 jtirado | ||
# See LICENSE file for licensing details. | ||
# | ||
# TEMPLATE-TODO: change this example to suit your needs. | ||
# If you don't need actions, you can remove the file entirely. | ||
# It ties in to the example _on_fortune_action handler in src/charm.py | ||
# | ||
# Learn more about actions at: https://juju.is/docs/sdk/actions | ||
|
||
fortune: | ||
description: Returns a pithy phrase. | ||
params: | ||
fail: | ||
description: "Fail with this message" | ||
type: string | ||
default: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Learn more about charmcraft.yaml configuration at: | ||
# https://juju.is/docs/sdk/charmcraft-config | ||
type: "charm" | ||
bases: | ||
- build-on: | ||
- name: "ubuntu" | ||
channel: "22.04" | ||
run-on: | ||
- name: "ubuntu" | ||
channel: "22.04" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
options: {} | ||
# Copyright 2022 jtirado | ||
# See LICENSE file for licensing details. | ||
# | ||
# Learn more about config at: https://juju.is/docs/sdk/config | ||
|
||
options: {} |
Oops, something went wrong.