Browse Source

chore(helm): add revisionHistoryLimit (#5175)

Parkhost 3 years ago
parent
commit
8dcbc18a3b
3 changed files with 3 additions and 0 deletions
  1. 1 0
      dev/helm/README.md
  2. 1 0
      dev/helm/templates/deployment.yaml
  3. 1 0
      dev/helm/values.yaml

+ 1 - 0
dev/helm/README.md

@@ -98,6 +98,7 @@ The following table lists the configurable parameters of the Wiki.js chart and t
 | `image.tag`                          | Wiki.js image tag                            | `latest`                                                      |
 | `image.tag`                          | Wiki.js image tag                            | `latest`                                                      |
 | `imagePullPolicy`                    | Image pull policy                           | `IfNotPresent`                                             |
 | `imagePullPolicy`                    | Image pull policy                           | `IfNotPresent`                                             |
 | `replicacount`                   | Amount of wiki.js service pods to run                   | `1`                                                        |
 | `replicacount`                   | Amount of wiki.js service pods to run                   | `1`                                                        |
+| `revisionHistoryLimit`                   | Total amount of revision history points                   | `10`                                        |
 | `resources.limits`               | wiki.js service resource limits                         | `nil`                               |
 | `resources.limits`               | wiki.js service resource limits                         | `nil`                               |
 | `resources.requests`             | wiki.js service resource requests                       | `nil`                               |
 | `resources.requests`             | wiki.js service resource requests                       | `nil`                               |
 | `nodeSelector`                   | Node labels for wiki.js pod assignment          | `{}`                                                       |
 | `nodeSelector`                   | Node labels for wiki.js pod assignment          | `{}`                                                       |

+ 1 - 0
dev/helm/templates/deployment.yaml

@@ -6,6 +6,7 @@ metadata:
     {{- include "wiki.labels" . | nindent 4 }}
     {{- include "wiki.labels" . | nindent 4 }}
 spec:
 spec:
   replicas: {{ .Values.replicaCount }}
   replicas: {{ .Values.replicaCount }}
+  revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
   selector:
   selector:
     matchLabels:
     matchLabels:
       {{- include "wiki.selectorLabels" . | nindent 6 }}
       {{- include "wiki.selectorLabels" . | nindent 6 }}

+ 1 - 0
dev/helm/values.yaml

@@ -3,6 +3,7 @@
 # Declare variables to be passed into your templates.
 # Declare variables to be passed into your templates.
 
 
 replicaCount: 1
 replicaCount: 1
+revisionHistoryLimit: 10
 
 
 image:
 image:
   repository: requarks/wiki
   repository: requarks/wiki