Skip to content

K8SPG-437: merge upstream 5.4.2 changes #518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 974 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
974 commits
Select commit Hold shift + click to select a range
2c9a397
Replace HandleDeleteNamespace Test With KUTTL (#3172)
benjaminjb Apr 27, 2022
31847c4
Update root CA certificate ownership kuttl test
tjmoore4 Apr 28, 2022
9df6ce9
Remove envtest-existing from upgradecheck (#3158)
benjaminjb Apr 28, 2022
2f62605
Remove CrunchyData packages from PGO controller image
tjmoore4 May 3, 2022
70f35c7
Update OLM bundle generation
tjmoore4 Apr 11, 2022
cc5f2a4
Remove code that generates the GCP installer
cbandy May 9, 2022
6193560
Enable seccomp on containers (#3193)
benjaminjb May 10, 2022
e746b28
Deflake TestReconcileReplicaCreateBackup (#3198)
benjaminjb May 11, 2022
fb5e4f0
Add Script for Updating the Monitoring Installer
andrewlecuyer Apr 5, 2022
5b9abf9
Mention support for certified Kubernetes distros
cbandy May 16, 2022
0e16907
Add missing image parameter in documentation
cbandy May 16, 2022
b9e8c53
Link to collection notice
cbandy May 16, 2022
4f15cd2
Update pgAdmin4 docs login information
jmckulk May 12, 2022
112c910
Kuttl test to create a cluster and resize the PVC
jmckulk May 2, 2022
dd614e8
Pre-release update for v5.1.1 (#3200)
ValClarkson May 16, 2022
3d232d2
Fix typo in Extension Management.
atorik May 9, 2022
4951fb0
Update update-cluster.md
atorik May 10, 2022
0c34e69
Update update docs (#3202)
benjaminjb May 17, 2022
2c2f68f
updated from pg13 to pg14 in the update cluster instructions (#3209)
ValClarkson May 17, 2022
0bbe415
Add docs on removing PVC labels
benjaminjb May 17, 2022
58c293f
PR feedback
benjaminjb May 17, 2022
c45bcb6
Revert "Enable seccomp on containers (#3193)" (#3215)
benjaminjb May 18, 2022
d352e1d
Align Related Images in manager.yaml With OLM
andrewlecuyer May 18, 2022
c7df1b3
Wait for Patroni labels in tests that switchover
cbandy May 18, 2022
18367c3
Check for Endpoints in deletion tests
cbandy May 18, 2022
722aea3
Updates for PG 10 looping support
jmckulk May 17, 2022
d0c3dae
Update Github question template
tjmoore4 May 23, 2022
8e55750
Bump gopkg.in/yaml.v3 to v3.0.0
cbandy May 26, 2022
4080690
Simplify the PKI implementation
cbandy Nov 11, 2021
c93d00e
Document that PKI objects marshal for OpenSSL
cbandy Nov 24, 2021
e6adbf3
Consolidate PKI choices in a single file
cbandy Nov 17, 2021
fff9641
Return API errors when checking certificates
cbandy Nov 17, 2021
c6c7617
Replace certificates when their subject changes
cbandy Nov 22, 2021
2089ddd
Parse certificates and keys when their Secret exists
cbandy May 26, 2022
3cba04e
Rotate leaf cert before expiration (#3229)
benjaminjb Jun 1, 2022
cd6c114
Create an EventRecorder for tests
cbandy Jun 1, 2022
8062ab6
Change the volume claim test into a unit test
cbandy Jun 1, 2022
5be61dd
Pause/Resume PostgresCluster Reconciliation
tjmoore4 Jun 1, 2022
dc9a101
Remove 'LastTransitionTime' from 'handlePersistentVolumeClaimError'
tjmoore4 Jun 2, 2022
5752bd7
Skip TestDeleteInstance when connected to an existing cluster
cbandy Jun 8, 2022
7b50a53
Add support for feature gates
tjmoore4 Jun 6, 2022
a9d38d8
Use timeline as status to prevent multiple failovers (#3235)
benjaminjb Jun 13, 2022
8c936ec
All Custom Sidecars for PostgreSQL Instance Pods
tjmoore4 Jun 10, 2022
bff03fc
Update the 'Create TODO patch Script' for instance sidecar containers
tjmoore4 Jun 10, 2022
66ef765
Update conditions.yaml for sidecar containers PR
tjmoore4 Jun 13, 2022
bdaedb0
Allow Custom Sidecars for pgBouncer Pods
tjmoore4 Jun 15, 2022
f4231d9
Update Custom Sidecar Containers for PostgreSQL Instance Pods Comment
tjmoore4 Jun 16, 2022
131a042
Add wait for delete test (#3264)
benjaminjb Jun 17, 2022
e413d83
Use ReadWriteOnce through documentation
cbandy Jun 13, 2022
0cc65e2
Add custom scheduling for backup jobs (#3260)
benjaminjb Jun 21, 2022
5c04c36
Change use_pg_rewind for PG10 (#3258)
benjaminjb Jun 21, 2022
5e69e97
Drop default container runtime capabilities
cbandy May 17, 2022
7241a02
Allow Streaming Replication
jmckulk May 31, 2022
0d6a3f0
update release from 5.1.1 to 5.1.2 added release documentation (#3280)
ValClarkson Jun 27, 2022
c9220bc
Fix 'GCS' Typo in Azure Storage Blob section
brandonavant Jun 27, 2022
bad20c9
Remove unnecessary type conversions
cbandy May 25, 2022
79f1ea2
Update GitHub actions
cbandy Jun 28, 2022
e15af16
Use GitHub step summaries to report coverage
cbandy Jun 28, 2022
5b1e55f
minor typo
andyli Jun 29, 2022
6feb0ab
Update Release Notes
andrewlecuyer Jul 2, 2022
d3300d2
Quarantine flaky delete test (#3290)
benjaminjb Jul 6, 2022
1a4b6bf
OLM validation update
tjmoore4 Jul 6, 2022
1c4a634
Allow NodePort Port to be Specified via the PostgresCluster Spec
tjmoore4 Jul 11, 2022
74aa69c
Generate a non-expiring token in development
cbandy Jun 30, 2022
b499528
Labels and Annotations for Individual Services
tjmoore4 Jul 13, 2022
c72c6a0
added documentation for root certificate rotation (#3298)
ValClarkson Jul 14, 2022
436a2c2
Set the 'pg_ctl' timeout
tjmoore4 Jul 14, 2022
7ed8677
Add fsGroupChangePolicy to pod (#3296)
benjaminjb Jul 15, 2022
941b38c
update to drop all capabilities security context (#3305)
ValClarkson Jul 20, 2022
a8ab53c
Align psql Job Backoff Limit & Restart Policy
andrewlecuyer Jul 20, 2022
494558f
Remove the postmaster.pid file prior to pgBackRest restore
tjmoore4 Jul 21, 2022
920292d
Update the pgBackRest restore command for better logging
tjmoore4 Jul 21, 2022
956d35d
Update Standby Replication Diagrams
tjmoore4 Jul 22, 2022
d4f0ff1
Add name and version Labels to CRD during generation
tjmoore4 Jul 28, 2022
6ac98d1
Branch in tests based on the server version rather than environment
cbandy Jul 29, 2022
b5d6cc3
Use Bash to assert on dropped caps in E2E tests
cbandy Jul 30, 2022
4a42bf4
Set runAsNonRoot at the container-level only
cbandy Jul 18, 2022
b8c325f
Verify security contexts using the Kyverno CLI when available
cbandy Jul 29, 2022
7652cd1
Go package updates
tjmoore4 Aug 1, 2022
4ee38f7
Bump 5.1.2 to 5.2.0
jmckulk Aug 1, 2022
a909d4a
Update components and extensions
jmckulk Aug 2, 2022
b9111bd
Wrap PITR sections of the docs
cbandy Aug 5, 2022
719674f
Update PostgreSQL cluster architecture diagram
tjmoore4 Aug 10, 2022
39398ef
go fmt with Go 1.19 to address lint errors
tjmoore4 Aug 11, 2022
42416d8
update certificate rotation by combining 2 sections of the documents
ValClarkson Aug 11, 2022
41bbbd3
Update docs/content/tutorial/administrative-tasks.md
ValClarkson Aug 11, 2022
f85f0f9
Update SHA value placeholders for OLM bundle generation
tjmoore4 Aug 15, 2022
2baa652
Link to the CLI documentation in release notes
cbandy Aug 16, 2022
97a4db2
Fix typos in the latest release notes
cbandy Aug 16, 2022
240d8e1
Update upgrade docs header
jmckulk Aug 16, 2022
af16152
Fix related image registry value
tjmoore4 Aug 18, 2022
9c03b42
Fix off-by-one in related images
cbandy Sep 9, 2022
330de87
Fix typo in docs/content/references/components.md
Sep 5, 2022
fbdb4e1
Update links in readmes (#3378)
benjaminjb Sep 16, 2022
be28d8c
Update v1.SecurityContexts to current Pod Security Standards
cbandy Sep 24, 2022
39a8e1f
Update runtime-controller (#3362)
benjaminjb Sep 27, 2022
df492f1
Turn off JIT for only monitoring user's context
chobostar Sep 19, 2022
3951ab8
Update crd-docs (#3391)
benjaminjb Sep 28, 2022
b5d5ff5
Update monitor versions in deps scripts (#3394)
benjaminjb Sep 30, 2022
446000b
Fix compatibility with Kubernetes 1.25 (#3370)
jelmer Oct 3, 2022
5b30cfc
Update links to pgAdmin code and documentation
cbandy Oct 3, 2022
b5ba3f0
Remove pki NoNames test
jmckulk Oct 4, 2022
be153b3
Adjust GH kubernetes-api test (#3405)
benjaminjb Oct 5, 2022
257cda0
PGO updates pgnodemx/pg_stat_statements (#3400)
benjaminjb Oct 6, 2022
5a893b1
Remove CentOS References from Docs
andrewlecuyer Oct 7, 2022
2cab55a
Update links to JDBC documentation
cbandy Oct 6, 2022
1f9f849
update to go 1.19 from go 1.17
ValClarkson Oct 13, 2022
78a96b7
Update CRD and todo hack script for v0.23.0
jmckulk Oct 6, 2022
f87a5b4
Add newlines to pgmonitor docs
jmckulk Oct 7, 2022
8261485
Custom TLS for Exporter (Encryption Only)
jmckulk Sep 29, 2022
607c1b1
Operator logging for database init SQL failures (#3033)
jmartin127 Oct 18, 2022
4efcba1
Adding source code changes for workaround for IPv6 issue in pgBackRes…
dsessler7 Oct 19, 2022
6f10b44
Adding updated documentation for pgBackRest IPv6 workaround.
dsessler7 Oct 19, 2022
067c3d2
Update internal/pgbackrest/config_test.go
dsessler7 Oct 20, 2022
c908a52
Update internal/pgbackrest/config.go
dsessler7 Oct 20, 2022
613913d
Changed code to use strings.EqualFold() for case-insensitive comparison.
dsessler7 Oct 20, 2022
1ed1f8e
Update pgBackRest repo option logic
tjmoore4 Oct 24, 2022
dd408ff
Bumping kubebuilder:validation:Maximum for major PostgresVersion to 15.
dsessler7 Oct 22, 2022
bf300c7
Add constants for services registered with the IANA
cbandy Oct 26, 2022
afc009c
Get primary name after waiting for redeploy
jmckulk Oct 21, 2022
777ea1a
Update kuttl tests for Postgres 15 public schema updates
tjmoore4 Oct 28, 2022
7d754bd
Alter make generate-kuttl to quiet output (#3442)
benjaminjb Oct 28, 2022
1522c57
Pass the upgrade-check URL as an argument
cbandy Oct 21, 2022
1baca25
Handle upgrade-check panics in a single place
cbandy Oct 21, 2022
ef30deb
Start and stop upgrade-check using controller-runtime
cbandy Oct 24, 2022
8508a63
Added namespace limiters to all client.List() calls in pgbackrest and…
dsessler7 Oct 27, 2022
8387698
updated urls from github.io to the access portal ensuring
ValClarkson Nov 2, 2022
9e3ad6f
Move environment logging into main()
cbandy Oct 28, 2022
382b52a
controller-runtime Source that emits a constant Event periodically
cbandy Oct 27, 2022
50b699c
Single-method implementations of controller-runtime Client
cbandy Nov 2, 2022
7aa2e59
Bridge API client
cbandy Nov 4, 2022
99cde4f
Bridge installation reconciler
cbandy Nov 4, 2022
3a53a11
Use optimistic concurrency and log retries
cbandy Nov 4, 2022
0620cfc
Hide the progress bar when calling curl in tests
cbandy Nov 10, 2022
80dfa39
Migration assistance (#3445)
benjaminjb Nov 11, 2022
ac4d9a4
Add concurrencyPolicy to backup CronJobs
szelenka Nov 15, 2022
29b4385
Require SCRAM authentication of the monitoring user
szelenka Nov 16, 2022
2d4c6ef
Limit the monitoring user to local connections
cbandy Nov 10, 2022
dc15244
Remove disable exporter tls test
jmckulk Nov 17, 2022
05ade8f
Pin GitHub actions to Ubuntu 20.04
cbandy Nov 21, 2022
655247e
Added a warning noticed ot the pgadmin 4 architecture docs
ValClarkson Nov 21, 2022
7254fa4
Adding uniqueness to cluster names when testing service type changes …
dsessler7 Nov 22, 2022
f80110f
Moving PG Major Upgrades API to postgres-operator repo.
dsessler7 Nov 17, 2022
d8a2803
Add PGUpgrades to the controller-gen TODO hack
cbandy Nov 23, 2022
b95ada1
Do not configure JIT for the monitoring user
cbandy Nov 25, 2022
80fee70
Update security context kuttl test for OCP 4.11
tjmoore4 Nov 29, 2022
da682a2
Make the TTL of pgBackRest backups configurable
cbandy Nov 18, 2022
3163d08
Bumping pgMonitor to v4.8.0.
dsessler7 Dec 3, 2022
fd5c247
Update Version 5.2.0 to 5.3.0
tjmoore4 Dec 7, 2022
d132a9b
Add Postgres 15 RELATED_IMAGE environment variable
tjmoore4 Dec 8, 2022
f9700e0
Add entries to bundle.relatedImages.yaml
tjmoore4 Dec 8, 2022
b6ffb40
Update the minimum Kubernetes and OCP OLM versions
tjmoore4 Dec 8, 2022
9d2275e
Helm OCI Release Notes
andrewlecuyer Dec 9, 2022
2dbdb60
Add docs for helm oci (#3493)
benjaminjb Dec 13, 2022
58832e6
Update Postgres version 15.0 to 15.1
tjmoore4 Dec 13, 2022
3fcdf39
Update comment for Metadata (#3496)
benjaminjb Dec 13, 2022
cbdefec
pgMonitor v4.8.0 Release Note
andrewlecuyer Dec 14, 2022
af2b553
Bump Build Number for PG 14 PostGIS 3.3
andrewlecuyer Dec 14, 2022
20c0a33
Fix Typo for CLI in Release Notes
andrewlecuyer Dec 15, 2022
1155533
Update the default Postgers image used for Kuttl tests
tjmoore4 Dec 22, 2022
c270a17
Document Postgres 15 recovery_target_action behavior
cbandy Dec 23, 2022
b893a5a
Remove the note about language in the pgBackRest docs
cbandy Dec 27, 2022
0569dfc
Integrating Major PG Upgrades controller logic and testing into PGO.
dsessler7 Dec 23, 2022
a1397fd
Set operator image tag to release v5.4.0
tony-landreth Jan 5, 2023
7a5187f
Adds KUTTL_PG_UPGRADE_TO_VERSION parameter
tony-landreth Jan 11, 2023
959f97a
Update README.md
spron-in Sep 23, 2022
2171bfe
Bumping min OCP version (#3509)
benjaminjb Jan 13, 2023
6e45cf3
Pin checks to Kube 1.25
jmckulk Jan 19, 2023
ecbe025
Simplify Makefile
jmckulk Dec 9, 2022
98d3c5f
Simplify postgres-operator dockerfiles
jmckulk Dec 20, 2022
4fcae2a
Add a GeoJSON assertion to the PostGIS Kuttl test
tjmoore4 Jan 20, 2023
21d6730
Update PGO upgrade docs
tony-landreth Jan 12, 2023
69a4d6c
Update Copyright notices for 2023
youattd Jan 4, 2023
2bad414
Add trivy action to catch CVEs (#3544)
benjaminjb Jan 24, 2023
8d33281
New generic function to dereference a non-nil pointer
cbandy Jan 24, 2023
3bd77ea
Stop using the k8s.io/utils module directly
cbandy Jan 24, 2023
8220890
Ensure go.mod is tidy during pull request checks
cbandy Jan 24, 2023
a3ed076
Update go.mod to avoid CVEs (#3548)
benjaminjb Jan 25, 2023
c41f64b
Remove backup assertions from exporter test
cbandy Dec 14, 2022
4779e50
Remove backup assertions from streaming standby test
cbandy Dec 14, 2022
d514dd9
Correct the comments on CodeQL actions
cbandy Jan 27, 2023
a3a2f00
Update OLM bundle generation logic for postgres major upgrade
tjmoore4 Jan 26, 2023
8e9e2f4
updated pgaudit extension upgrade directions
ValClarkson Jan 27, 2023
7027818
Update docs/content/guides/major-postgres-version-upgrade.md
ValClarkson Jan 27, 2023
c63198d
Update docs/content/guides/major-postgres-version-upgrade.md
ValClarkson Jan 27, 2023
244b272
Update docs/content/guides/major-postgres-version-upgrade.md
ValClarkson Jan 27, 2023
f4a4f1d
updated paragraph for clarity and grammar mistakes
ValClarkson Jan 27, 2023
ef6b798
Update docs/content/guides/major-postgres-version-upgrade.md
ValClarkson Jan 27, 2023
6fc411c
Adding GitHub Actions Job for E2E testing. Refactoring kubernetes-k3d…
dsessler7 Jan 19, 2023
eacc2e8
Adjusting create-kubeconfig.sh script to avoid race condition where t…
dsessler7 Jan 24, 2023
b8086f0
Fix tests to work on macOS Ventura
cbandy Feb 14, 2023
8b14582
Updated go.mod
tjmoore4 Feb 17, 2023
f1a8f5a
PGO will now turn "huge_pages" to "try" or "off" based on whether hug…
dsessler7 Feb 17, 2023
6df33f0
Update docs/content/guides/huge-pages.md
dsessler7 Feb 22, 2023
84e506d
Update standby configuration documentation
tjmoore4 Feb 21, 2023
a4b59e8
Bump github.com/onsi/ginkgo to v2
cbandy Feb 15, 2023
3201831
Update k3d and k3s URLs
cbandy Feb 22, 2023
a266886
Add tablespace alpha functionality (#3575)
benjaminjb Feb 23, 2023
9eb1237
Regularize kubebuilder RBAC annotations (#3586)
benjaminjb Feb 24, 2023
43c5c62
Improvements to feature gate handling (#3599)
benjaminjb Mar 7, 2023
ab6e6c9
Update docs (#3604)
benjaminjb Mar 9, 2023
9422c8d
Breaks out trivy-scheduled-scans
tony-landreth Mar 22, 2023
eb5916a
Removed Postgres 13 from RELATED_IMAGES.
ValClarkson Mar 15, 2023
38d2373
Updated the github actions works flow with latest container images
ValClarkson Mar 20, 2023
f060545
changed kuttl pg version back to pg 14
ValClarkson Mar 22, 2023
1e1f95d
Fix e2e-other/postgis-cluster KUTTL (#3628)
benjaminjb Apr 11, 2023
d16b11c
Updated images to the latest versions and updated to postgres 15
ValClarkson Mar 31, 2023
4eb0169
Update examples/postgrescluster/postgrescluster.yaml
ValClarkson Apr 4, 2023
bedf788
Clarifications to docs about restoring individual databases, plus add…
roberto-mello Feb 15, 2023
16635d5
Changed Individual Databases paragraph into a warning, as per Andrew'…
roberto-mello Feb 16, 2023
c260fde
Add extra comma, as per bblattberg
roberto-mello Mar 14, 2023
f497724
Refactor looping tests
jmckulk Apr 10, 2023
1feea56
Clarify custom tls documentation (#3629)
benjaminjb Apr 13, 2023
5b097ff
document that wal files are not deleted
stemid Apr 13, 2023
82434ab
typo in pgdata path
stemid Apr 14, 2023
352b652
more verbose wording
stemid Apr 14, 2023
b1395cb
Change buildah for new build process (#3646)
benjaminjb May 11, 2023
2414427
Update kustomization: patches (#3658)
benjaminjb May 22, 2023
83d3ce9
Update kustomization.yaml (#3655)
benjaminjb May 22, 2023
48ee744
Update component page info
tjmoore4 May 22, 2023
572c635
Updating Keycloak example documentation
dajeffers Jul 16, 2022
6835886
Add warning blocks to hugepages doc.
dsessler7 May 24, 2023
6b9446b
Renew Bridge installations
cbandy Nov 5, 2022
8ddb44d
Update exporter release target to build exporter
jmckulk May 25, 2023
7c46037
Revamp demoting active to standby (#3661)
benjaminjb May 30, 2023
d988118
Update depguard configuration for golangci-lint v1.53
cbandy Jun 5, 2023
86c89b6
Update HA Architecture Doc
Jun 2, 2023
90ed1a3
adding Postgres primary & replica cert to Secret
szelenka-cisco Nov 8, 2022
94ebcf2
Adding fix for hugepages/restore issue.
dsessler7 Jun 28, 2023
474b3c2
Revise pgbouncer kuttl test to debug (#3683)
benjaminjb Jul 7, 2023
a1138e0
Fix README Links
andrewlecuyer Jul 13, 2023
59cd329
Latest updates
tjmoore4 May 23, 2023
8068807
Remove redundant trivy scans (#3695)
benjaminjb Jul 25, 2023
72d2170
Update test workflow
Jul 24, 2023
b7bafdb
Refactor Delete Namespace test
jmckulk Jul 26, 2023
05031b1
Update Postgres Exporter version to 0.12.1 PGO-42
Jul 27, 2023
b8ef572
Stop PostgresCluster reconciliation when required image not set
tjmoore4 Jul 24, 2023
ac2abb9
Update the PGUpgrade logic for missing image scenario
tjmoore4 Jul 27, 2023
d1256b6
Latest updates
tjmoore4 Aug 8, 2023
75bf159
Adjust major upgrade kuttl tests
tjmoore4 Aug 10, 2023
63ff1e4
Add Discord Info to README
andrewlecuyer Aug 22, 2023
e9cd9f2
Update Invite Code
andrewlecuyer Aug 22, 2023
a81f88d
Quiet issues detected by golangci-lint v1.54.2
cbandy Aug 22, 2023
06696f5
Update apply_test to handle changes for Kubernetes 1.28+
tjmoore4 Aug 30, 2023
f7bec84
Remove kubectl '--short' flag from Github actions
tjmoore4 Aug 30, 2023
eedf513
Exporter refactor. Remove all of crunchy-postgres-exporter from this …
dsessler7 Aug 23, 2023
c2a4747
Version updates
Sep 15, 2023
a1c5a7d
Merge upstream 5.4.2 changes
pooknull Sep 28, 2023
256237e
Force `InstanceSidecar` feature gate to be enabled
pooknull Oct 2, 2023
a5fc952
fix configs
pooknull Oct 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ jobs:
with:
go-version: '^1.20'
- uses: actions/checkout@v3
- name: Basic tests
run: make check
- name: envtest
run: ENVTEST_K8S_VERSION=1.22 make check
run: ENVTEST_K8S_VERSION=1.22 make check-envtest
39 changes: 17 additions & 22 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ linters:
- gci
- gofumpt
- scopelint
- depguard
enable:
- depguard
- gomodguard
- gosimple
- importas
Expand All @@ -28,21 +28,24 @@ linters-settings:

depguard:
rules:
main:
allow:
- $gostd
- github.com/OpenPeeDeeP
include-go-root: true
packages-with-error-message:
- io/ioutil: >
Use the "io" and "os" packages instead.
See https://go.dev/doc/go1.16#ioutil
everything:
deny:
- pkg: io/ioutil
desc: >
Use the "io" and "os" packages instead.
See https://go.dev/doc/go1.16#ioutil

- net/http/httptest: Should be used only in tests.
- testing/*: The "testing" packages should be used only in tests.
not-tests:
files: ['!$test']
deny:
- pkg: net/http/httptest
desc: Should be used only in tests.

- github.com/percona/percona-postgresql-operator/internal/testing/*: >
The "internal/testing" packages should be used only in tests.
- pkg: testing/*
desc: The "testing" packages should be used only in tests.

- pkg: github.com/percona/percona-postgresql-operator/internal/testing/*
desc: The "internal/testing" packages should be used only in tests.

exhaustive:
default-signifies-exhaustive: true
Expand Down Expand Up @@ -71,14 +74,6 @@ linters-settings:
alias: k8serrors
no-unaliased: true

issues:
exclude-rules:
# These testing packages are allowed in test files. The packages are
# disallowed everywhere then ignored here because that is how depguard works.
- linters: [depguard]
path: _test[.]go$
text: \`(net/http/httptest|[^`]*testing[^`]*)`

run:
build-tags:
- envtest
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ See the [Documentation Contribution Guide](https://github.com/percona/k8spg-docs

## Code review

Your contribution will be reviewed by other developers contributing to the project. The more complex your changes are, the more experts will be involved. You will receive feedback and recommendations directly on your pull request on GitHub, so keep an eye on your submission and be prepared to make further amendments. The developers might even provide some concrete suggestions on modifying your code to match the project’s expectations better.
Your contribution will be reviewed by other developers contributing to the project. The more complex your changes are, the more experts will be involved. You will receive feedback and recommendations directly on your pull request on GitHub, so keep an eye on your submission and be prepared to make further amendments. The developers might even provide some concrete suggestions on modifying your code to match the project’s expectations better.
Loading