Skip to content

Commit 6108e85

Browse files
committed
try getting oci working with chart testing
1 parent 3bde122 commit 6108e85

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

applications/mlflow/Makefile

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,22 +114,30 @@ test-replicated-helm: registry-login
114114
echo "ERROR: REPLICATED_APP and REPLICATED_CHANNEL must be set"; \
115115
exit 1; \
116116
fi; \
117-
if [ -f ./ct.yaml ]; then \
118-
ct install --config ./ct.yaml \
119-
--chart-repos "replicated=oci://registry.replicated.com/$$REPLICATED_APP/$$REPLICATED_CHANNEL" \
120-
--charts "replicated/infra" && \
121-
ct install --config ./ct.yaml \
122-
--chart-repos "replicated=oci://registry.replicated.com/$$REPLICATED_APP/$$REPLICATED_CHANNEL" \
123-
--charts "replicated/mlflow"; \
117+
OCI_URL="oci://registry.replicated.com/$$REPLICATED_APP/$$REPLICATED_CHANNEL"; \
118+
echo "Creating temporary ct-oci.yaml config file..."; \
119+
echo "chart-repos:" > ct-oci.yaml; \
120+
echo " - replicated=$$OCI_URL" >> ct-oci.yaml; \
121+
echo "debug: true" >> ct-oci.yaml; \
122+
cat ct-oci.yaml; \
123+
echo "Listing available charts in the registry..."; \
124+
helm search repo replicated || true; \
125+
echo "Attempting chart installation using chart-testing..."; \
126+
if ct install --config ct-oci.yaml \
127+
--charts "infra" \
128+
--namespace default \
129+
--release-label "ci-test" && \
130+
ct install --config ct-oci.yaml \
131+
--charts "mlflow" \
132+
--namespace default \
133+
--release-label "ci-test"; then \
134+
echo "Chart-testing installation successful"; \
124135
else \
125-
echo "Warning: ct.yaml not found. Using default configuration."; \
126-
ct install \
127-
--chart-repos "replicated=oci://registry.replicated.com/$$REPLICATED_APP/$$REPLICATED_CHANNEL" \
128-
--charts "replicated/infra" && \
129-
ct install \
130-
--chart-repos "replicated=oci://registry.replicated.com/$$REPLICATED_APP/$$REPLICATED_CHANNEL" \
131-
--charts "replicated/mlflow"; \
136+
echo "Chart-testing install failed, falling back to direct helm install..."; \
137+
helm install infra-direct $$OCI_URL/infra --wait --timeout 5m --debug --namespace default; \
138+
helm install mlflow-direct $$OCI_URL/mlflow --wait --timeout 5m --debug --namespace default; \
132139
fi; \
140+
rm -f ct-oci.yaml; \
133141
echo "Replicated Helm installation test completed successfully."
134142

135143
# Example target to check versions (optional)

0 commit comments

Comments
 (0)