@@ -24,7 +24,7 @@ local secret_key_ref(s3secret) =
2424 key: s3secret.secretkeyname,
2525 };
2626
27- local Backend(backupkey, bucket, s3secret, create_bucket=true) =
27+ local Backend(backupkey, bucket, s3secret, create_bucket=true, tls_options=null ) =
2828 local bsecret =
2929 if s3secret == null && bucket != null then
3030 {
@@ -63,6 +63,7 @@ local Backend(backupkey, bucket, s3secret, create_bucket=true) =
6363 accessKeyIDSecretRef: access_key_ref(bsecret),
6464 secretAccessKeySecretRef: secret_key_ref(bsecret),
6565 },
66+ [if tls_options != null then 'tlsOptions']: tls_options,
6667 },
6768 };
6869
@@ -142,8 +143,8 @@ local PruneSpec(schedule, keepDaily, keepLast) =
142143 * \returns an object with keys 'bucket' and 'job'. 'bucket' can be `null`, if
143144 * the global bucket or an externally-managed bucket is used.
144145 */
145- local Job(name, keep_jobs=3, backupkey=null, bucket=null, s3secret=null, create_bucket=true) =
146- local backend = Backend(backupkey, bucket, s3secret, create_bucket);
146+ local Job(name, keep_jobs=3, backupkey=null, bucket=null, s3secret=null, create_bucket=true, tls_options=null ) =
147+ local backend = Backend(backupkey, bucket, s3secret, create_bucket, tls_options );
147148 local thejob = {
148149 apiVersion: 'k8up.io/v1',
149150 kind: 'Backup',
@@ -168,12 +169,12 @@ local Job(name, keep_jobs=3, backupkey=null, bucket=null, s3secret=null, create_
168169 *
169170 * See the documentation for \ref Job for definitions of the other arguments.
170171 */
171- local Schedule(name, schedule, keep_jobs=3, backupkey=null, bucket=null, s3secret=null, create_bucket=true) =
172+ local Schedule(name, schedule, keep_jobs=3, backupkey=null, bucket=null, s3secret=null, create_bucket=true, tls_options=null ) =
172173 // prune backups daily, keep last 5 and 30 daily backups
173174 local pspec = PruneSpec('30 2 * * *', 30, 5);
174175 // check backup repo dalily
175176 local cspec = CheckSpec('30 3 * * *');
176- local backend = Backend(backupkey, bucket, s3secret, create_bucket);
177+ local backend = Backend(backupkey, bucket, s3secret, create_bucket, tls_options );
177178 local theschedule =
178179 {
179180 apiVersion: 'k8up.io/v1',
0 commit comments