Skip to content

Commit

Permalink
feat: allow for configuring of revisionHistoryLimit (#25)
Browse files Browse the repository at this point in the history
- bumps pact broker app version
  • Loading branch information
knechtionscoding authored Jan 21, 2023
1 parent e5374b8 commit e4b31e8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/pact-broker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: pact-broker
description: The Pact Broker is an application for sharing for Pact contracts and verification results.
type: application
version: 0.4.2
version: 0.5.0
appVersion: 2.105.0.1
dependencies:
- condition: postgresql.enabled
Expand Down
10 changes: 5 additions & 5 deletions charts/pact-broker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pact-broker

![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.100.0.1](https://img.shields.io/badge/AppVersion-2.100.0.1-informational?style=flat-square)
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.105.0.1](https://img.shields.io/badge/AppVersion-2.105.0.1-informational?style=flat-square)

The Pact Broker is an application for sharing for Pact contracts and verification results.

Expand Down Expand Up @@ -110,10 +110,10 @@ helm install pact-broker pact-broker/pact-broker
| broker.resources.limits.memory | | string | `"1024Mi"` |
| broker.resources.requests.cpu | | string | `"100m"` |
| broker.resources.requests.memory | | string | `"512Mi"` |
| broker.revisionHistoryLimit | Number of Deployment Revisions to set | int | `10` |
| broker.tolerations | Pact Broker [Tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) | list | `[]` |
| broker.volumes | [Kubernetes Volumes](https://kubernetes.io/docs/concepts/storage/volumes/) | list | `[]` |
| broker.volumeMounts | [Kubernetes Volumes](https://kubernetes.io/docs/concepts/storage/volumes/) | list | `[]` |
| externalDatabase.config | External Database Configuration | object | `{"adapter":"","auth":{"existingSecret":"","existingSecretPasswordKey":"user-password","password":"","username":""},"databaseName":"","host":"","port":""}` |
| broker.volumeMounts | | list | `[]` |
| broker.volumes | | list | `[]` |
| externalDatabase.config.adapter | Database engine to use. Only allowed values are `postgres` or `sqlite`. More info [here](https://docs.pact.io/pact_broker/docker_images/pactfoundation#getting-started) | string | `""` |
| externalDatabase.config.auth.existingSecret | Name of an existing Kubernetes secret containing the database credentials | string | `""` |
| externalDatabase.config.auth.existingSecretPasswordKey | The key to which the password will be stored under within existing secret. | string | `"user-password"` |
Expand All @@ -127,7 +127,7 @@ helm install pact-broker pact-broker/pact-broker
| image.pullSecrets | Array of imagePullSecrets to allow pulling the Pact Broker image from private registries. PS: Secret's must exist in the namespace to which you deploy the Pact Broker. more info [here](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) Example: pullSecrets: - mySecretName | list | `[]` |
| image.registry | Pact Broker image registry | string | `"docker.io"` |
| image.repository | Pact Broker image repository | string | `"pactfoundation/pact-broker"` |
| image.tag | Pact Broker image tag (immutable tags are recommended) | string | `"2.100.0.1"` |
| image.tag | Pact Broker image tag (immutable tags are recommended) | string | `"2.105.0.1"` |
| ingress.annotations | ingress.annotations Additional annotations for the Ingress resource | object | `{}` |
| ingress.className | ingress.className Name of the IngressClass cluster resource which defines which controller will implement the resource (e.g nginx) | string | `""` |
| ingress.enabled | ingress.enabled Enable the creation of the ingress resource | bool | `true` |
Expand Down
3 changes: 3 additions & 0 deletions charts/pact-broker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
replicas: {{ .Values.broker.replicaCount }}
{{- if .Values.broker.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.broker.revisionHistoryLimit}}
{{- end }}
selector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down
6 changes: 5 additions & 1 deletion charts/pact-broker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ broker:
# -- Additional annotations that can be added to the Broker deployment
annotations: {}

# -- Number of Pact Broker replicas to deploy
# -- (int) Number of Pact Broker replicas to deploy
replicaCount: 1

# -- Number of Deployment Revisions to set
revisionHistoryLimit: 10

# Container port configuration
containerPorts:

Expand Down Expand Up @@ -486,6 +489,7 @@ serviceAccount:
# If not set and `serviceAccount.create` is true, a name is generated
name: broker-sa


# -- Additional custom labels to the service ServiceAccount.
labels: {}

Expand Down

0 comments on commit e4b31e8

Please sign in to comment.