laiminhtrung1997
fe0fbcee22
Merge fa6dadd691 into 1af4c50ed0
2025-10-21 14:43:16 +03:00
Felix Kunde
1af4c50ed0
bump to v1.15.0 ( #2965 )
...
* bump to v1.15.0
* more linter hints
* update dependencies of kubectl-pg plugin
2025-10-21 11:56:33 +02:00
Trung Minh Lai
fa6dadd691
Update e2e test to patch topologySpreadConstraints into the postgresqls manifest.
2025-10-19 14:24:18 +07:00
Trung Minh Lai
bb676f5949
Add documentation for topologySpreadConstraint.
2025-10-19 13:29:26 +07:00
Trung Minh Lai
a7cc221d63
Add support for helm chart.
2025-10-19 13:08:09 +07:00
Trung Minh Lai
fc8d6cf821
Add topologySpreadConstraint example in the complete manifest.
2025-10-18 22:56:38 +07:00
Trung Minh Lai
8a0f3895c4
Remove unnecessary len check.
2025-10-18 22:36:36 +07:00
Felix Kunde
3bc244fe39
bump dependencies and reflect linter suggestions ( #2963 )
2025-10-16 10:23:36 +02:00
Felix Kunde
3a8fc1b259
Merge branch 'master' into add-topologySpreadConstraints
2025-10-15 15:18:39 +02:00
Remi Rampin
8c2a290a12
DOC: Minikube has many drivers now, incl. Docker ( #2949 )
...
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2025-10-14 13:50:11 +02:00
Remi Rampin
3a85466cfd
DOC: Fix formatting of bullet points ( #2948 )
...
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2025-10-14 13:49:06 +02:00
Eng Zer Jun
eddf521227
Replace `golang.org/x/exp` with stdlib ( #2857 )
...
* Replace `golang.org/x/exp` with stdlib
These experimental packages are now available in the Go standard
library since Go 1.21.
1. golang.org/x/exp/slices -> slices [1]
2. golang.org/x/exp/maps -> maps [2]
[1]: https://go.dev/doc/go1.21#slices
[2]: https://go.dev/doc/go1.21#maps
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* Run go mod tidy
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
---------
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2025-10-14 11:59:48 +02:00
Felix Kunde
8ba57b28f5
extend RBAC in prepatation to switch to configmap-based cluster management ( #2961 )
2025-10-14 10:59:43 +02:00
Felix Kunde
dc29425969
include external traffic policy comparison into service diffing ( #2956 )
2025-09-23 14:30:06 +02:00
Polina Bungina
bcd729b2cc
Add selector to master service when switching to CM ( #2955 )
...
Add service selector comparison to compareServices
This is necessary for the proper switch of `kubernetes_use_configmaps` configuration value, as master service should have different label selector setup for those.
2025-09-19 14:44:17 +02:00
Alexander Gramovich
d98fc2753a
logical-backup:gcs_upload: try to use gcp metadata if LOGICAL_GOOGLE_APPLICATION_CREDENTIALS is not set ( #2837 )
...
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2025-09-17 16:01:28 +02:00
dependabot[bot]
cce2633192
Bump requests from 2.32.2 to 2.32.4 in /ui ( #2922 )
...
Bumps [requests](https://github.com/psf/requests ) from 2.32.2 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases )
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md )
- [Commits](https://github.com/psf/requests/compare/v2.32.2...v2.32.4 )
---
updated-dependencies:
- dependency-name: requests
dependency-version: 2.32.4
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-17 16:01:02 +02:00
Morten Lied Johansen
ad7e590916
Skip creation of OwnerReference if user is in a different namespace ( #2912 )
...
Instead of doing a string compare on the username, check the actual namespace of the user to determine if an owner reference can be created.
2025-09-17 15:57:36 +02:00
Trung Minh Lai
a40ba6e0de
Remove x-kubernetes-preserve-unknown-fields and XPreserveUnknownFields.
2025-09-07 10:35:18 +07:00
Trung Minh Lai
f52d9bc8fb
Reuse configured TopologySpreadConstraints for logical backup.
2025-09-07 10:35:18 +07:00
Trung Minh Lai
ad4dd0098d
Run update-codegen.sh to add deepcopy for new field to the api.
2025-09-07 10:35:18 +07:00
Trung Minh Lai
8c9840c5da
Fix UT
2025-09-07 10:35:18 +07:00
Trung Minh Lai
89e2405b8f
Correct the assert with the list of constraints.
2025-09-07 10:35:18 +07:00
Trung Minh Lai
63f865776e
Modify the UT.
2025-09-07 10:35:18 +07:00
Trung Minh Lai
263242a5e1
Add topologySpreadConstraints configuration to pod spec.
2025-09-07 10:35:18 +07:00
Jociele Padilha
fa4bc21538
upgrade Go from 1.23.4 to 1.25.0 ( #2945 )
...
* upgrade go to 1.25
* add minor version to be Go 1.25.0
* revert the Go version on README to keep the history of the release
2025-08-19 14:40:39 +02:00
Mario Trangoni
51135b07db
docs: Fix issues found by codespell ( #2896 )
...
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2025-06-03 17:34:05 +02:00
Ida Novindasari
ccb52c094d
[UI] Remove deprecated WAL-E library and enable WAL-G backup support in UI backend ( #2915 )
2025-05-20 16:31:26 +02:00
Polina Bungina
68c4b49636
Fix wrong condition for bootstrap labels ( #2875 )
2025-03-10 17:05:27 +01:00
Polina Bungina
c7a586d0f8
Configure (upcoming) Patroni bootstrap labels feature ( #2872 )
...
Set the value from the critical-operation-pdb's selector if PDBs are enabled
2025-03-10 10:16:01 +01:00
Felix Kunde
746df0d33d
do not remove publications of slot defined in manifest ( #2868 )
...
* do not remove publications of slot defined in manifest
* improve condition to sync streams
* init publication tables map when adding manifest slots
* need to update c.Stream when there is no update
2025-02-26 17:31:37 +01:00
Felix Kunde
2a4be1cb39
fix creating secrets for rotation users ( #2863 )
...
* fix creating secrets for rotation users
* rework annotation comparison on update to decide on when to call syncSecrets
2025-02-14 09:44:09 +01:00
Polina Bungina
c8063eb78a
Protect Pods from disruptions during upgrades ( #2844 )
...
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2025-01-30 10:41:58 +01:00
Polina Bungina
a56ecaace7
Critical operation PDB ( #2830 )
...
Create the second PDB to cover Pods with a special "critical operation" label set.
This label is going to be assigned to all pg cluster's Pods by the Operator during a PG major version upgrade, by Patroni during a cluster/replica bootstrap. It can also be set manually or by any other automation tool.
2025-01-29 12:41:08 +01:00
Polina Bungina
f49b4f1e97
Ensure podAnnotations are removed from pods if reset in the config ( #2826 )
2025-01-24 16:53:14 +01:00
Polina Bungina
b0cfeb30ea
Partially revert #2810 ( #2849 )
...
Only schedule switchover for pod migration, consider mainWindow for PGVERSION env change
2025-01-23 16:35:33 +01:00
Polina Bungina
e04b91d8af
Only check maintenance window for upgrade after pg version recheck ( #2842 )
...
This way we avoid misleading "skipping major version upgrade, not in maintenance window" log line when c.currentMajorVersion is not initialized (==0)
2025-01-17 14:29:52 +01:00
Polina Bungina
8522331cf2
Extend MaintenanceWindows parameter usage ( #2810 )
...
Consider maintenance window when migrating master pods and replacing pods (rolling update)
2025-01-15 18:04:36 +01:00
Lukas Reichart
46d5ebef6d
Update logical backup docker image ( #2829 )
2025-01-07 09:10:22 +01:00
Ida Novindasari
4430aba3f3
update codegen ( #2832 )
2025-01-03 16:18:17 +01:00
Felix Kunde
6035fdd58e
bump operator to 1.14.0 ( #2827 )
2024-12-23 12:12:33 +01:00
Mario Trangoni
df3f68bcfb
manifests/minimal-master-replica-svcmonitor.yaml: Update postgres-exporter image ( #2777 )
...
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2024-12-23 11:10:44 +01:00
Felix Kunde
265f2a0f1c
add sidecar command examples and update codegen ( #2825 )
2024-12-23 09:58:48 +01:00
Felix Kunde
9b103e764e
bump to go 1.23.4 ( #2824 )
2024-12-23 09:54:51 +01:00
Tabby
b276cd2f94
Feat: Support Running Sidecar with a Command. ( #2449 )
...
* Feat: Support Running Sidecard with a Command.
This PR addresses issue #2448 . Some containers may not have entry points, if this is the case they would need to be run using a command. This change extends the definition of sidecar so that there is an optional command field. If the field is present then the container will be run using that command. This is a two line change that is fully backward compatible.
2024-12-23 09:08:35 +01:00
Christoffer Anselm
548e387745
Fix deployment extraEnvs indentation in operator chart ( #2814 )
...
* Fix operator extraEnvs indentation
Fix bad operator extraEnvs indentation by matching the statement to how other lists are expanded in the deployment template
* Replace nindent by indent to fully mirror the other similar lines in the file
---------
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2024-12-23 08:59:54 +01:00
Demch1k
d97c271b84
Add abitility to set QPS and Burst limits for api client ( #2667 )
...
* Add abitility to set QPS and Burst limits for api client
---------
Co-authored-by: Ivan Sokoryan <i.sokoryan@robo.cash>
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2024-12-23 08:53:27 +01:00
Ida Novindasari
470a1eab89
Add support for pg17 and remove pg12 ( #2773 )
...
* Add support for pg17
* use new gcov2lcov-action
* Use ghcr spilo-17
* Update SPILO_CURRENT and SPILO_LAZY
* Update e2e/run.sh
---------
Co-authored-by: Polina Bungina <27892524+hughcapet@users.noreply.github.com>
2024-12-20 11:22:52 +01:00
Felix Kunde
34df486f00
fix flaky comparison unit test of retruned errors ( #2822 )
2024-12-19 17:35:01 +01:00
zyue110026
bb6242e3c9
fix: replicaCount not being respect ( #2708 )
...
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2024-12-19 14:12:15 +01:00