Skip to content

Commit 0c1e96f

Browse files
authored
Split broker.image into separate repository and tag fields (#243)
- Separates broker.image into broker.image.repository and broker.image.tag - Bumps chart version to 6.0.0 (breaking change) - Updates renovate image matcher for new schema
1 parent c27293a commit 0c1e96f

6 files changed

Lines changed: 24 additions & 7 deletions

File tree

charts/pact-broker/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: pact-broker
33
description: The Pact Broker is an application for sharing for Pact contracts and verification results.
44
type: application
5-
version: 5.5.1
5+
version: 6.0.0
66
appVersion: 2.118.0
77
dependencies:
88
- name: common

charts/pact-broker/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pact-broker
22

3-
![Version: 5.5.1](https://img.shields.io/badge/Version-5.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.118.0](https://img.shields.io/badge/AppVersion-2.118.0-informational?style=flat-square)
3+
![Version: 6.0.0](https://img.shields.io/badge/Version-6.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.118.0](https://img.shields.io/badge/AppVersion-2.118.0-informational?style=flat-square)
44

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

@@ -122,7 +122,9 @@ helm upgrade -i <release_name> oci://ghcr.io/pact-foundation/pact-broker-chart/p
122122
| broker.containerSecurityContext.runAsNonRoot | Set Pact Broker container's Security Context runAsNonRoot | bool | `true` |
123123
| broker.containerSecurityContext.runAsUser | Set Pact Broker container's Security Context runAsUser | int | `1001` |
124124
| broker.extraContainers | Additional containers to add to the Pact Broker pods | list | `[]` |
125-
| broker.image | Pact Broker image url | string | `"ghcr.io/pact-foundation/pact-broker:2.137.0-pactbroker2.118.0"` |
125+
| broker.image | Pact Broker image configuration | object | `{"repository":"ghcr.io/pact-foundation/pact-broker","tag":"2.137.0-pactbroker2.118.0"}` |
126+
| broker.image.repository | Pact Broker image repository | string | `"ghcr.io/pact-foundation/pact-broker"` |
127+
| broker.image.tag | Pact Broker image tag | string | `"2.137.0-pactbroker2.118.0"` |
126128
| broker.imagePullPolicy | Specify a imagePullPolicy Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' more info [here](https://kubernetes.io/docs/user-guide/images/#pre-pulling-images) | string | `"IfNotPresent"` |
127129
| broker.imagePullSecrets | 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 | `[]` |
128130
| broker.labels | Additional labels that can be added to the Broker deployment | object | `{}` |
@@ -182,6 +184,10 @@ helm upgrade -i <release_name> oci://ghcr.io/pact-foundation/pact-broker-chart/p
182184

183185
## Configuration and Installation Details
184186

187+
### Image Configuration
188+
189+
> **⚠️ BREAKING CHANGE in v6.0.0:** `broker.image` is now an object with `repository` and `tag` sub-fields. The previous single-string format is still accepted for backward compatibility.
190+
185191
### Database Configuration
186192

187193
> **⚠️ BREAKING CHANGE in v4.0.0:** The bundled PostgreSQL subchart has been removed due to licensing changes. You must now provide your own PostgreSQL instance.

charts/pact-broker/README.md.gotmpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ helm upgrade -i <release_name> oci://ghcr.io/pact-foundation/pact-broker-chart/p
5656

5757
## Configuration and Installation Details
5858

59+
### Image Configuration
60+
61+
> **⚠️ BREAKING CHANGE in v6.0.0:** `broker.image` is now an object with `repository` and `tag` sub-fields. The previous single-string format is still accepted for backward compatibility.
62+
5963
### Database Configuration
6064

6165
> **⚠️ BREAKING CHANGE in v4.0.0:** The bundled PostgreSQL subchart has been removed due to licensing changes. You must now provide your own PostgreSQL instance.

charts/pact-broker/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ This allows us to not have image: .Values.xxxx.ssss/.Values.xxx.xxx:.Values.ssss
2929
in every single template.
3030
*/}}
3131
{{- define "broker.image" -}}
32+
{{- if kindIs "string" .Values.broker.image -}}
3233
{{- .Values.broker.image -}}
34+
{{- else -}}
35+
{{- printf "%s:%s" .Values.broker.image.repository .Values.broker.image.tag -}}
36+
{{- end -}}
3337
{{- end -}}
3438

3539
{{/*

charts/pact-broker/values.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Broker configuration
22
broker:
33

4-
# -- Pact Broker image url
5-
image: ghcr.io/pact-foundation/pact-broker:2.137.0-pactbroker2.118.0
4+
# -- Pact Broker image configuration
5+
image:
6+
# -- Pact Broker image repository
7+
repository: ghcr.io/pact-foundation/pact-broker
8+
# -- Pact Broker image tag
9+
tag: 2.137.0-pactbroker2.118.0
610

711
# -- Specify a imagePullPolicy
812
# Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'

renovate.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
"charts/pact-broker/values\\.yaml"
2424
],
2525
"matchStrings": [
26-
"image: ghcr\\.io/pact-foundation/pact-broker:(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+-pactbroker[0-9]+\\.[0-9]+\\.[0-9]+)"
26+
"repository:\\s*(?<depName>ghcr\\.io/pact-foundation/pact-broker)\\s*\\n(?:\\s*#.*\\n)*\\s*tag:\\s*(?<currentValue>[^\\s]+)"
2727
],
2828
"datasourceTemplate": "docker",
29-
"packageNameTemplate": "ghcr.io/pact-foundation/pact-broker",
3029
"versioningTemplate": "loose"
3130
}
3231
]

0 commit comments

Comments
 (0)