Follow the steps below to get started.
Running the following command will produce a .charm file, jobbergate-agent.charm
charmcraft build
jobbergate-agent.yaml
jobbergate-agent:
api-key: "<backend api-key>"
backend-url: "<backend-url>"
aws-access-key-i: "<aws-access-key-i>"
aws-secret-access-key: "<aws-secret-access-key>"
e.g.
jobbergate-agent:
backend-url: https://armada-k8s-staging.omnivector.solutions
api-key: GJGXBnzhyt8zKiVV5s9sW9pONOBa4sTW2VUd0VPK
aws-access-key-id: ABCDEFGHIJKLMN
aws-secret-access-key: g3iyVyBPo93k8RwBNCW4r6T7tst0TaO5+928i4vt
Using the built charm and the defined config, run the command to deploy the charm.
juju deploy ./jobbergate-agent.charm \
--config ./jobbergate-agent.yaml \
--series centos7
To make a new release of the jobbergate-agent charm:
- Update the CHANGELOG.rst file, moving the changes under the Unreleased section to the new version section. Always keep an
Unreleased
section at the top. - Create a new commit with the title
Release x.y.z
- Create a new annotated Git tag, adding a summary of the changes in the tag message:
git tag --annotate --sign x.y.z
- Push the new tag to GitHub:
git push --tags
The jobbergate-agent charm exposes additional functionality to facilitate jobbergate-agent package upgrades.
To upgrade the jobbergate-agent to a new version or release:
juju run-action jobbergate-agent/leader upgrade version="7.7.7"
This will result in the jobbergate-agent package upgrade to 7.7.7.
juju run-action jobbergate-agent/leader upgrade version="7.7.7"
Manually triggers the cleaning of jobbergate-agent's cache dir:
juju run-action jobbergate-agent/leader clear-cache-dir
- MIT (see
LICENSE
file in this directory for full preamble)