Uploaded image for project: 'Server Deployments and Scale'
  1. Server Deployments and Scale
  2. SCALE-159

Add storageClassName for PersistentVolume in Bitbucket Helm Chart

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

       

      Problem definition

      While deploying our Bitbucket instance to Kubernetes, we identified an issue with the sharedHome section of the values.yaml file under the Bitbucket Helm chart. Specifically, the persistentVolume section does not contain a storageClassName field, unlike the persistentVolumeClaim, which automatically sets the storageClassName.

      As a result, when deploying Bitbucket, the PersistentVolumeClaim (shared-home) remains in the Pending state until its corresponding PersistentVolume is manually assigned to the same storageClassName as the PersistentVolumeClaim. This situation causes an inconsistency between the persistentVolume and persistentVolumeClaim.

      Suggested Solution

      Can we add an additional line to the Helm chart, right under persistentVolume, to assign a storageClassName, just as we are doing for persistentVolumeClaim? This would ensure consistency between both resources and avoid the need for manual intervention.

      Current config:

      sharedHome:
        persistentVolume:
          create: true
          nfs:
            server: "<NFS Server>"
            path: "<NFS Path>"
            mountOptions: []
        persistentVolumeClaim:
          create: true
          storageClassName: <StorageClass name>
      

      Proposed Configuration:

      sharedHome:
        persistentVolume:
          create: true
          storageClassName: <StorageClass name>  # Add this line
          nfs:
            server: "<NFS Server>"
            path: "<NFS Path>"
            mountOptions: []
        persistentVolumeClaim:
          create: true
          storageClassName: <StorageClass name>
      

              Unassigned Unassigned
              feeaafc2eddb Mohamed Ayman (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: