Skip to content

Commit

Permalink
Added pvc retention policy to Bitbucket Mesh StatefulSet (#755)
Browse files Browse the repository at this point in the history
* Added pvc retention policy to Bitbucket Mesh StatefulSet.

* Updated Helm docs version in 'Update LTS tag' Github Action.
  • Loading branch information
yzha645 authored Feb 5, 2024
1 parent 874f570 commit 737d6e7
Show file tree
Hide file tree
Showing 11 changed files with 934 additions and 931 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-lts-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install Helm Docs
uses: envoy/install-helm-docs@v1.0.0
with:
version: 1.11.0
version: 1.12.0

- name: Configure Git
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/norwoodj/helm-docs
rev: v1.2.0
rev: v1.12.0
hooks:
- id: helm-docs
args:
Expand Down
89 changes: 44 additions & 45 deletions src/main/charts/bamboo-agent/README.md

Large diffs are not rendered by default.

337 changes: 167 additions & 170 deletions src/main/charts/bamboo/README.md

Large diffs are not rendered by default.

429 changes: 214 additions & 215 deletions src/main/charts/bitbucket/README.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/main/charts/bitbucket/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@ volumeClaimTemplates:
{{- define "bitbucket.mesh.volumeClaimTemplates" -}}
{{- if .Values.bitbucket.mesh.volume.create }}
{{- if and .Values.bitbucket.mesh.volume.persistentVolumeClaimRetentionPolicy.whenDeleted .Values.bitbucket.mesh.volume.persistentVolumeClaimRetentionPolicy.whenScaled }}
persistentVolumeClaimRetentionPolicy:
whenDeleted: {{.Values.bitbucket.mesh.volume.persistentVolumeClaimRetentionPolicy.whenDeleted}}
whenScaled: {{.Values.bitbucket.mesh.volume.persistentVolumeClaimRetentionPolicy.whenScaled}}
{{- end}}
volumeClaimTemplates:
- metadata:
name: mesh-home
Expand Down
3 changes: 3 additions & 0 deletions src/main/charts/bitbucket/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,9 @@ bitbucket:
storage: 1Gi
storageClass:
mountPath: "/var/atlassian/application-data/mesh"
persistentVolumeClaimRetentionPolicy:
whenDeleted:
whenScaled:

# -- Defines any additional environment variables to be passed to the Bitbucket mesh containers.
#
Expand Down
401 changes: 200 additions & 201 deletions src/main/charts/confluence/README.md

Large diffs are not rendered by default.

283 changes: 141 additions & 142 deletions src/main/charts/crowd/README.md

Large diffs are not rendered by default.

311 changes: 155 additions & 156 deletions src/main/charts/jira/README.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/test/resources/expected_helm_output/bitbucket/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ data:
volume:
create: true
mountPath: /var/atlassian/application-data/mesh
persistentVolumeClaimRetentionPolicy:
whenDeleted: null
whenScaled: null
resources:
requests:
storage: 1Gi
Expand Down

0 comments on commit 737d6e7

Please sign in to comment.