Fixup on the worker code / imports.

This commit is contained in:
2024-09-11 12:31:27 +01:00
parent 33c87f39b0
commit bbb41681df
5 changed files with 11 additions and 4 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+4
View File
@@ -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):
+3
View File
@@ -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):