-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support self-signed ca cert for backends (#294)
* Implemented ca-certs * Use service name to connect to minio server * Merge minio docs into one. * Use filepath.Join to generate file name * Simplify how --cacert passed to restic * Update backend docs * implement cacert: tests fixed * Fixed bug caused panic. * Fixed Test: fail when initializer enabled.
- Loading branch information
Showing
39 changed files
with
5,231 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: stash.appscode.com/v1alpha1 | ||
kind: Recovery | ||
metadata: | ||
name: stash-demo | ||
namespace: default | ||
spec: | ||
workload: | ||
kind: Deployment | ||
name: stash-demo | ||
backend: | ||
s3: | ||
endpoint: '<your Minio server addres>' | ||
bucket: stash-qa | ||
prefix: demo | ||
storageSecretName: minio-restic-secret | ||
paths: | ||
- /source/data | ||
recoveredVolumes: | ||
- mountPath: /source/data | ||
hostPath: | ||
path: /data/stash-test/restic-restored | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: stash.appscode.com/v1alpha1 | ||
kind: Restic | ||
metadata: | ||
name: minio-restic | ||
namespace: default | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: stash-demo | ||
fileGroups: | ||
- path: /source/data | ||
retentionPolicyName: 'keep-last-5' | ||
backend: | ||
s3: | ||
endpoint: '<your Minio server address>' | ||
bucket: stash-qa | ||
prefix: demo | ||
storageSecretName: minio-restic-secret | ||
schedule: '@every 1m' | ||
volumeMounts: | ||
- mountPath: /source/data | ||
name: source-data | ||
retentionPolicies: | ||
- name: 'keep-last-5' | ||
keepLast: 5 | ||
prune: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.