diff --git a/chart/Chart.yaml b/chart/Chart.yaml index c76df32..c51cb98 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -10,9 +10,9 @@ description: | type: application -version: 0.1.14 +version: 0.1.18 -appVersion: "0.1.14" +appVersion: "0.1.18" home: https://github.com/lukaszraczylo/kubernetes-images-sync-operator diff --git a/chart/values.yaml b/chart/values.yaml index d99e057..2b9438f 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -11,7 +11,7 @@ cmRaczyloCom: - ALL image: repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator - tag: 0.1.14 + tag: 0.1.18 resources: limits: cpu: 500m diff --git a/docker-image-worker/Dockerfile b/docker-image-worker/Dockerfile index aff3a62..06fa4f1 100644 --- a/docker-image-worker/Dockerfile +++ b/docker-image-worker/Dockerfile @@ -30,7 +30,7 @@ RUN adduser --disabled-password --gecos "" --uid 1001 runner \ WORKDIR /home/runner COPY storage.conf containers.conf registries.conf /home/runner/.config/containers/ -COPY requirements.txt export.py cleanup.py ./ +COPY requirements.txt export.py cleanup.py s3_utils.py ./ USER runner RUN sudo chown -R runner:runner /home/runner/.config \ && python3 -m pip install --no-cache-dir --only-binary=:all: -r requirements.txt \ No newline at end of file diff --git a/docker-image-worker/cleanup.py b/docker-image-worker/cleanup.py index 973663d..d35be32 100755 --- a/docker-image-worker/cleanup.py +++ b/docker-image-worker/cleanup.py @@ -1,7 +1,11 @@ #!/usr/bin/env python3 import os +import sys import argparse from botocore.exceptions import ClientError + +sys.path.append(os.path.dirname(os.path.abspath(__file__))) + from s3_utils import get_s3_client, parse_s3_path, add_common_arguments, validate_args def remove_directory(destination, use_role=False, role_name=None, aws_access_key_id=None, aws_secret_access_key=None, endpoint_url=None, region=None): diff --git a/docker-image-worker/export.py b/docker-image-worker/export.py index 11dec94..18d61c0 100755 --- a/docker-image-worker/export.py +++ b/docker-image-worker/export.py @@ -1,7 +1,10 @@ #!/usr/bin/env python3 import os +import sys import argparse from botocore.exceptions import ClientError + +sys.path.append(os.path.dirname(os.path.abspath(__file__))) from s3_utils import get_s3_client, parse_s3_path, add_common_arguments, validate_args def transfer_file(source, destination, use_role=False, role_name=None, aws_access_key_id=None, aws_secret_access_key=None, endpoint_url=None, region=None):