Follow the steps below to get started.
Running the following command will produce a .charm file, cluster-agent.charm
charmcraft build
cluster-agent.yaml
cluster-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.
cluster-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 ./cluster-agent.charm \
--config ./cluster-agent.yaml \
--series centos7
To make a new release of the cluster-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 cluster-agent charm exposes additional functionality to facilitate cluster-agent package upgrades.
To upgrade the cluster-agent to a new version or release:
juju run-action cluster-agent/leader upgrade version="7.7.7"
This will result in the cluster-agent package upgrade to 7.7.7.
juju run-action cluster-agent/leader upgrade version="7.7.7"
Manually triggers the cleaning of cluster-agent's cache dir:
juju run-action cluster-agent/leader clear-cache-dir
- MIT (see
LICENSE
file in this directory for full preamble)