Skip to content

Commit

Permalink
feat(accessModes): make it a configurable parameter for chart PVCs (#82)
Browse files Browse the repository at this point in the history
* feat(accessModes): make it a configurable parameter for chart PVCs

* feat(a) bc

* Requested CHANGELOG and README changes
  • Loading branch information
jstewart612 authored Mar 29, 2021
1 parent c1face7 commit 3c9c5e7
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ numbering uses [semantic versioning](http://semver.org).

NOTE: The change log until version `v0.2.4` is auto-generated.

## [v5.2.0](https://github.com/puppetlabs/puppetserver-helm-chart/tree/v5.2.0) (2021-03-29)

- Add ability to change PVC accessModes.

## [v5.1.0](https://github.com/puppetlabs/puppetserver-helm-chart/tree/v5.1.0) (2021-02-07)

- Add ability to use custom PVCs.
Expand Down
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: puppetserver
version: 5.1.0
version: 5.2.0
appVersion: 6.12.1
description: Puppet automates the delivery and operation of software.
keywords: ["puppet", "puppetserver", "automation", "iac", "infrastructure", "cm", "ci", "cd"]
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ The following table lists the configurable parameters of the Puppetserver chart
| `tolerations`| Tolerations for pod assignment |``|
| `priorityClass`| Leverage a priorityClass to ensure your pods survive resource shortages |``|
| `podAnnotations`| Extra Pod annotations |``|
| `storage.accessModes`| Storage Access Modes (expects array) |`["ReadWriteOnce"]`|
| `storage.storageClass`| Storage Class |``|
| `storage.annotations`| Storage annotations |``|
| `storage.size`| PVCs Storage Size |`400Mi`|
Expand Down Expand Up @@ -339,3 +340,4 @@ kill %[job_numbers_above]
* [chwehrli](https://github.com/chwehrli), Contributor
* [Niels Højen](https://github.com/nielshojen), Contributor
* [Hryhorii Didenko](https://github.com/HryhoriiDidenko), Contributor
* [John Stewart](https://github.com/jstewart612), Contributor
2 changes: 1 addition & 1 deletion templates/puppetdb-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{- toYaml .Values.storage.accessModes | nindent 4 }}
resources:
requests:
storage: {{ .Values.storage.size | quote }}
Expand Down
2 changes: 1 addition & 1 deletion templates/puppetserver-code-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{- toYaml .Values.storage.accessModes | nindent 4 }}
resources:
requests:
storage: {{ .Values.storage.size | quote }}
Expand Down
2 changes: 1 addition & 1 deletion templates/puppetserver-data-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{- toYaml .Values.storage.accessModes | nindent 4 }}
resources:
requests:
storage: {{ .Values.storage.size | quote }}
Expand Down
2 changes: 1 addition & 1 deletion templates/puppetserver-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{- toYaml .Values.storage.accessModes | nindent 4 }}
resources:
requests:
storage: {{ .Values.storage.size | quote }}
Expand Down
4 changes: 2 additions & 2 deletions templates/puppetserver-statefulset-compilers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ spec:
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{- toYaml .Values.storage.accessModes | nindent 10 }}
resources:
requests:
storage: "{{ .Values.storage.size }}"
Expand All @@ -343,7 +343,7 @@ spec:
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{- toYaml .Values.storage.accessModes | nindent 10 }}
resources:
requests:
storage: "{{ .Values.storage.size }}"
Expand Down
4 changes: 4 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,10 @@ podAnnotations: {}
## Storage Configuration
##
storage:
## Puppet Server data Persistent Volume Access Modes
## Be sure your chosen Storage Class below allows this Access Mode
accessModes:
- ReadWriteOnce
## Puppet Server data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
Expand Down

0 comments on commit 3c9c5e7

Please sign in to comment.