Skip to content

Commit 68b85d6

Browse files
author
Frederic Spiers
committed
Merge commit '64bc0ac' into fspiers/ENT-3334/incremental-sync-batch-2
2 parents 76f07cf + 64bc0ac commit 68b85d6

File tree

98 files changed

+853
-166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+853
-166
lines changed

.github/workflows/generate-schema-gitguardian.yaml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Generate values.schema.json GitGuardian"
1+
name: "Generate values.schema.json"
22

33
on:
44
push:
@@ -29,6 +29,8 @@ jobs:
2929
generate-schema:
3030
runs-on: ubuntu-latest
3131
timeout-minutes: 15
32+
# Skip if the commit was made by github-actions bot to prevent infinite loops
33+
if: github.actor != 'github-actions[bot]'
3234
permissions:
3335
contents: write
3436
pull-requests: write
@@ -45,7 +47,7 @@ jobs:
4547
python-version: '3.11'
4648

4749
- name: Set up Helm
48-
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
50+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
4951
with:
5052
version: 'v3.19.2'
5153

@@ -214,27 +216,48 @@ jobs:
214216
echo " has_changes: ${{ steps.check-changes.outputs.has_changes }}"
215217
echo " Should commit to main: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' && steps.check-changes.outputs.has_changes == 'true' }}"
216218
217-
- name: Commit and push schema updates (push to main)
219+
- name: Create PR for schema updates (push to main)
218220
if: |
219221
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
220222
github.ref == 'refs/heads/main' &&
221223
steps.check-changes.outputs.has_changes == 'true'
224+
env:
225+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
222226
run: |
223227
git config user.name 'github-actions[bot]'
224228
git config user.email 'github-actions[bot]@users.noreply.github.com'
225229
230+
# Create a new branch for the schema updates
231+
BRANCH_NAME="auto/schema-update-$(date +%s)"
232+
git checkout -b "$BRANCH_NAME"
233+
226234
git add charts/*/values.schema.json
227235
228236
git commit -m "chore: auto-generate values.schema.json for updated charts" \
229237
-m "Automatically generated JSON schemas for Helm values files." \
230238
-m "" \
231239
-m "Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
232240
233-
# Pull latest changes and rebase
234-
git pull --rebase origin main
241+
# Push the branch
242+
git push origin "$BRANCH_NAME"
243+
244+
# Create a pull request
245+
gh pr create \
246+
--title "chore: auto-generate values.schema.json" \
247+
--body "This PR contains automatically generated JSON schemas for Helm values files.
248+
249+
## Changes
250+
- Auto-generated \`values.schema.json\` files for charts with updated \`values.yaml\`
251+
252+
## Notes
253+
- This PR was automatically created by the schema generation workflow
254+
- Please review and merge if the changes look correct
255+
- The workflow will not run again on this bot's commits to prevent loops
235256
236-
# Push changes
237-
git push origin main
257+
---
258+
🤖 Generated by [generate-schema workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" \
259+
--base main \
260+
--head "$BRANCH_NAME"
238261
239262
- name: Commit schema updates to PR branch
240263
if: |

.github/workflows/generate-schema.yaml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
generate-schema:
3030
runs-on: ubuntu-latest
3131
timeout-minutes: 15
32+
# Skip if the commit was made by github-actions bot to prevent infinite loops
33+
if: github.actor != 'github-actions[bot]'
3234
permissions:
3335
contents: write
3436
pull-requests: write
@@ -37,7 +39,7 @@ jobs:
3739
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3840
with:
3941
fetch-depth: 0
40-
token: ${{ secrets.GITHUB_TOKEN }}
42+
token: ${{ secrets.CHANGELOG_PAT }}
4143

4244
- name: Set up Python
4345
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
@@ -214,27 +216,48 @@ jobs:
214216
echo " has_changes: ${{ steps.check-changes.outputs.has_changes }}"
215217
echo " Should commit to main: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' && steps.check-changes.outputs.has_changes == 'true' }}"
216218
217-
- name: Commit and push schema updates (push to main)
219+
- name: Create PR for schema updates (push to main)
218220
if: |
219221
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
220222
github.ref == 'refs/heads/main' &&
221223
steps.check-changes.outputs.has_changes == 'true'
224+
env:
225+
GH_TOKEN: ${{ secrets.CHANGELOG_PAT }}
222226
run: |
223227
git config user.name 'github-actions[bot]'
224228
git config user.email 'github-actions[bot]@users.noreply.github.com'
225229
230+
# Create a new branch for the schema updates
231+
BRANCH_NAME="auto/schema-update-$(date +%s)"
232+
git checkout -b "$BRANCH_NAME"
233+
226234
git add charts/*/values.schema.json
227235
228236
git commit -m "chore: auto-generate values.schema.json for updated charts" \
229237
-m "Automatically generated JSON schemas for Helm values files." \
230238
-m "" \
231239
-m "Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
232240
233-
# Pull latest changes and rebase
234-
git pull --rebase origin main
241+
# Push the branch
242+
git push origin "$BRANCH_NAME"
243+
244+
# Create a pull request
245+
gh pr create \
246+
--title "chore: auto-generate values.schema.json" \
247+
--body "This PR contains automatically generated JSON schemas for Helm values files.
248+
249+
## Changes
250+
- Auto-generated \`values.schema.json\` files for charts with updated \`values.yaml\`
251+
252+
## Notes
253+
- This PR was automatically created by the schema generation workflow
254+
- Please review and merge if the changes look correct
255+
- The workflow will not run again on this bot's commits to prevent loops
235256
236-
# Push changes
237-
git push origin main
257+
---
258+
🤖 Generated by [generate-schema workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" \
259+
--base main \
260+
--head "$BRANCH_NAME"
238261
239262
- name: Commit schema updates to PR branch
240263
if: |

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
type: boolean
1313
default: false
1414

15+
concurrency:
16+
group: release
17+
cancel-in-progress: true
18+
1519
jobs:
1620
release:
1721
permissions:

charts/clusterpirate/Chart.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dependencies:
2+
- name: common
3+
repository: oci://registry-1.docker.io/cloudpirates
4+
version: 2.0.0
5+
- name: valkey
6+
repository: oci://registry-1.docker.io/cloudpirates
7+
version: 0.7.0
8+
digest: sha256:0429787cff01e5cb9381e674cadd6338ba4f44a9df0069191c5cd8c2088324da
9+
generated: "2025-10-26T20:38:30.610019199Z"

charts/clusterpirate/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: clusterpirate
33
description: Client agent for the CloudPirates Managed Observability Platform to connect your Kubernetes cluster to our infrastructure
44
type: application
5-
version: 1.2.2
5+
version: 1.2.5
66
appVersion: "1.0.1"
77
keywords:
88
- kubernetes
@@ -22,7 +22,7 @@ dependencies:
2222
version: "2.x.x"
2323
repository: oci://registry-1.docker.io/cloudpirates
2424
- name: valkey
25-
version: "0.6.1"
25+
version: "0.7.0"
2626
repository: oci://registry-1.docker.io/cloudpirates
2727
condition: valkey.enabled
2828
icon: https://a.storyblok.com/f/143071/512x512/88dc07809a/cluster-pirate-logo.svg

charts/etcd/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: etcd
33
description: etcd is a distributed reliable key-value store for the most critical data of a distributed system
44
type: application
5-
version: 0.2.2
5+
version: 0.2.3
66
appVersion: "3.6.5"
77
keywords:
88
- etcd

charts/etcd/templates/networkpolicy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
{{- include "etcd.labels" . | nindent 4 }}
9+
{{- with (include "etcd.annotations" .) }}
10+
annotations:
11+
{{- . | indent 4 }}
12+
{{- end }}
913
spec:
1014
podSelector:
1115
matchLabels:

charts/etcd/templates/poddisruptionbudget.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
{{- include "etcd.labels" . | nindent 4 }}
9+
{{- with (include "etcd.annotations" .) }}
10+
annotations:
11+
{{- . | indent 4 }}
12+
{{- end }}
913
spec:
1014
{{- if .Values.podDisruptionBudget.minAvailable }}
1115
minAvailable: {{ .Values.podDisruptionBudget.minAvailable | quote }}

charts/etcd/templates/service.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ metadata:
55
namespace: {{ .Release.Namespace }}
66
labels:
77
{{- include "etcd.labels" . | nindent 4 }}
8-
{{- with .Values.service.annotations }}
9-
annotations:
10-
{{- toYaml . | nindent 4 }}
8+
{{- if or (include "etcd.annotations" .) .Values.service.annotations }}
9+
annotations:
10+
{{- (include "etcd.annotations" .) | indent 4 }}
11+
{{- if .Values.service.annotations }}
12+
{{ toYaml .Values.service.annotations | indent 4 }}
13+
{{- end }}
1114
{{- end }}
1215
spec:
1316
type: {{ .Values.service.type }}

charts/etcd/templates/serviceaccount.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
{{- include "etcd.labels" . | nindent 4 }}
9-
{{- with .Values.serviceAccount.annotations }}
9+
{{- if or (include "etcd.annotations" .) .Values.serviceAccount.annotations }}
1010
annotations:
11-
{{- toYaml . | nindent 4 }}
11+
{{- (include "etcd.annotations" .) | indent 4 }}
12+
{{- if .Values.serviceAccount.annotations }}
13+
{{- toYaml .Values.serviceAccount.annotations | nindent 4 }}
14+
{{- end }}
1215
{{- end }}
1316
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
1417
{{- end }}

0 commit comments

Comments
 (0)