Missing `helm dependency update` in Helm Chart for OSDU on Azure
Description:
The current instructions for deploying Helm charts do not include the essential step of updating dependencies using helm dependency update
. This omission results in errors during chart deployment because dependencies are missing.
Details: When attempting to deploy Helm charts using the provided instructions, the following error occurs:
Error: An error occurred while checking for chart dependencies. You may need to run `helm dependency build` to fetch missing dependencies: found in Chart.yaml, but missing in charts/ directory: unit, crs-catalog, crs-conversion, osdu-helm-library
Strangely enough I do not remember having that problem during the previous installation so I may assume that something changed in the code or my execution was a bit different. Nevertheless adding dep update should not break anything but instead add some quality to the instructions.
Expected Behavior: The Helm chart should deploy successfully without dependency errors.
Actual Behavior: The deployment fails due to missing chart dependencies.
Steps to Reproduce:
- Follow the provided instructions to deploy Helm charts.
- Observe the error indicating missing chart dependencies.
Suggested Fix:
Include the helm dependency update
command before each helm upgrade
command in the instructions:
# Ensure your context is set.
az aks get-credentials -n <your kubernetes service> --admin -g <resource group>
# Create Namespace
NAMESPACE=osdu-azure
kubectl create namespace $NAMESPACE && kubectl label namespace $NAMESPACE istio-injection=enabled
# Update dependencies and install charts
helm dependency update osdu-azure/osdu-partition_base
helm upgrade -i partition-services osdu-azure/osdu-partition_base -n $NAMESPACE -f osdu_azure_custom_values.yaml
helm dependency update osdu-azure/osdu-opa
helm upgrade -i opa osdu-azure/osdu-opa -n $NAMESPACE -f osdu_azure_custom_values.yaml --set global.replicaCount=3
helm dependency update osdu-azure/osdu-security_compliance
helm upgrade -i security-services osdu-azure/osdu-security_compliance -n $NAMESPACE -f osdu_azure_custom_values.yaml
helm dependency update osdu-azure/osdu-core_services
helm upgrade -i core-services osdu-azure/osdu-core_services -n $NAMESPACE -f osdu_azure_custom_values.yaml
helm dependency update osdu-azure/osdu-reference_helper
helm upgrade -i reference-services osdu-azure/osdu-reference_helper -n $NAMESPACE -f osdu_azure_custom_values.yaml
helm dependency update osdu-azure/osdu-ingest_enrich
helm upgrade -i ingest-services osdu-azure/osdu-ingest_enrich -n $NAMESPACE -f osdu_azure_custom_values.yaml