-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move atlantis-data volume to a separate PVC #304
Merged
GMartinez-Sisti
merged 16 commits into
runatlantis:main
from
BrunoTarijon:remove_data_volume_from_sts
Mar 6, 2024
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
93e5174
Move atlantis-data volume to a separate PVC
BrunoTarijon 4f45ac7
Merge branch 'main' into remove_data_volume_from_sts
jamengual d1f9d6e
Merge branch 'main' into remove_data_volume_from_sts
BrunoTarijon 8f29cc5
Merge branch 'main' into remove_data_volume_from_sts
jamengual f56c4ca
bump chart version
BrunoTarijon c1ec397
Merge branch 'main' into remove_data_volume_from_sts
BrunoTarijon b8d19f4
change access mode to ReadWriteMany
BrunoTarijon 282922a
Bump chart version
BrunoTarijon 1bc3097
merge main
BrunoTarijon 50af23c
Add custom access modes to pvc
BrunoTarijon 85d13f2
Add volumeClaim.accessModes in jsonSchema
BrunoTarijon c314993
Fix jsonSchema missing comma
BrunoTarijon 1b59c27
Merge branch 'main' into remove_data_volume_from_sts
BrunoTarijon 9355803
add unit tests
BrunoTarijon dfbd3bf
concatenate conditions
BrunoTarijon fad4e55
add volume in sts if pvc is created
BrunoTarijon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{- if and .Values.volumeClaim.enabled ( not .Values.dataStorage ) }} | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ template "atlantis.fullname" . }}-data | ||
labels: | ||
{{- include "atlantis.labels" . | nindent 2 }} | ||
spec: | ||
accessModes: {{ .Values.volumeClaim.accessModes| toYaml | nindent 2 }} | ||
resources: | ||
requests: | ||
# The biggest thing Atlantis stores is the Git repo when it checks it out. | ||
# It deletes the repo after the pull request is merged. | ||
storage: {{ .Values.volumeClaim.dataStorage }} | ||
{{- if .Values.volumeClaim.storageClassName }} | ||
storageClassName: {{ .Values.volumeClaim.storageClassName }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
suite: test pvc | ||
templates: | ||
- pvc.yaml | ||
chart: | ||
appVersion: test-appVersion | ||
release: | ||
name: my-release | ||
tests: | ||
- it: pvc | ||
template: pvc.yaml | ||
asserts: | ||
- isKind: | ||
of: PersistentVolumeClaim | ||
- equal: | ||
path: apiVersion | ||
value: v1 | ||
- equal: | ||
path: metadata.name | ||
value: my-release-atlantis-data | ||
- equal: | ||
path: spec.accessModes | ||
value: | ||
- ReadWriteOnce | ||
- equal: | ||
path: spec.resources.requests.storage | ||
value: 5Gi | ||
- it: accessModes | ||
template: pvc.yaml | ||
set: | ||
volumeClaim: | ||
accessModes: | ||
- ReadWriteMany | ||
asserts: | ||
- equal: | ||
path: spec.accessModes | ||
value: | ||
- ReadWriteMany | ||
- it: storage requests | ||
template: pvc.yaml | ||
set: | ||
volumeClaim: | ||
dataStorage: 10Gi | ||
asserts: | ||
- equal: | ||
path: spec.resources.requests.storage | ||
value: 10Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing the specific volume for each test.