Skip to content

Conversation

@danielscholl
Copy link
Collaborator

This pull request introduces several changes to improve Azure resource configurations, enhance Kubernetes storage management, and refine deployment scripts. Key updates include modifications to Bicep templates for Azure resource management, enhancements to Helm charts for Kubernetes storage volumes, and adjustments to deployment scripts for better flexibility. Below is a categorized summary of the most important changes:

Azure Resource Configuration Updates:

  • Updated the Cosmos DB API version in bicep/modules/cosmos-db/main.bicep to 2024-11-15 for compatibility with newer features.
  • Added a new module cosmosdb-sql-role-assignment.bicep to handle SQL role assignments for Cosmos DB accounts, enabling fine-grained access control.
  • Adjusted storage account settings in bicep/main.bicep to disable hierarchical namespaces (required for Airflow) and disallow shared key access for improved security.

Kubernetes Storage Enhancements:

  • Introduced a new Helm chart storage-volumes for creating Azure Blob-backed PersistentVolumes (PV) and PersistentVolumeClaims (PVC) in Kubernetes, with extensive configuration options. [1] [2] [3] [4] [5]
  • Refactored charts/osdu-developer-base/templates/storage-share-job.yaml to streamline PVC usage and improve file copying logic, including support for dynamic directory creation and file installation. [1] [2]

Deployment Script Improvements:

  • Added a new parameter ServiceManagementReference to scripts/pre-provision.ps1 for additional flexibility in specifying service management references during pre-provisioning.

These changes collectively enhance the security, maintainability, and flexibility of the infrastructure and deployment processes.

- Introduced a new Helm chart for managing Azure Blob-backed PersistentVolumes and PersistentVolumeClaims.
- Updated blade_configuration.bicep to include storage account name parameter.
- Modified main.bicep to remove unnecessary shares and include airflow logs and dags.
- Created values.yaml to define necessary parameters for the chart.
- Added pv.yaml and pvc.yaml templates for PersistentVolume and PersistentVolumeClaim resources.
- Removed outdated storage.yaml file.
@danielscholl danielscholl requested a review from Copilot May 1, 2025 23:24
@github-actions github-actions bot added documentation Improvements or additions to documentation infrastructure This includes infrastructure changes. software This includes software changes. labels May 1, 2025
@danielscholl danielscholl self-assigned this May 1, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to improve Azure resource configurations, Kubernetes storage management, and deployment script flexibility. Key changes include updates to Bicep templates for Cosmos DB and storage accounts, the addition of a new Helm chart for managing Azure Blob-backed persistent volumes and claims, and refinements to the storage share job in deployment scripts.

Reviewed Changes

Copilot reviewed 19 out of 27 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
software/applications/osdu-reference/unit.yaml Updated PVC name for unit service
software/applications/osdu-reference/crs-conversion.yaml Updated PVC name for CRS conversion service
software/applications/osdu-reference/crs-catalog.yaml Updated PVC name for CRS catalog service
charts/storage-volumes/README.md Added instructions for installing storage volumes Helm chart
charts/osdu-developer-base/values.yaml & templates/storage-share-job.yaml Adjustments to share job for better PVC referencing
Files not reviewed (8)
  • bicep/main.bicep: Language not supported
  • bicep/main.parameters.json: Language not supported
  • bicep/modules/blade_cluster.bicep: Language not supported
  • bicep/modules/blade_configuration.bicep: Language not supported
  • bicep/modules/blade_partition.bicep: Language not supported
  • bicep/modules/cosmos-db/main.bicep: Language not supported
  • bicep/modules/cosmosdb-sql-role-assignment.bicep: Language not supported
  • scripts/pre-provision.ps1: Language not supported
Comments suppressed due to low confidence (3)

software/applications/osdu-reference/unit.yaml:67

  • The PVC name 'share-unit' in this file might be inconsistent with the referenced PVC name in base.yaml ('share-unit-pvc'). Consider standardizing the naming convention to include the '-pvc' suffix if that is the intended pattern.
- name: share-unit

software/applications/osdu-reference/crs-catalog.yaml:67

  • The PVC name 'share-crs' appears to be inconsistent with the deployment reference 'share-crs-pvc' in base.yaml. Consider aligning the names to avoid potential mismatches.
- name: share-crs

software/applications/osdu-reference/crs-conversion.yaml:67

  • The PVC name 'share-crs-conversion' does not include the '-pvc' suffix as seen in base.yaml ('share-crs-conversion-pvc'). Standardizing this naming could prevent confusion during PVC lookups.
- name: share-crs-conversion

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@danielscholl danielscholl merged commit d771619 into main May 2, 2025
12 of 13 checks passed
@danielscholl danielscholl deleted the ssl-issue branch May 2, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure This includes infrastructure changes. software This includes software changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants