Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Add PV/PVC Selector.
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Hadzhiev <miroslav.hadzhiev@gmail.com>
  • Loading branch information
Xtigyro committed Oct 30, 2019
1 parent 4898a56 commit a09c244
Show file tree
Hide file tree
Showing 12 changed files with 243 additions and 340 deletions.
6 changes: 6 additions & 0 deletions stable/puppetserver/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ numbering uses [semantic versioning](http://semver.org).

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

## [v0.3.5](https://github.com/Xtigyro/puppetserver-helm-chart/tree/v0.3.5) (2019-10-31)
- Add Optional `selector` for PVs/PVCs.
- Switch to Apache v2.0 License.

[Full Changelog](https://github.com/Xtigyro/puppetserver-helm-chart/compare/v0.3.4...v0.3.5)

## [v0.3.4](https://github.com/Xtigyro/puppetserver-helm-chart/tree/v0.3.4) (2019-10-28)
- Add Ingress.
- Improve Tmpl Helpers.
Expand Down
2 changes: 1 addition & 1 deletion stable/puppetserver/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Puppet automates the delivery and operation of software.
name: puppetserver
version: 0.3.4
version: 0.3.5
appVersion: 6.7.1
keywords: ["puppet", "puppetserver", "automation", "iac", "infrastructure", "cm", "ci", "cd"]
home: https://puppet.com/
Expand Down
540 changes: 201 additions & 339 deletions stable/puppetserver/LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions stable/puppetserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Parameter | Description | Default
`priorityClass`| Leverage a priorityClass to ensure your pods survive resource shortages |``
`podAnnotations`| Extra Pod annotations |``
`storage.storageClass`| Storage Class |``
`storage.selector`| PVs/PVCs Selector Config |`false`
`storage.annotations`| Storage annotations |``
`storage.size`| PVCs Storage Size |`100Mi`

Expand Down
5 changes: 5 additions & 0 deletions stable/puppetserver/templates/hiera-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.hiera.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
5 changes: 5 additions & 0 deletions stable/puppetserver/templates/postgres-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.postgres.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
5 changes: 5 additions & 0 deletions stable/puppetserver/templates/puppetdb-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.puppetdb.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
5 changes: 5 additions & 0 deletions stable/puppetserver/templates/puppetserver-code-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.puppetserver.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
5 changes: 5 additions & 0 deletions stable/puppetserver/templates/puppetserver-data-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.puppetserver.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
5 changes: 5 additions & 0 deletions stable/puppetserver/templates/puppetserver-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ metadata:
{{ toYaml .Values.storage.annotations | nindent 4 }}
{{- end }}
spec:
{{- if .Values.storage.selector }}
selector:
matchLabels:
{{- include "puppetserver.puppetserver.matchLabels" . | nindent 6 }}
{{- end }}
accessModes:
- ReadWriteOnce
resources:
Expand Down
3 changes: 3 additions & 0 deletions stable/puppetserver/templates/r10k-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
labels:
{{- include "puppetserver.r10k.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "puppetserver.r10k.matchLabels" . | nindent 6 }}
schedule: "{{.Values.r10k.cronJob.schedule}}"
jobTemplate:
spec:
Expand Down
1 change: 1 addition & 0 deletions stable/puppetserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,6 @@ storage:
## GKE, AWS & OpenStack)
##
storageClass: ""
selector: false
annotations: {}
size: 100Mi

0 comments on commit a09c244

Please sign in to comment.