diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..268bba3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +charts/*.tgz \ No newline at end of file diff --git a/.helmignore b/.helmignore index 0e8a0eb..5da23f4 100644 --- a/.helmignore +++ b/.helmignore @@ -21,3 +21,4 @@ .idea/ *.tmproj .vscode/ +charts/ diff --git a/Chart.yaml b/Chart.yaml index 90e8b20..6c61f4d 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0-alpha +version: 0.1.1-alpha # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/README.md b/README.md index 580c6a3..a2946e0 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ rustic: s3: repo: + provider: Scaleway endpoint: s3.fr-par.scw.cloud access_key_id: secret_access_key: @@ -85,6 +86,7 @@ persistence: # One of rustic's greatest features is that you can use it with cold or "glacier" storage. Therefore you need to define two buckets/repositories. The `repo_hot` only holds the backend's metadata like config, keys, snapshots, index and tree blobs, which are required for browsing and managing the repo. This part is quite small. The `repo` holds the full repository including data and metadata. s3: repo: + provider: Scaleway endpoint: s3.fr-par.scw.cloud access_key_id: secret_access_key: @@ -92,6 +94,7 @@ s3: storage_class: GLACIER # Replace with your provider's cold and cheap storage class bucket: repo_hot: + provider: Scaleway endpoint: s3.fr-par.scw.cloud access_key_id: secret_access_key: @@ -100,6 +103,13 @@ s3: bucket: ``` +## To Do + +- [ ] Auto create persistentVolume for local cache +- [ ] Add forget/prune CronJobs +- [ ] Follow [helm charts best practises](https://helm.sh/docs/chart_best_practices/) + + ## Contributing Found a bug? diff --git a/charts/index.yaml b/charts/index.yaml index 0883036..ee0c92d 100644 --- a/charts/index.yaml +++ b/charts/index.yaml @@ -1,6 +1,16 @@ apiVersion: v1 entries: rustic: + - apiVersion: v2 + appVersion: 0.6.1 + created: "2024-01-12T18:11:53.714144944+01:00" + description: fast, encrypted and deduplicated backups + digest: 3c8a0219a14bf8cf25d3cea57bee4a326144f0e8138656a58b692fb7ece2e533 + name: rustic + type: application + urls: + - https://github.com/rustic-rs/rustic-helm/releases/download/0.1.1-alpha/charts/rustic-0.1.1-alpha.tgz + version: 0.1.1-alpha - apiVersion: v2 appVersion: 0.6.1 created: "2024-01-06T14:01:32.369624462+01:00" @@ -11,4 +21,4 @@ entries: urls: - https://github.com/rustic-rs/rustic-helm/releases/download/0.1.0-alpha/rustic-0.1.0-alpha.tgz version: 0.1.0-alpha -generated: "2024-01-06T14:01:32.368707107+01:00" +generated: "2024-01-12T18:11:53.712973339+01:00" diff --git a/templates/secret.yaml b/templates/secret.yaml index c9334ec..ef17184 100644 --- a/templates/secret.yaml +++ b/templates/secret.yaml @@ -16,7 +16,7 @@ stringData: rclone.conf: | [repo] type = s3 - provider = + provider = {{ .Values.s3.repo.provider }} env_auth = false endpoint = {{ .Values.s3.repo.endpoint }} access_key_id = {{ .Values.s3.repo.access_key_id }} @@ -38,7 +38,7 @@ stringData: rclone.conf: | [repo-hot] type = s3 - provider = + provider = {{ .Values.s3.repo_hot.provider }} env_auth = false endpoint = {{ .Values.s3.repo_hot.endpoint }} access_key_id = {{ .Values.s3.repo_hot.access_key_id }} diff --git a/values.yaml b/values.yaml index 47e28b7..3026c8b 100644 --- a/values.yaml +++ b/values.yaml @@ -37,13 +37,9 @@ rustic: memory: 50Mi cpu: 100m limits: - memory: 192Mi - cpu: 200m - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL + memory: 512Mi + cpu: 500m + securityContext: {} nodeSelector: {}