Skip to content

Commit 01f9da5

Browse files
authored
Merge branch 'CrunchyData:main' into main
2 parents aa24ed7 + fb500ab commit 01f9da5

File tree

387 files changed

+90943
-41766
lines changed

Some content is hidden

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

387 files changed

+90943
-41766
lines changed

.github/actions/trivy/action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 - 2025 Crunchy Data Solutions, Inc.
1+
# Copyright 2024 - 2026 Crunchy Data Solutions, Inc.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44
#
@@ -84,15 +84,15 @@ runs:
8484
# Install Trivy as requested.
8585
# NOTE: `setup-trivy` can download a "latest" version but cannot cache it.
8686
- if: ${{ ! contains(fromJSON(steps.parsed.outputs.setup), 'none') }}
87-
uses: aquasecurity/setup-trivy@v0.2.4
87+
uses: aquasecurity/setup-trivy@v0.2.5
8888
with:
8989
cache: ${{ contains(fromJSON(steps.parsed.outputs.setup), 'cache') }}
9090
version: ${{ steps.parsed.outputs.version }}
9191

9292
# Restore a recent cache beginning with the prefix.
9393
- id: restore
9494
if: ${{ contains(fromJSON(steps.parsed.outputs.cache), 'restore') }}
95-
uses: actions/cache/restore@v4
95+
uses: actions/cache/restore@v5
9696
with:
9797
path: ${{ inputs.cache-directory }}
9898
key: ${{ inputs.cache-prefix }}-
@@ -132,7 +132,7 @@ runs:
132132
(contains(fromJSON(steps.parsed.outputs.cache), 'success') && success())
133133
)
134134
}}
135-
uses: actions/cache/save@v4
135+
uses: actions/cache/save@v5
136136
with:
137137
key: ${{ steps.trivy.outputs.cache-key }}
138138
path: ${{ inputs.cache-directory }}

.github/dependabot.yml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 - 2025 Crunchy Data Solutions, Inc.
1+
# Copyright 2024 - 2026 Crunchy Data Solutions, Inc.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44
#
@@ -35,6 +35,7 @@ updates:
3535
github-actions:
3636
applies-to: version-updates
3737
patterns: ['*']
38+
target-branch: "main"
3839

3940
- package-ecosystem: gomod
4041
directory: '/'
@@ -61,3 +62,54 @@ updates:
6162
- 'k8s.io/*'
6263
- 'sigs.k8s.io/*'
6364
- 'go.opentelemetry.io/*'
65+
target-branch: "main"
66+
67+
- package-ecosystem: github-actions
68+
directories:
69+
# "/" is a special case that includes ".github/workflows/*"
70+
- '/'
71+
- '.github/actions/*'
72+
registries: '*'
73+
schedule:
74+
interval: weekly
75+
day: tuesday
76+
labels:
77+
- dependencies
78+
groups:
79+
# Group security updates into one pull request
80+
action-vulnerabilities:
81+
applies-to: security-updates
82+
patterns: ['*']
83+
84+
# Group version updates into one pull request
85+
github-actions:
86+
applies-to: version-updates
87+
patterns: ['*']
88+
target-branch: "REL_5_8"
89+
90+
- package-ecosystem: gomod
91+
directory: '/'
92+
registries: '*'
93+
schedule:
94+
interval: weekly
95+
day: wednesday
96+
labels:
97+
- dependencies
98+
groups:
99+
# Group security updates into one pull request
100+
go-vulnerabilities:
101+
applies-to: security-updates
102+
patterns: ['*']
103+
104+
# Group Kubernetes and OpenTelemetry version updates into separate pull requests
105+
kubernetes:
106+
patterns: ['k8s.io/*', 'sigs.k8s.io/*']
107+
opentelemetry:
108+
patterns: ['go.opentelemetry.io/*']
109+
go-dependencies:
110+
patterns: ['*']
111+
exclude-patterns:
112+
- 'k8s.io/*'
113+
- 'sigs.k8s.io/*'
114+
- 'go.opentelemetry.io/*'
115+
target-branch: "REL_5_8"

.github/workflows/test.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
# Upload coverage to GitHub
4242
- run: gzip envtest.coverage
43-
- uses: actions/upload-artifact@v5
43+
- uses: actions/upload-artifact@v7
4444
with:
4545
name: "~coverage~kubernetes-api=${{ matrix.kubernetes }}"
4646
path: envtest.coverage.gz
@@ -75,7 +75,7 @@ jobs:
7575

7676
# Upload coverage to GitHub
7777
- run: gzip envtest-existing.coverage
78-
- uses: actions/upload-artifact@v5
78+
- uses: actions/upload-artifact@v7
7979
with:
8080
name: "~coverage~kubernetes-k3d=${{ matrix.kubernetes }}"
8181
path: envtest-existing.coverage.gz
@@ -91,7 +91,7 @@ jobs:
9191
steps:
9292
- uses: actions/checkout@v6
9393
- uses: actions/setup-go@v6
94-
with: { go-version: stable }
94+
with: { go-version: '1.25.x' } # TODO: revert to stable when chainsaw supports Go 1.26 (missing testDeps.ModulePath)
9595

9696
- name: Start k3s
9797
uses: ./.github/actions/k3d
@@ -124,7 +124,7 @@ jobs:
124124
--name 'postgres-operator' localhost/postgres-operator
125125
126126
- run: |
127-
make check-chainsaw && exit
127+
make check-chainsaw CHAINSAW_EXTRA_ARGS='--exclude-test-regex chainsaw/.*autogrow.*' && exit
128128
failed=$?
129129
echo '::group::PGO logs'; docker logs 'postgres-operator'; echo '::endgroup::'
130130
exit $failed
@@ -142,7 +142,7 @@ jobs:
142142
steps:
143143
- uses: actions/checkout@v6
144144
- uses: actions/setup-go@v6
145-
with: { go-version: stable }
145+
with: { go-version: '1.25.x' } # TODO: revert to stable when kuttl supports Go 1.26 (missing testDeps.ModulePath)
146146

