Skip to content

Commit

Permalink
Add documentation to Charmhub (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <[email protected]>
  • Loading branch information
gatici authored Aug 18, 2023
1 parent dc611fe commit 3681a18
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ This charm is useful when developing charms or when deploying charms in non-prod
To use the `self-signed-certificates` operator and provide certificates to your charm, your charm
needs to support the `tls-certificates` interface.

```console
```shell
juju deploy self-signed-certificates
juju deploy <your charm>
juju relate self-signed-certificates <your charm>
```

## Get the certificates issued by the charm
```bash

```shell
juju run self-signed-certificates/leader get-issued-certificates
```
42 changes: 42 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
The Self Signed Certificates Operator provides self-signed X.509 certificates to your charms.

This charm relies on the `tls-certificates` charm relation interface. When a requirer charm inserts a Certificate Signing Request in its unit databag, the `self-signed-certificates-operator` will read it, generate a self-signed X.509 certificates and
inserts this certificate back into the relation data.

The [Self-Signed-Certificates-Operator](https://github.com/canonical/self-signed-certificates-operator) is useful when developing charms or when deploying charms in non-production environment on top of [Juju](https://juju.is/).

## Usage

To deploy Self Signed X.509 Certificates Operator, all you need to do is run the following command, which will fetch the charm from [Charmhub](https://charmhub.io/self-signed-certificates?channel=edge) and deploy it to your model. Then relate it with an existing requirer charm.
```shell
juju deploy self-signed-certificates --channel edge
juju relate self-signed-certificates <your charm which needs tls certificates>
```

Juju will now fetch self-signed-certificates operator and begin deploying it to the local MicroK8s. This process can take several minutes depending on how provisioned (RAM, CPU, etc) your machine is. You can track the progress by running:
```shell
juju status --watch 1s
juju status --relations
```

The Self Signed Certificates Operator works with single replica for the moment and scale up operation is not supported yet.

## License:
The Self Signed X.509 Certificates Operator [is distributed](https://github.com/canonical/self-signed-certificates-operator/blob/main/LICENSE) under the Apache Software License, version 2.0.

## Project and community
The Self Signed Certificates Operator is an open-source project that welcomes community contributions, suggestions, fixes and constructive feedback.
- [Read our Code of Conduct](https://ubuntu.com/community/code-of-conduct)
- [Join the Discourse forum](https://discourse.charmhub.io/tag/self-signed-certificates)
- Contribute and report bugs to [Self-Signed-Certificates-Operator](https://github.com/canonical/self-signed-certificates-operator)

# Navigation

| Level | Path | Navlink |
| ----- |---------------------------|----------------------------------------------------------------------------------------------------------|
| 1 | reference | [Reference]() |
| 2 | r-actions | [Actions](https://charmhub.io/self-signed-certificates/actions?channel=edge) |
| 2 | r-configurations | [Configurations](https://charmhub.io/self-signed-certificates/configure?channel=edge) |
| 2 | r-libraries | [Libraries](https://charmhub.io/self-signed-certificates/libraries?channel=edge) |
| 2 | r-integrations | [Integrations](https://charmhub.io/self-signed-certificates/integrations?channel=edge) |

2 changes: 1 addition & 1 deletion metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: |
inserts this certificate back into the relation data.
This charm is useful when developing charms or when deploying charms in non-production environment.
docs: https://discourse.charmhub.io/t/self-signed-x-509-certificates-documentation/11591
website: https://charmhub.io/self-signed-certificates
source: https://github.com/canonical/self-signed-certificates-operator
issues: https://github.com/canonical/self-signed-certificates-operator/issues
Expand Down

0 comments on commit 3681a18

Please sign in to comment.