Skip to content

Commit 1b9dcdf

Browse files
committed
Merge branch 'main' into K8SPS-288-async-self-healing
2 parents 49c3d93 + 1096236 commit 1b9dcdf

File tree

443 files changed

+26484
-5501
lines changed

Some content is hidden

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

443 files changed

+26484
-5501
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
* @hors @egegunes @inelpandzic @pooknull
2-
/e2e-tests/ @tplavcic @nmarukovich @cap1984
3-
Jenkinsfile @tplavcic @nmarukovich @cap1984
2+
/e2e-tests/ @tplavcic @nmarukovich @ptankov @jvpasinatto @eleo007
3+
Jenkinsfile @tplavcic @nmarukovich @ptankov @jvpasinatto @eleo007
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-server-mysql-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%20MySQL%22%20and%20issuetype%20%3D%20Bug%20and%20resolution%20%3D%20unresolved%20order%20BY%20created%20DESC)
14+
- [Percona Operator for MySQL forum](https://forums.percona.com/c/mysql-mariadb/percona-kubernetes-operator-for-mysql/28)
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 MySQL or get support
4+
url: https://forums.percona.com/c/mysql-mariadb/percona-kubernetes-operator-for-mysql/28
5+
about: Ask a question or request support for using Percona Operator for MySQL
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ updates:
44
directory: /
55
schedule:
66
interval: monthly
7+
day: "wednesday"
8+
time: "01:00"
79
reviewers:
810
- hors
911
- egegunes
@@ -40,4 +42,6 @@ updates:
4042
labels:
4143
- "dependencies"
4244
schedule:
43-
interval: monthly
45+
interval: weekly
46+
day: "wednesday"
47+
time: "01:00"

.github/linters/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module linters
22

3-
go 1.17
3+
go 1.22.0

.github/pull_request_template.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
**Config/Logging/Testability**
2424
- [ ] Are all needed new/changed options added to default YAML files?
25-
- [ ] Are the manifests (crd/bundle) regenerated if needed?
2625
- [ ] Did we add proper logging messages for operator actions?
2726
- [ ] Did we ensure compatibility with the previous version or cluster upgrade process?
2827
- [ ] Does the change support oldest and newest supported PS version?

.github/workflows/reviewdog.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ jobs:
55
name: runner / suggester / golangci-lint
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/setup-go@v4
8+
- uses: actions/setup-go@v5
99
with:
10-
go-version: '^1.20'
11-
- uses: actions/checkout@v3
10+
go-version: '^1.22'
11+
- uses: actions/checkout@v4
1212
- name: golangci-lint
13-
uses: golangci/golangci-lint-action@v3
13+
uses: golangci/golangci-lint-action@v6
1414
with:
1515
version: latest
1616
only-new-issues: true
@@ -21,7 +21,7 @@ jobs:
2121
name: runner / suggester / gofmt
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- run: gofmt -w -s $(find . -not -path "*/vendor/*" -name "*.go")
2626
- uses: reviewdog/action-suggester@v1
2727
with:
@@ -31,10 +31,10 @@ jobs:
3131
name: runner / suggester / shfmt
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v3
35-
- uses: actions/setup-go@v4
34+
- uses: actions/checkout@v4
35+
- uses: actions/setup-go@v5
3636
with:
37-
go-version: '^1.17'
37+
go-version: '^1.22'
3838
- run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
3939
- run: $(go env GOPATH)/bin/shfmt -f . | grep -v 'vendor' | xargs $(go env GOPATH)/bin/shfmt -bn -ci -s -w
4040
- name: suggester / shfmt
@@ -47,7 +47,7 @@ jobs:
4747
name: runner / shellcheck
4848
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
5151
- uses: reviewdog/action-shellcheck@v1
5252
with:
5353
github_token: ${{ secrets.github_token }}
@@ -59,7 +59,7 @@ jobs:
5959
name: runner / misspell
6060
runs-on: ubuntu-latest
6161
steps:
62-
- uses: actions/checkout@v3
62+
- uses: actions/checkout@v4
6363
- uses: reviewdog/action-misspell@v1
6464
with:
6565
github_token: ${{ secrets.github_token }}
@@ -71,9 +71,28 @@ jobs:
7171
name: runner / alex
7272
runs-on: ubuntu-latest
7373
steps:
74-
- uses: actions/checkout@v3
74+
- uses: actions/checkout@v4
7575
- uses: reviewdog/action-alex@v1
7676
with:
7777
github_token: ${{ secrets.github_token }}
7878
reporter: github-pr-review
7979
level: info
80+
81+
manifests:
82+
name: runner / manifests
83+
runs-on: ubuntu-latest
84+
steps:
85+
- uses: actions/checkout@v4
86+
- uses: actions/setup-go@v5
87+
with:
88+
go-version: '^1.22'
89+
- name: check on release branch
90+
if: ${{ contains(github.head_ref, 'release-') || contains(github.base_ref, 'release-') }}
91+
run: |
92+
make generate manifests VERSION="$(grep "Version" pkg/version/version.go|grep -oE "[0-9]+\.[0-9]+\.[0-9]+")" IMAGE_TAG_BASE="percona/percona-server-mysql-operator"
93+
git diff --exit-code
94+
- name: check on non release branches
95+
if: ${{ ! (contains(github.head_ref, 'release-') || contains(github.base_ref, 'release-')) }}
96+
run: |
97+
make generate manifests VERSION=main
98+
git diff --exit-code

.github/workflows/scan.yml

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,57 @@
11
name: Scan docker
22
on: [pull_request]
3+
4+
env:
5+
# Use docker.io for Docker Hub if empty
6+
REGISTRY: docker.io
7+
8+
# github.repository as <account>/<repo>
9+
IMAGE_NAME: perconalab/percona-server-mysql-operator
10+
311
jobs:
412
build:
513
name: Build
614
runs-on: ubuntu-latest
715
steps:
816
- name: Checkout code
9-
uses: actions/checkout@v3
10-
- name: Build an image from Dockerfile
17+
uses: actions/checkout@v4
18+
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v3
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
24+
25+
- name: Build an image from Dockerfile (linux/arm64)
1126
run: |
12-
export IMAGE=perconalab/percona-server-mysql-operator:${{ github.sha }}
27+
export IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64
1328
export DOCKER_PUSH=0
1429
export DOCKER_SQUASH=0
30+
export DOCKER_DEFAULT_PLATFORM='linux/arm64'
1531
./e2e-tests/build
16-
- name: Run Trivy vulnerability scanner
17-
uses: aquasecurity/trivy-action@0.11.2
32+
33+
- name: Run Trivy vulnerability scanner image (linux/arm64)
34+
uses: aquasecurity/trivy-action@0.23.0
1835
with:
19-
image-ref: 'docker.io/perconalab/percona-server-mysql-operator:${{ github.sha }}'
36+
image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64'
37+
format: 'table'
38+
exit-code: '1'
39+
ignore-unfixed: true
40+
vuln-type: 'os,library'
41+
severity: 'CRITICAL,HIGH'
42+
43+
- name: Build an image from Dockerfile (linux/amd64)
44+
run: |
45+
export IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64
46+
export DOCKER_PUSH=0
47+
export DOCKER_SQUASH=0
48+
export DOCKER_DEFAULT_PLATFORM='linux/amd64'
49+
./e2e-tests/build
50+
51+
- name: Run Trivy vulnerability scanner image (linux/amd64)
52+
uses: aquasecurity/trivy-action@0.23.0
53+
with:
54+
image-ref: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64'
2055
format: 'table'
2156
exit-code: '1'
2257
ignore-unfixed: true

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Clone the code
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: Setup Go
14-
uses: actions/setup-go@v4
14+
uses: actions/setup-go@v5
1515
with:
16-
go-version: "1.20"
16+
go-version: "^1.22"
1717
- name: Perform the test
1818
run: make test

0 commit comments

Comments
 (0)