Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing rclone-replicate template params #585

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions resources/operations/rclone-bucket-replicate/job-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ parameters:
value: '3Gi'
- name: OBJ_STORE_CONFIG_SECRET_NAME
- name: RCLONE_CONFIG_MAP_NAME
- name: SRC_ENDPOINT
- name: SRC_BUCKET
- name: DST_ENDPOINT
- name: DST_BUCKET
- name: SOURCE_ENDPOINT
- name: SOURCE_BUCKET
- name: TARGET_ENDPOINT
- name: TARGET_BUCKET
objects:
- apiVersion: batch/v1
kind: Job
Expand Down Expand Up @@ -68,10 +68,9 @@ objects:
name: ${RCLONE_CONFIG_MAP_NAME}
args:
- 'copy'
- ${SRC_ENDPOINT}:${SRC_BUCKET}
- ${DST_ENDPOINT}:${DST_BUCKET}
- ${SOURCE_ENDPOINT}:${SOURCE_BUCKET}
- ${TARGET_ENDPOINT}:${TARGET_BUCKET}
- '--rc'
- '--stats=30s'
- '-v'
- '--rc-enable-metrics'
- '--rc-addr=:10902'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
- name: NAMESPACE
description: The namespace where the ConfigMap will be created.
value: 'observatorium-operations'
- name: RCLONE_CONFIG_NAME
- name: RCLONE_CONFIG_MAP_NAME
value: 'rclone-config'
- name: RCLONE_STATS_INTERVAL
value: '30s'
Expand All @@ -24,14 +24,13 @@ parameters:

objects:
- apiVersion: v1
kind: Secret
kind: ConfigMap
metadata:
name: ${OBJ_STORE_CONFIG_SECRET_NAME}
name: ${RCLONE_CONFIG_MAP_NAME}
namespace: ${NAMESPACE}
labels:
app.kubernetes.io/name: rclone-bucket-replicate-secret
app.kubernetes.io/part-of: observatorium
type: Opaque
stringData:
# Logging configuration
RCLONE_STATS: ${RCLONE_STATS_INTERVAL}
Expand Down
Loading