147147
- name: Start k3s
148148
uses: ./.github/actions/k3d
@@ -215,7 +215,7 @@ jobs:
215215
- uses: actions/checkout@v6
216216
- uses: actions/setup-go@v6
217217
with: { go-version: stable }
218-
- uses: actions/download-artifact@v6
218+
- uses: actions/download-artifact@v8
219219
with: { path: download }
220220

221221
# Combine the coverage profiles by taking the mode line from any one file
@@ -239,7 +239,7 @@ jobs:
239239
240240
# Upload coverage to GitHub
241241
- run: gzip total-coverage.html
242-
- uses: actions/upload-artifact@v5
242+
- uses: actions/upload-artifact@v7
243243
with:
244244
name: coverage-report=html
245245
path: total-coverage.html.gz

.golangci.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ linters:
113113
SPDX-License-Identifier: Apache-2.0
114114
values:
115115
regexp:
116-
DATES: ((201[7-9]|202[0-4]) - 2025|2025)
116+
DATES: ((201[7-9]|202[0-5]) - 2026|2026)
117117

118118
gomodguard:
119119
blocked:
@@ -179,6 +179,16 @@ linters:
179179
text: >-
180180
deprecated: Use `RequeueAfter` instead
181181
182+
- linters: [staticcheck]
183+
path: internal/controller/runtime
184+
text: >-
185+
client.Apply is deprecated
186+
187+
- linters: [staticcheck]
188+
path: internal/controller/(postgrescluster|pgupgrade|standalone_pgadmin)
189+
text: >-
190+
GetEventRecorderFor is deprecated
191+
182192
# https://golangci-lint.run/usage/formatters
183193
formatters:
184194
enable:

.trivyignore.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 - 2025 Crunchy Data Solutions, Inc.
1+
# Copyright 2024 - 2026 Crunchy Data Solutions, Inc.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44
#

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017 - 2025 Crunchy Data Solutions, Inc.
1+
# Copyright 2017 - 2026 Crunchy Data Solutions, Inc.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176

177177
END OF TERMS AND CONDITIONS
178178

179-
Copyright 2017 - 2025 Crunchy Data Solutions, Inc.
179+
Copyright 2017 - 2026 Crunchy Data Solutions, Inc.
180180

181181
Licensed under the Apache License, Version 2.0 (the "License");
182182
you may not use this file except in compliance with the License.

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,14 @@ check-envtest-existing: createnamespaces
185185
#
186186
# https://kyverno.github.io/chainsaw/latest/operations/script#kubeconfig
187187
#
188+
# NOTE: The autogrow volume tests require a storage provider that supports real
189+
# volume expansion (e.g., GKE, EKS, AKS). They will fail on k3d/kind with the
190+
# default local-path provisioner. Use CHAINSAW_EXTRA_ARGS to skip them when needed:
191+
# make check-chainsaw CHAINSAW_EXTRA_ARGS='--exclude-test-regex chainsaw/.*autogrow.*'
192+
#
188193
.PHONY: check-chainsaw
189194
check-chainsaw:
190-
$(CHAINSAW_TEST) --config testing/chainsaw/e2e/config.yaml --values testing/chainsaw/e2e/values.yaml testing/chainsaw/e2e
195+
$(CHAINSAW_TEST) --config testing/chainsaw/e2e/config.yaml --values testing/chainsaw/e2e/values.yaml $(CHAINSAW_EXTRA_ARGS) testing/chainsaw/e2e
191196

192197
# Expects operator to be running
193198
#
@@ -233,8 +238,7 @@ generate-kuttl: ## Generate kuttl tests
233238
.PHONY: check-generate
234239
check-generate: ## Check everything generated is also committed
235240
check-generate: generate
236-
git diff --exit-code -- config/crd
237-
git diff --exit-code -- config/rbac
241+
git diff --exit-code -- config/dev
238242
git diff --exit-code -- internal/collector
239243
git diff --exit-code -- pkg/apis
240244

@@ -249,7 +253,7 @@ generate: generate-rbac
249253
generate-crd: ## Generate Custom Resource Definitions (CRDs)
250254
$(CONTROLLER) $(\
251255
) crd paths='./pkg/apis/...' $(\
252-
) output:dir='config/crd/bases' # {directory}/{group}_{plural}.yaml
256+
) output:dir='config/dev/crd/bases' # {directory}/{group}_{plural}.yaml
253257
$(GO) generate ./internal/crd
254258

255259
.PHONY: generate-collector
@@ -267,7 +271,7 @@ generate-rbac: ## Generate RBAC
267271
$(CONTROLLER) $(\
268272
) rbac:roleName='postgres-operator' $(\
269273
) paths='./cmd/...' paths='./internal/...' $(\
270-
) output:dir='config/rbac' # {directory}/role.yaml
274+
) output:dir='config/dev/rbac/cluster' # {directory}/role.yaml
271275

272276
# https://www.gnu.org/software/make/manual/make.html#Multi_002dLine
273277
define newline

cmd/pgbackrest/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018 - 2025 Crunchy Data Solutions, Inc.
1+
// Copyright 2018 - 2026 Crunchy Data Solutions, Inc.
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

cmd/postgres-operator/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017 - 2025 Crunchy Data Solutions, Inc.
1+
// Copyright 2017 - 2026 Crunchy Data Solutions, Inc.
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

0 commit comments

Comments
 (0)