Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
contents: read
secrets: inherit
with:
vale-files: '["README.md","CONTRIBUTING.md","chrony-client-operator/docs/","chrony-operator/docs"]'
vale-files: '["README.md","CONTRIBUTING.md","docs/"]'
linkcheck-fail-on-error: false

11 changes: 2 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@ on:
pull_request:
jobs:
unit-tests:
strategy:
matrix:
charm:
- name: chrony
working-directory: ./chrony-operator
- name: chrony-client
working-directory: ./chrony-client-operator
name: Unit tests for ${{ matrix.charm.name }}
name: Unit tests
uses: canonical/operator-workflows/.github/workflows/test.yaml@main
permissions:
contents: read
Expand All @@ -22,7 +15,7 @@ jobs:
runs-on-base: ubuntu-24.04
python-version: "3.12"
self-hosted-runner: false
working-directory: ${{ matrix.charm.working-directory }}
working-directory: ./
with-uv: true
integration-test:
uses: canonical/charm-ci/.github/workflows/integration-test.yml@v0.0.1-alpha.9
Expand Down
4 changes: 2 additions & 2 deletions artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ version: 1
rocks: []
charms:
- name: chrony
charmcraft-yaml: chrony-operator/charmcraft.yaml
charmcraft-yaml: chrony-charmcraft.yaml
resources: {}
platforms:
- arch: amd64
channel: latest/edge
- name: chrony-client
charmcraft-yaml: chrony-client-operator/charmcraft.yaml
charmcraft-yaml: chrony-client-charmcraft.yaml
resources: {}
platforms:
- arch: amd64
Expand Down
24 changes: 24 additions & 0 deletions chrony-operator/charmcraft.yaml → chrony-charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,29 @@ parts:
plugin: uv
build-snaps:
- astral-uv
override-build: |
craftctl default
ln -sf chrony_charm.py "${CRAFT_PART_INSTALL}/src/charm.py"
files:
source: .
plugin: dump
stage:
- files
patches:
source: ./patches
plugin: nil
chrony-exporter:
after: [ patches ]
source: https://github.com/SuperQ/chrony_exporter.git
source-type: git
source-tag: v0.13.3
plugin: go
build-environment:
- CGO_ENABLED: "0"
build-snaps:
- go
override-build: |
git apply "$CRAFT_PROJECT_DIR/patches/exporter-reverse-lookup-timeout.patch"
craftctl default
assumes:
- juju >= 3.3
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ parts:
plugin: uv
build-snaps:
- astral-uv
override-build: |
craftctl default
ln -sf chrony_client_charm.py "${CRAFT_PART_INSTALL}/src/charm.py"
files:
source: .
plugin: dump
Expand Down
48 changes: 0 additions & 48 deletions chrony-client-operator/README.md

This file was deleted.

145 changes: 0 additions & 145 deletions chrony-client-operator/pyproject.toml

This file was deleted.

104 changes: 0 additions & 104 deletions chrony-client-operator/terraform/charm/README.md

This file was deleted.

Loading
Loading