chore(mlflow): just recipe format

This commit is contained in:
Masaki Yatsu
2025-11-09 15:52:04 +09:00
parent e803d3780b
commit d3f1e0143e

View File

@@ -300,7 +300,8 @@ install:
auth_db_uri="${auth_db_uri}" auth_db_uri="${auth_db_uri}"
kubectl delete secret mlflow-oidc-config -n ${MLFLOW_NAMESPACE} --ignore-not-found kubectl delete secret mlflow-oidc-config -n ${MLFLOW_NAMESPACE} --ignore-not-found
kubectl delete externalsecret mlflow-oidc-external-secret -n ${MLFLOW_NAMESPACE} --ignore-not-found kubectl delete externalsecret mlflow-oidc-external-secret -n ${MLFLOW_NAMESPACE} \
--ignore-not-found
export OIDC_CLIENT_SECRET="${oidc_client_secret}" export OIDC_CLIENT_SECRET="${oidc_client_secret}"
gomplate -f mlflow-oidc-external-secret.gomplate.yaml | kubectl apply -f - gomplate -f mlflow-oidc-external-secret.gomplate.yaml | kubectl apply -f -
@@ -324,9 +325,7 @@ install:
# Store in Vault for backup if available # Store in Vault for backup if available
if helm status vault -n ${K8S_VAULT_NAMESPACE} &>/dev/null; then if helm status vault -n ${K8S_VAULT_NAMESPACE} &>/dev/null; then
just vault::put "mlflow/oidc" \ just vault::put "mlflow/oidc" client_id="mlflow" client_secret="${oidc_client_secret}" \
client_id="mlflow" \
client_secret="${oidc_client_secret}" \
auth_db_uri="${auth_db_uri}" auth_db_uri="${auth_db_uri}"
fi fi
fi fi
@@ -336,13 +335,8 @@ install:
gomplate -f values.gomplate.yaml -o values.yaml gomplate -f values.gomplate.yaml -o values.yaml
echo "Installing MLflow Helm chart from Community Charts with OIDC..." echo "Installing MLflow Helm chart from Community Charts with OIDC..."
helm upgrade --cleanup-on-fail --install mlflow \ helm upgrade --cleanup-on-fail --install mlflow community-charts/mlflow \
community-charts/mlflow \ --version ${MLFLOW_CHART_VERSION} -n ${MLFLOW_NAMESPACE} --wait --timeout=10m -f values.yaml
--version ${MLFLOW_CHART_VERSION} \
-n ${MLFLOW_NAMESPACE} \
--wait \
--timeout=10m \
-f values.yaml
echo "" echo ""
echo "=== MLflow installed with OIDC authentication ===" echo "=== MLflow installed with OIDC authentication ==="
@@ -379,13 +373,8 @@ upgrade:
gomplate -f values.gomplate.yaml -o values.yaml gomplate -f values.gomplate.yaml -o values.yaml
echo "Upgrading MLflow Helm chart from Community Charts..." echo "Upgrading MLflow Helm chart from Community Charts..."
helm upgrade mlflow \ helm upgrade mlflow community-charts/mlflow \
community-charts/mlflow \ --version ${MLFLOW_CHART_VERSION} -n ${MLFLOW_NAMESPACE} --wait --timeout=10m -f values.yaml
--version ${MLFLOW_CHART_VERSION} \
-n ${MLFLOW_NAMESPACE} \
--wait \
--timeout=10m \
-f values.yaml
echo "MLflow upgraded successfully" echo "MLflow upgraded successfully"
echo "Access MLflow at: https://${MLFLOW_HOST}" echo "Access MLflow at: https://${MLFLOW_HOST}"
@@ -399,7 +388,8 @@ uninstall delete-db='true':
just delete-db-secret just delete-db-secret
just delete-s3-secret just delete-s3-secret
kubectl delete secret mlflow-oidc-config -n ${MLFLOW_NAMESPACE} --ignore-not-found kubectl delete secret mlflow-oidc-config -n ${MLFLOW_NAMESPACE} --ignore-not-found
kubectl delete externalsecret mlflow-oidc-external-secret -n ${MLFLOW_NAMESPACE} --ignore-not-found kubectl delete externalsecret mlflow-oidc-external-secret -n ${MLFLOW_NAMESPACE} \
--ignore-not-found
just delete-namespace just delete-namespace
if [ "{{ delete-db }}" = "true" ]; then if [ "{{ delete-db }}" = "true" ]; then
just postgres::delete-db mlflow || true just postgres::delete-db mlflow || true