This repository was archived by the owner on Jul 16, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Create the initial charm #2
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
42c51e7
Initial charm
weiiwang01 4134e95
Apply suggestions from code review
weiiwang01 20a9a6d
Update documents
weiiwang01 0cc02fb
Apply suggestions from code review
weiiwang01 439a779
Update metrics.md
weiiwang01 3c72123
Update metrics.md
weiiwang01 4e7035b
Merge remote-tracking branch 'origin/init-charm' into init-charm
weiiwang01 5e07bd6
Add changelog.md and .woke.yaml
weiiwang01 36f3195
Revert changes in .woke.yaml
weiiwang01 f62f15b
Update charmcraft.yaml to include changelog.md
weiiwang01 eb866e1
Update charmcraft.yaml
weiiwang01 0982c10
Relocate vale wordlist
weiiwang01 940161c
Update test workflows
weiiwang01 58d0eb5
Add .vale.ini file
weiiwang01 d2f83df
Add .vale.ini file
weiiwang01 74330ee
Update linkcheck
weiiwang01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -12,3 +12,4 @@ jobs: | |
| secrets: inherit | ||
| with: | ||
| channel: latest/edge | ||
| integration-test-workflow-file: test.yaml | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,11 @@ | ||
| ; Copyright 2025 Canonical Ltd. | ||
| ; See LICENSE file for licensing details. | ||
|
|
||
| StylesPath = .vale/styles | ||
|
|
||
| Packages = https://github.com/canonical/platform-engineering-vale-package/releases/download/latest/pfe-vale.zip | ||
|
|
||
| Vocab = PFE, local | ||
|
|
||
| [*] | ||
| BasedOnStyles = PFE |
This file contains hidden or 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,6 @@ | ||
| chrony | ||
| Chrony | ||
| chronyc | ||
| chronyd | ||
| PPMs | ||
| reachability |
This file contains hidden or 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 @@ | ||
| # Copyright 2025 Canonical Ltd. | ||
| # See LICENSE file for licensing details. | ||
|
|
||
| ignore_files: | ||
| # Ignore apt charm library as it uses non compliant terminology: | ||
| # man-in-the-middle. | ||
| - lib/charms/operator_libs_linux/v0/apt.py | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,65 +1,72 @@ | ||
| # Copyright 2025 Canonical Ltd. | ||
| # See LICENSE file for licensing details. | ||
| # This file configures Charmcraft. | ||
| # See https://canonical-charmcraft.readthedocs-hosted.com/stable/howto/manage-charmcraft/ | ||
| # for guidance. | ||
|
|
||
| type: charm | ||
| name: is-charms-template | ||
| title: Charm Template | ||
| summary: A very short one-line summary of the charm. | ||
| name: chrony-client | ||
| title: Chrony Client Charm | ||
| summary: Chrony NTP client charm. | ||
| links: | ||
| documentation: https://discourse.charmhub.io | ||
| issues: https://github.com/canonical/is-charms-template-repo/issues | ||
| source: https://github.com/canonical/is-charms-template-repo | ||
| issues: https://github.com/canonical/chrony-client-operator/issues | ||
| source: https://github.com/canonical/chrony-client-operator | ||
| contact: https://launchpad.net/~canonical-is-devops | ||
|
|
||
| description: | | ||
| A single sentence that says what the charm is, concisely and memorably. | ||
|
|
||
| A paragraph of one to three short sentences, that describe what the charm does. | ||
|
|
||
| A third paragraph that explains what need the charm meets. | ||
|
|
||
| Finally, a paragraph that describes whom the charm is useful for. | ||
|
|
||
| bases: | ||
| - build-on: | ||
| - name: ubuntu | ||
| channel: "22.04" | ||
| run-on: | ||
| - name: ubuntu | ||
| channel: "22.04" | ||
|
|
||
| # The containers and resources metadata apply to Kubernetes charms only. | ||
| # Remove them if not required. | ||
| A [Juju](https://juju.is/) [charm](https://juju.is/docs/olm/charmed-operators) | ||
| for deploying and managing the [Chrony](https://chrony-project.org) NTP server | ||
| in your systems. | ||
|
|
||
| This charm simplifies the configuration and maintenance of `chrony` as a | ||
| NTP client. | ||
|
|
||
| # Your workload’s containers. | ||
| containers: | ||
| httpbin: | ||
| resource: httpbin-image | ||
|
|
||
| # This field populates the Resources tab on Charmhub. | ||
| resources: | ||
| # An OCI image resource for each container listed above. | ||
| # You may remove this if your charm will run without a workload sidecar container. | ||
| httpbin-image: | ||
| type: oci-image | ||
| description: OCI image for httpbin | ||
| # The upstream-source field is ignored by Juju. It is included here as a reference | ||
| # so the integration testing suite knows which image to deploy during testing. This field | ||
| # is also used by the 'canonical/charming-actions' Github action for automated releasing. | ||
| upstream-source: kennethreitz/httpbin | ||
| type: charm | ||
| subordinate: true | ||
|
|
||
| # See https://canonical-charmcraft.readthedocs-hosted.com/stable/reference/files/config-yaml-file/ | ||
| # for guidance. | ||
| config: | ||
| options: | ||
| # An example config option to customise the log level of the workload | ||
| log-level: | ||
| description: | | ||
| Configures the log level of gunicorn. | ||
|
|
||
| Acceptable values are: "info", "debug", "warning", "error" and "critical" | ||
| default: "info" | ||
| sources: | ||
| description: >- | ||
| Time sources for the Chrony server are specified as a comma-separated list of URLs. | ||
| Currently, the Chrony charm supports using only another NTP server as the time source. | ||
| The format for NTP source URLs is as follows: `ntp://host[:port][?options]`, where the options are the same as | ||
| Chrony pool configuration settings (https://chrony-project.org/doc/4.5/chrony.conf.html). | ||
| For NTP sources that support NTS, the URL format is: `nts://host[:nts-ke-port][?options]`. | ||
| The options for NTS URLs are the same as those for NTP sources. | ||
| Here are some examples of supported sources: | ||
| `ntp://ntp.example.com` | ||
| `ntp://ntp.example.com:1234` | ||
| `ntp://ntp.example.com?iburst=true&maxsources=2` | ||
| `nts://ntp.example.com` | ||
| type: string | ||
| default: |- | ||
| ntp://ntp.ubuntu.com?iburst=true&maxsources=4, | ||
| ntp://0.ubuntu.pool.ntp.org?iburst=true&maxsources=1, | ||
| ntp://1.ubuntu.pool.ntp.org?iburst=true&maxsources=1, | ||
| ntp://2.ubuntu.pool.ntp.org?iburst=true&maxsources=2 | ||
|
|
||
| requires: | ||
| juju-info: | ||
| interface: juju-info | ||
| scope: container | ||
|
|
||
| provides: | ||
| cos-agent: | ||
| interface: cos_agent | ||
|
|
||
| platforms: | ||
| ubuntu@24.04:amd64: | ||
| ubuntu@22.04:amd64: | ||
| parts: | ||
| charm: | ||
| build-snaps: | ||
| - rustup | ||
| override-build: | | ||
| rustup default stable | ||
| craftctl default | ||
| build-packages: | ||
| - libffi-dev | ||
| - libssl-dev | ||
| - pkg-config | ||
| changelog: | ||
| source: ./docs | ||
| plugin: dump | ||
| stage: | ||
| - changelog.md |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.