Skip to content

Commit

Permalink
Fixes for "nodeSelectors", "tolerations" and "affinity".
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtigyro committed Oct 24, 2019
1 parent 17f624d commit f365605
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion 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.0
version: 0.3.1
appVersion: 6.7.1
keywords: ["puppet", "puppetserver", "automation", "iac", "infrastructure", "cm", "ci", "cd"]
home: https://puppet.com/
Expand Down
6 changes: 3 additions & 3 deletions templates/postgres-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ spec:
name: postgres-custom-extensions
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{ toYaml .Values.nodeSelector | nindent 10 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{ toYaml .Values.affinity | nindent 10 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations| indent 8 }}
{{ toYaml .Values.tolerations| nindent 10 }}
{{- end }}
8 changes: 4 additions & 4 deletions templates/puppetboard-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ spec:
ports:
- name: puppetboard
containerPort: 8000
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{ toYaml .Values.nodeSelector | nindent 10 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{ toYaml .Values.affinity | nindent 10 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations| indent 8 }}
{{ toYaml .Values.tolerations| nindent 10 }}
{{- end }}
{{- end }}
6 changes: 3 additions & 3 deletions templates/puppetdb-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ spec:
claimName: puppetdb-claim
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{ toYaml .Values.nodeSelector | nindent 10 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{ toYaml .Values.affinity | nindent 10 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations| indent 8 }}
{{ toYaml .Values.tolerations| nindent 10 }}
{{- end }}
6 changes: 3 additions & 3 deletions templates/puppetserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ spec:
{{- end -}}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{ toYaml .Values.nodeSelector | nindent 10 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{ toYaml .Values.affinity | nindent 10 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations| indent 8 }}
{{ toYaml .Values.tolerations| nindent 10 }}
{{- end }}
8 changes: 4 additions & 4 deletions templates/r10k-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ spec:
secretName: {{ template "r10k.secret" . }}
defaultMode: 288 # = mode 0440
{{- end -}}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{ toYaml .Values.nodeSelector | nindent 14 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{ toYaml .Values.affinity | nindent 14 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations| indent 8 }}
{{ toYaml .Values.tolerations| nindent 14 }}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ hiera:
eyaml:
## A multi-line string
##
private_key: # |-
private_key: # |
# PRIV_KEY CONTENTS
## A multi-line string
##
public_key: # |-
public_key: # |
# PUB_KEY CONTENTS

0 comments on commit f365605

Please sign in to comment.