Skip to content

Commit ba498f6

Browse files
authored
Merge branch 'main' into dependabot/github_actions/actions/setup-go-5
2 parents 5a89764 + a487238 commit ba498f6

File tree

74 files changed

+10540
-680
lines changed

Some content is hidden

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

74 files changed

+10540
-680
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Feature request 🧭
2+
description: Suggest an idea for this project
3+
labels: "feature-request"
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Proposal
8+
description: "What would you like to have as a feature"
9+
placeholder: "A clear and concise description of what you want to happen."
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: Use-Case
15+
description: "How would this help you?"
16+
placeholder: "Tell us more what you'd like to achieve."
17+
validations:
18+
required: false
19+
- type: dropdown
20+
id: interested-in-implementing-the-feature
21+
attributes:
22+
label: Is this a feature you are interested in implementing yourself?
23+
options:
24+
- 'No'
25+
- 'Maybe'
26+
- 'Yes'
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: anything-else
31+
attributes:
32+
label: Anything else?
33+
description: "Let us know if you have anything else to share"
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Report a bug 🐛
2+
description: Create a report to help us improve
3+
labels: "bug"
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
## Self-help
9+
Thank you for considering to open a bug report!
10+
11+
Before you do, however, make sure to check our existing resources to see if it has already been discussed/reported:
12+
- [Reported bugs](https://github.com/percona/percona-postgresql-operator/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug)
13+
- [JIRA bugs](https://perconadev.atlassian.net/issues/?jql=project%20%3D%20%22Percona%20Operator%20for%20PostgreSQL%22%20and%20issuetype%20%3D%20Bug%20and%20resolution%20%3D%20unresolved%20order%20BY%20created%20DESC)
14+
- [Percona Operator for PostgreSQL forum](https://forums.percona.com/c/postgresql/percona-kubernetes-operator-for-postgresql/68)
15+
- type: textarea
16+
attributes:
17+
label: Report
18+
description: "What bug have you encountered?"
19+
placeholder: "A clear and concise description of what the bug is."
20+
validations:
21+
required: true
22+
- type: textarea
23+
attributes:
24+
label: More about the problem
25+
description: What do you see happening
26+
placeholder: Logs, expected behavior, other
27+
validations:
28+
required: true
29+
- type: textarea
30+
attributes:
31+
label: Steps to reproduce
32+
description: "Tell us how to reproduce the problem"
33+
value: |
34+
1.
35+
2.
36+
3.
37+
validations:
38+
required: true
39+
- type: textarea
40+
attributes:
41+
label: Versions
42+
description: "Tell us which versions do you use"
43+
value: |
44+
1. Kubernetes
45+
2. Operator
46+
3. Database
47+
validations:
48+
required: true
49+
- type: textarea
50+
id: anything-else
51+
attributes:
52+
label: Anything else?
53+
description: "Let us know if you have anything else to share"

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Ask a question about Percona Operator for PostgreSQL or get support
4+
url: https://forums.percona.com/c/postgresql/percona-kubernetes-operator-for-postgresql/68
5+
about: Ask a question or request support for using Percona Operator for PostgreSQL
6+
- name: Report vulnerability or security concern
7+
url: https://www.percona.com/security
8+
about: For any security issues or concerns

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ updates:
3838
labels:
3939
- "dependencies"
4040
schedule:
41-
interval: monthly
41+
interval: weekly
4242
day: "tuesday"
4343
time: "01:00"
4444

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
go-version: '^1.20'
1111
- uses: actions/checkout@v4
1212
- name: golangci-lint
13-
uses: golangci/golangci-lint-action@v3
13+
uses: golangci/golangci-lint-action@v4
1414
with:
1515
version: latest
1616
only-new-issues: true

.github/workflows/scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
./e2e-tests/build
3232
3333
- name: Run Trivy vulnerability scanner image (linux/arm64)
34-
uses: aquasecurity/trivy-action@0.14.0
34+
uses: aquasecurity/trivy-action@0.19.0
3535
with:
3636
image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64'
3737
format: 'table'
@@ -49,7 +49,7 @@ jobs:
4949
./e2e-tests/build
5050
5151
- name: Run Trivy vulnerability scanner image (linux/amd64)
52-
uses: aquasecurity/trivy-action@0.14.0
52+
uses: aquasecurity/trivy-action@0.19.0
5353
with:
5454
image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64'
5555
format: 'table'

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
go-version: '^1.20'
1414
- uses: actions/checkout@v4
1515
- name: Basic tests
16-
run: make check
16+
run: make check
1717
- name: envtest
18-
run: ENVTEST_K8S_VERSION=1.22 make check-envtest
18+
run: ENVTEST_K8S_VERSION=1.26 make check-envtest

Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,3 +418,26 @@ rm -rf $$TMP_DIR ;\
418418
}
419419
endef
420420

421+
# Prepare release
422+
PG_VER ?= $(shell grep -o "postgresVersion: .*" deploy/cr.yaml|grep -oE "[0-9]+")
423+
release: generate
424+
sed -i \
425+
-e "/^spec:/,/^ crVersion:/{s/crVersion: .*/crVersion: $(VERSION)/}" \
426+
-e "/^spec:/,/^ image:/{s#image: .*#image: percona/percona-postgresql-operator:$(VERSION)-ppg$(PG_VER)-postgres#}" \
427+
-e "/^ pgBouncer:/,/^ image:/{s#image: .*#image: percona/percona-postgresql-operator:$(VERSION)-ppg$(PG_VER)-pgbouncer#}" \
428+
-e "/^ pgbackrest:/,/^ image:/{s#image: .*#image: percona/percona-postgresql-operator:$(VERSION)-ppg$(PG_VER)-pgbackrest#}" \
429+
-e "/extensions:/,/image:/{s#image: .*#image: percona/percona-postgresql-operator:$(VERSION)#}" \
430+
-e "/^ pmm:/,/^ image:/{s#image: .*#image: percona/pmm-client:@@SET_TAG@@#}" deploy/cr.yaml
431+
432+
# Prepare main branch after release
433+
MAJOR_VER := $(shell grep -oE "crVersion: .*" deploy/cr.yaml|grep -oE "[0-9]+\.[0-9]+\.[0-9]+"|cut -d'.' -f1)
434+
MINOR_VER := $(shell grep -oE "crVersion: .*" deploy/cr.yaml|grep -oE "[0-9]+\.[0-9]+\.[0-9]+"|cut -d'.' -f2)
435+
NEXT_VER ?= $(MAJOR_VER).$$(($(MINOR_VER) + 1)).0
436+
after-release: generate
437+
sed -i \
438+
-e "/^spec:/,/^ crVersion:/{s/crVersion: .*/crVersion: $(NEXT_VER)/}" \
439+
-e "/^spec:/,/^ image:/{s#image: .*#image: perconalab/percona-postgresql-operator:main-ppg$(PG_VER)-postgres#}" \
440+
-e "/^ pgBouncer:/,/^ image:/{s#image: .*#image: perconalab/percona-postgresql-operator:main-ppg$(PG_VER)-pgbouncer#}" \
441+
-e "/^ pgbackrest:/,/^ image:/{s#image: .*#image: perconalab/percona-postgresql-operator:main-ppg$(PG_VER)-pgbackrest#}" \
442+
-e "/extensions:/,/image:/{s#image: .*#image: perconalab/percona-postgresql-operator:main#}" \
443+
-e "/^ pmm:/,/^ image:/{s#image: .*#image: perconalab/pmm-client:dev-latest#}" deploy/cr.yaml

README.md

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,37 +23,49 @@ Whether you need to get a simple PostgreSQL cluster up and running, need to depl
2323
- Scheduled and manual backups
2424
- Integrated monitoring with [Percona Monitoring and Management](https://www.percona.com/software/database-tools/percona-monitoring-and-management)
2525

26-
# Architecture
26+
You interact with Percona Operator mostly via the command line tool. If you feel more comfortable with operating the Operator and database clusters via the web interface, there is [Percona Everest](https://docs.percona.com/everest/index.html) - an open-source web-based database provisioning tool available for you. It automates day-to-day database management operations for you, reducing the overall administrative overhead. [Get started with Percona Everest](https://docs.percona.com/everest/quickstart-guide/quick-install.html).
27+
28+
## Architecture
2729

2830
Percona Operators are based on the [Operator SDK](https://github.com/operator-framework/operator-sdk) and leverage Kubernetes primitives to follow best CNCF practices.
2931

30-
Please read more about architecture and design decisions [here](https://docs.percona.com/percona-operator-for-postgresql/2.0/architecture.html).
32+
Learn more about [architecture and design decisions](https://docs.percona.com/percona-operator-for-postgresql/2.0/architecture.html).
33+
34+
## Documentation
35+
36+
To learn more about the Operator, check the [Percona Operator for PostgreSQL documentation](https://docs.percona.com/percona-operator-for-postgresql/2.0/index.html).
3137

3238
## Quickstart installation
3339

34-
### kubectl
40+
Ready to try out the Operator? Check the [Quickstart tutorial](https://docs.percona.com/percona-operator-for-postgresql/2.0/quickstart.html) for easy-to follow steps.
3541

36-
Quickly making the Operator up and running with cloud native PostgreSQL includes two main steps:
42+
Below is one of the ways to deploy the Operator using `kubectl`.
3743

38-
Deploy the operator from `deploy/bundle.yam`
44+
### kubectl
45+
46+
1. Deploy the operator from `deploy/bundle.yam`
3947

4048
```sh
4149
kubectl apply --server-side -f https://raw.githubusercontent.com/percona/percona-postgresql-operator/main/deploy/bundle.yaml
4250
```
4351

44-
Deploy the database cluster itself from `deploy/cr.yaml`
52+
2. Deploy the database cluster itself from `deploy/cr.yaml`
4553

4654
```sh
4755
kubectl apply -f https://raw.githubusercontent.com/percona/percona-postgresql-operator/main/deploy/cr.yaml
4856
```
4957

50-
# Contributing
58+
## Contributing
5159

5260
Percona welcomes and encourages community contributions to help improve Percona Operator for PostgreSQL.
5361

54-
See the [Contribution Guide](CONTRIBUTING.md) for more information.
62+
See the [Contribution Guide](CONTRIBUTING.md) on how you can contribute.
63+
64+
## Communication
5565

56-
# Join Percona Kubernetes Squad!
66+
We would love to hear from you! Reach out to us on [Forum](https://forums.percona.com/c/postgresql/percona-kubernetes-operator-for-postgresql/68) with your questions, feedback and ideas
67+
68+
## Join Percona Kubernetes Squad!
5769
```
5870
% _____
5971
%%% | __ \
@@ -73,10 +85,12 @@ See the [Contribution Guide](CONTRIBUTING.md) for more information.
7385

7486
You can get early access to new product features, invite-only ”ask me anything” sessions with Percona Kubernetes experts, and monthly swag raffles. Interested? Fill in the form at [percona.com/k8s](https://www.percona.com/k8s).
7587

76-
# Roadmap
88+
## Roadmap
7789

7890
We have an experimental public roadmap which can be found [here](https://github.com/percona/roadmap/projects/1). Please feel free to contribute and propose new features by following the roadmap [guidelines](https://github.com/percona/roadmap).
7991

80-
# Submitting Bug Reports
92+
## Submitting Bug Reports
93+
94+
If you find a bug in Percona Docker Images or in one of the related projects, please submit a report to that project's [JIRA](https://jira.percona.com/browse/K8SPG) issue tracker or [create a GitHub issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue#creating-an-issue-from-a-repository) in this repository.
8195

82-
If you find a bug in Percona Docker Images or in one of the related projects, please submit a report to that project's [JIRA](https://jira.percona.com/browse/K8SPG) issue tracker. Learn more about submitting bugs, new features ideas and improvements in the [Contribution Guide](CONTRIBUTING.md).
96+
Learn more about submitting bugs, new features ideas and improvements in the [Contribution Guide](CONTRIBUTING.md).

0 commit comments

Comments
 (0)