Skip to content

Commit

Permalink
Merge pull request #17 from companyinfo/add-revision-history-limit-su…
Browse files Browse the repository at this point in the history
…pport

Add custom deployment .spec.revisionHistoryLimit support
  • Loading branch information
p-afraz authored Jul 25, 2023
2 parents 7176586 + f764839 commit 3c40d82
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions charts/helmet/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 2.2.2
digest: sha256:76e63a2ff3b4cb7676c9fc2a5c36d5c0d9564b5fe96a4ec7dcc53c2a73e723de
generated: "2023-01-03T00:57:41.079773012+01:00"
version: 2.6.0
digest: sha256:b729437099044744a7ed5decf9e458569558e9a7a1f084bba521fd0edc084fd4
generated: "2023-07-25T12:04:37.195150444+02:00"
6 changes: 3 additions & 3 deletions charts/helmet/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: helmet
description: Helmet is a library Helm Chart for grouping common logics. This chart is not deployable by itself.
home: https://github.com/companyinfo/helm-charts/blob/main/charts/helmet
type: library
version: "0.7.0"
appVersion: "0.7.0"
version: "0.8.0"
appVersion: "0.8.0"
keywords:
- common
- helper
Expand All @@ -15,5 +15,5 @@ maintainers:
url: https://company.info
dependencies:
- name: common
version: "2.2.2"
version: "2.6.0"
repository: "https://charts.bitnami.com/bitnami"
1 change: 1 addition & 0 deletions charts/helmet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ $ helm install nginx .
| Name | Description | Value |
|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------|
| `replicaCount` | Number of APP replicas | `1` |
| `revisionHistoryLimit` | The number of old history to retain to allow rollback | `10` |
| `ports` | List of ports to expose from the container | `[{"name": "http", "containerPort": "8080", "protocol": "TCP"}]` |
| `livenessProbe.enabled` | Enable livenessProbe on APP container (only main container) | `false` |
| `readinessProbe.enabled` | Enable readinessProbe on APP container (only main container) | `false` |
Expand Down
1 change: 1 addition & 0 deletions charts/helmet/templates/_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
{{- if .Values.updateStrategy }}
Expand Down
4 changes: 4 additions & 0 deletions charts/helmet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ exports:
##
replicaCount: 1

## @param revisionHistoryLimit The number of old history to retain to allow rollback
##
revisionHistoryLimit: 10

## List of ports to expose from the container.
## ref: https://kubernetes.io/docs/concepts/services-networking/connect-applications-service
##
Expand Down

0 comments on commit 3c40d82

Please sign in to comment.