Commit Graph
1422 Commits
Author SHA1 Message Date
idanovinda 4f30fdae4a Merge branch 'master' into patroni-4-integration 2025-01-03 16:18:40 +01:00
Ida Novindasari 4430aba3f3 update codegen (#2832) 2025-01-03 16:18:17 +01:00
inovindasari d1c4da2e67 update spilo images 2025-01-03 13:55:46 +01:00
idanovinda efff3f8c56 Merge branch 'master' into patroni-4-integration 2025-01-03 13:51:08 +01:00
Felix Kunde 6035fdd58e bump operator to 1.14.0 (#2827) v1.14.0 2024-12-23 12:12:33 +01:00
Mario TrangoniandFelix Kunde 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 AnselmandFelix Kunde 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
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 NovindasariandPolina Bungina 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
zyue110026andFelix Kunde bb6242e3c9 fix: replicaCount not being respect (#2708)
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2024-12-19 14:12:15 +01:00
cosimomeli eef49500a5 Add support for EBS CSI Driver (#2677)
* Add support for EBS CSI Driver
2024-12-19 12:32:09 +01:00
dependabot[bot] e7cc4f9120 Bump golang.org/x/crypto from 0.26.0 to 0.31.0 in /kubectl-pg (#2819)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-18 16:03:20 +01:00
Felix Kunde 8cc6796537 fix comparing stream annotations and improve unit test (#2820) 2024-12-18 11:22:08 +01:00
dependabot[bot] 5450113eb5 Bump golang.org/x/crypto from 0.26.0 to 0.31.0 (#2816)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-17 14:07:15 +01:00
Felix Kunde d44bfabe78 do not use extra labels to list stream CRDs (#2803)
* do not use extra labels to list stream CRDs
* add diff on labels for streams + unit test coverage
2024-12-17 08:54:37 +01:00
Felix KundeandIda Novindasari 80ef38f7f0 add resource annotation and ignore recovery type (#2817)
* add resource annotation and ignore recovery type
* Update docs/reference/cluster_manifest.md

---------

Co-authored-by: Ida Novindasari <idanovinda@gmail.com>
2024-12-16 18:17:19 +01:00
Felix Kunde 301462c415 remove streams delete and extend unit tests (#2737) 2024-12-16 18:13:52 +01:00
Felix Kunde 4929dd204c Update major version upgrade docs (#2807)
* Update major version upgrade logs
2024-12-16 11:22:40 +01:00
Ida Novindasari fc9a26040a Integrate spilo with Patroni 4 (#2818) 2024-12-16 11:11:22 +01:00
inovindasari aa896edd36 compare endpoint label 2024-12-06 11:28:30 +01:00
inovindasari 2899729c0b should compare label for service and update 2024-12-04 17:04:07 +01:00
inovindasari daec1a40c2 convert hardcoded master words into a constant variable 2024-12-02 17:29:05 +01:00
inovindasari 1410daa1aa unittest with non default label 2024-11-27 16:20:27 +01:00
inovindasari b433066577 remove leftover unused variable 2024-11-27 16:19:48 +01:00
inovindasari 8ad5dabe84 remove unnecessary change 2024-11-27 15:43:06 +01:00
inovindasari 910c7ee516 remove standby leader configurable variable 2024-11-27 15:40:30 +01:00
inovindasari a48b5b6fb6 convert constant variable to function 2024-11-27 15:34:03 +01:00
inovindasari a2328b9ec8 more configurable variables 2024-11-25 14:56:45 +01:00
inovindasari 8b79e33b1c define new variables 2024-11-25 14:49:24 +01:00
inovindasari 766597980f add e2e test to run in cdp 2024-11-19 16:00:03 +01:00
inovindasari b59494dd29 only change test image 2024-11-19 15:20:27 +01:00
idanovinda ce67ee1bca test on spilo new image with patroni v4 2024-11-19 14:29:29 +01:00
dependabot[bot] c206eb38a8 Bump werkzeug from 3.0.3 to 3.0.6 in /ui (#2793)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.3 to 3.0.6.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.3...3.0.6)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-06 11:46:53 +01:00
acdb957d8e fix switch over candidate retrieving (#2760)
* fix switch over candidate retrieving

Signed-off-by: fahed dorgaa <fahed.dorgaa.ext@corp.ovh.com>

---------

Signed-off-by: fahed dorgaa <fahed.dorgaa.ext@corp.ovh.com>
Co-authored-by: fahed dorgaa <fahed.dorgaa.ext@corp.ovh.com>
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2024-11-01 17:06:20 +01:00
Felix Kunde 8231797efa add cluster field for PVCs (#2785)
* add cluster field for PVCs
* sync volumes on cluster creation
* fully spell pvc in log messages
2024-10-31 14:08:50 +01:00
Martin Kucinandmartin.kucin 45e9227f55 fix(postgres-operator/deployment): Set 'nindent' to 8 for 'extraEnvs' (#2783)
Co-authored-by: martin.kucin <martin.kucin@yunextraffic.com>
2024-10-30 11:11:22 +01:00
Felix Kunde 002d0f94a1 quote schema names in case they use special characters and remove strings.Builder (#2782) 2024-10-17 16:52:24 +02:00
Motte f5e122e8ef Fix resource constraints (#2735)
* Add empty string cases to patterns for pod resources
* Added empty strings test case
* Restored k8sres.go and changed test to zeros
* Updated validation pattern in manifests/operatorconfiguration.crd.yaml and pkg/apis/acid.zalan.do/v1/crds.go
2024-10-16 17:19:07 +02:00
Prasad KrishnanandFelix Kunde d21466dbc4 update clusterrole.yaml (#2762)
* update clusterrole.yaml
* Update charts/postgres-operator/templates/clusterrole.yaml

---------

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
2024-10-16 17:18:01 +02:00
Felix Kunde bb73334682 quote admin user to allow names with special characters (#2774) 2024-10-16 17:14:44 +02:00
Polina Bungina 41f5fe1dc9 More major upgrade prechecks (#2775)
Skip when 
- it is a standby clusters
- there is no master in the cluster
2024-10-15 14:05:39 +02:00
Polina Bungina 3ca86678cc Add major upgrade prechecks (#2772)
Don't fail major upgrade (don't set annotation) if replica(s) are not
(yet) streaming or replication lag is too high
2024-10-11 17:11:46 +02:00
Ida Novindasari c25dc57b96 only skip upgrade if failed before after recheck version (#2755) 2024-09-10 10:32:56 +02:00
2e398120d2 Implement major upgrade result annotations (#2727)
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
Co-authored-by: Polina Bungina <27892524+hughcapet@users.noreply.github.com>
2024-08-28 15:26:12 +02:00
Felix Kunde a09b7655c9 update K8s version and reflect necessary changes (#2740) 2024-08-27 18:13:39 +02:00
Felix Kunde 2ae51fb9ce reflect linter feedback, remove unused argumnents and redundant type from arrays (#2739)
* reflect linter feedback, remove unused argumnents and redundant literal definitions
* add logical backup to TestCreate unit test
2024-08-27 17:56:07 +02:00