Skip to content

Commit 4ad79ae

Browse files
Don't copy entire helm_chart dir, just copy CRDs
1 parent 40bca62 commit 4ad79ae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker/mongodb-kubernetes-tests/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ WORKDIR /tests
8181

8282
# copying the test files after python build, otherwise pip install will be called each time the tests change
8383
COPY . /tests
84-
# copying the helm_chart directory as well to support installation of the Operator from the test application
85-
COPY helm_chart /helm_chart
84+
# copying the helm_chart/crds directory so that we can install CRDs before installing the operator helm chart to run a test.
85+
# operator is installed via published OCI helm repo and not the local helm repo.
86+
COPY helm_chart/crds /helm_chart/crds
8687
COPY release.json /release.json
8788
# we use the public directory to automatically test resources samples
8889
COPY public /mongodb-kubernetes/public

scripts/publish_helm_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def publish_helm_chart():
7070
logger.info(f"\nCleaning up local file: {tgz_filename}")
7171
os.remove(tgz_filename)
7272

73-
logger(f"Helm Chart {chart_name}:{chart_version} was published successfully!")
73+
logger.info(f"Helm Chart {chart_name}:{chart_version} was published successfully!")
7474
except (FileNotFoundError, RuntimeError, ValueError) as e:
7575
logger.error(f"\Failed publishing the helm chart: {e}")
7676

0 commit comments

Comments
 (0)