Skip to content

Commit

Permalink
feat: ability to run arbitrary sidecar extraContainers (#47)
Browse files Browse the repository at this point in the history
* feat: ability to run arbitrary sidecar extraContainers
* chore: bump chart version
---------

Signed-off-by: joshuasimon-taulia <20404891+joshuasimon-taulia@users.noreply.github.com>
  • Loading branch information
roulettedares authored Mar 14, 2023
1 parent 492335c commit 5981831
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 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.7.2
version: 0.8.0
appVersion: 2.105.0.1
dependencies:
- condition: postgresql.enabled
Expand Down
3 changes: 2 additions & 1 deletion charts/pact-broker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pact-broker

![Version: 0.7.1](https://img.shields.io/badge/Version-0.7.1-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)
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.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 @@ -146,6 +146,7 @@ helm upgrade -i <release_name> oci://ghcr.io/pact-foundation/pact-broker-chart/p
| broker.tolerations | Pact Broker [Tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) | list | `[]` |
| broker.volumeMounts | | list | `[]` |
| broker.volumes | | list | `[]` |
| broker.extraContainers | Additional containers to add to the Pact Broker pods | 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 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 @@ -248,6 +248,9 @@ spec:
path: /diagnostic/status/heartbeat
port: http
{{- end }}
{{- with .Values.broker.extraContainers }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- if .Values.broker.nodeSelector }}
nodeSelector:
{{- toYaml .Values.broker.nodeSelector | nindent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/pact-broker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,16 @@ broker:
# name: <VOLUME_NAME>
# readOnly: true

# -- Additional containers to add to the Pact Broker pods
extraContainers: []
# extraContainers:
# - name: cloudsql-proxy
# image: gcr.io/cloudsql-docker/gce-proxy:1.22.0
# command:
# - /cloud_sql_proxy
# - '-instances=my-project:my-zone:my-db-name=tcp:5432'
# - '-enable_iam_login'

# Service configuration
service:

Expand Down

0 comments on commit 5981831

Please sign in to comment.