Skip to content

Commit

Permalink
Merge branch 'main' into CLOUD-789-2
Browse files Browse the repository at this point in the history
  • Loading branch information
nmarukovich authored Oct 13, 2023
2 parents ce4f2e4 + 7f6cdbe commit 97526dd
Show file tree
Hide file tree
Showing 85 changed files with 467 additions and 303 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
name: runner / suggester / golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.6.0
- uses: actions/checkout@v4.1.0
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -17,7 +17,7 @@ jobs:
name: runner / suggester / gofmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.6.0
- uses: actions/checkout@v4.1.0
- run: gofmt -w -s $(find . -not -path "*/vendor/*" -name "*.go")
- uses: reviewdog/action-suggester@v1
with:
Expand All @@ -27,7 +27,7 @@ jobs:
name: runner / suggester / shfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.6.0
- uses: actions/checkout@v4.1.0
- uses: actions/setup-go@v4
with:
go-version: '^1.17'
Expand All @@ -43,7 +43,7 @@ jobs:
name: runner / shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.6.0
- uses: actions/checkout@v4.1.0
- uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
Expand All @@ -54,7 +54,7 @@ jobs:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.6.0
- uses: actions/checkout@v4.1.0
- uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.github_token }}
Expand All @@ -66,7 +66,7 @@ jobs:
name: runner / alex
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.6.0
- uses: actions/checkout@v4.1.0
- uses: reviewdog/action-alex@v1
with:
github_token: ${{ secrets.github_token }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.6.0
uses: actions/checkout@v4.1.0
- name: Build an image from Dockerfile
run: |
export IMAGE=perconalab/percona-server-mongodb-operator:${{ github.sha }}
export DOCKER_PUSH=0
export DOCKER_SQUASH=0
./e2e-tests/build
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.11.2
uses: aquasecurity/trivy-action@0.12.0
with:
image-ref: 'docker.io/perconalab/percona-server-mongodb-operator:${{ github.sha }}'
format: 'table'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: '^1.19'
- uses: actions/checkout@v3.6.0
- uses: actions/checkout@v4.1.0
- name: go test
run: go test -v ./...
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ pipeline {
environment {
CLOUDSDK_CORE_DISABLE_PROMPTS = 1
CLEAN_NAMESPACE = 1
OPERATOR_NS = 'psmdb-operator'
GIT_SHORT_COMMIT = sh(script: 'git rev-parse --short HEAD', , returnStdout: true).trim()
VERSION = "${env.GIT_BRANCH}-${env.GIT_SHORT_COMMIT}"
CLUSTER_NAME = sh(script: "echo jen-psmdb-${env.CHANGE_ID}-${GIT_SHORT_COMMIT}-${env.BUILD_NUMBER} | tr '[:upper:]' '[:lower:]'", , returnStdout: true).trim()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down
5 changes: 0 additions & 5 deletions config/crd/bases/psmdb.percona.com_perconaservermongodbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down
18 changes: 3 additions & 15 deletions deploy/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down Expand Up @@ -261,11 +256,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down Expand Up @@ -909,11 +899,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down Expand Up @@ -17464,10 +17449,13 @@ rules:
resources:
- perconaservermongodbs
- perconaservermongodbs/status
- perconaservermongodbs/finalizers
- perconaservermongodbbackups
- perconaservermongodbbackups/status
- perconaservermongodbbackups/finalizers
- perconaservermongodbrestores
- perconaservermongodbrestores/status
- perconaservermongodbrestores/finalizers
verbs:
- get
- list
Expand Down
4 changes: 2 additions & 2 deletions deploy/cr-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ kind: PerconaServerMongoDB
metadata:
name: minimal-cluster
spec:
crVersion: 1.15.0
image: percona/percona-server-mongodb:6.0.4-3
crVersion: 1.16.0
image: perconalab/percona-server-mongodb-operator:main-mongod6.0
allowUnsafeConfigurations: true
upgradeOptions:
apply: disabled
Expand Down
8 changes: 4 additions & 4 deletions deploy/cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ spec:
# clusterServiceDNSMode: "Internal"
# pause: true
# unmanaged: false
crVersion: 1.15.0
image: percona/percona-server-mongodb:6.0.4-3
crVersion: 1.16.0
image: perconalab/percona-server-mongodb-operator:main-mongod6.0
imagePullPolicy: Always
# tls:
# # 90 days in hours
Expand Down Expand Up @@ -41,7 +41,7 @@ spec:
# vault: my-cluster-name-vault
pmm:
enabled: false
image: percona/pmm-client:2.35.0
image: perconalab/pmm-client:dev-latest
serverHost: monitoring-service
# mongodParams: --environment=ENVIRONMENT
# mongosParams: --environment=ENVIRONMENT
Expand Down Expand Up @@ -519,7 +519,7 @@ spec:
# credentialsSecret: my-cluster-name-backup-s3
# serverSideEncryption:
# kmsKeyID: 1234abcd-12ab-34cd-56ef-1234567890ab
# sseAlgorithm: AES256
# sseAlgorithm: aws:kms
# sseCustomerAlgorithm: AES256
# sseCustomerKey: Y3VzdG9tZXIta2V5
# region: us-west-2
Expand Down
15 changes: 0 additions & 15 deletions deploy/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down Expand Up @@ -261,11 +256,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down Expand Up @@ -909,11 +899,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down
18 changes: 3 additions & 15 deletions deploy/cw-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down Expand Up @@ -261,11 +256,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down Expand Up @@ -909,11 +899,6 @@ spec:
type: string
sseCustomerKey:
type: string
required:
- kmsKeyID
- sseAlgorithm
- sseCustomerAlgorithm
- sseCustomerKey
type: object
storageClass:
type: string
Expand Down Expand Up @@ -17464,10 +17449,13 @@ rules:
resources:
- perconaservermongodbs
- perconaservermongodbs/status
- perconaservermongodbs/finalizers
- perconaservermongodbbackups
- perconaservermongodbbackups/status
- perconaservermongodbbackups/finalizers
- perconaservermongodbrestores
- perconaservermongodbrestores/status
- perconaservermongodbrestores/finalizers
verbs:
- get
- list
Expand Down
3 changes: 3 additions & 0 deletions deploy/cw-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ rules:
resources:
- perconaservermongodbs
- perconaservermongodbs/status
- perconaservermongodbs/finalizers
- perconaservermongodbbackups
- perconaservermongodbbackups/status
- perconaservermongodbbackups/finalizers
- perconaservermongodbrestores
- perconaservermongodbrestores/status
- perconaservermongodbrestores/finalizers
verbs:
- get
- list
Expand Down
3 changes: 3 additions & 0 deletions deploy/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ rules:
resources:
- perconaservermongodbs
- perconaservermongodbs/status
- perconaservermongodbs/finalizers
- perconaservermongodbbackups
- perconaservermongodbbackups/status
- perconaservermongodbbackups/finalizers
- perconaservermongodbrestores
- perconaservermongodbrestores/status
- perconaservermongodbrestores/finalizers
verbs:
- get
- list
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/balancer/run
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ check_balancer() {

local balancer_running
balancer_running=$(run_mongos 'db.adminCommand({balancerStatus: 1}).mode' "clusterAdmin:clusterAdmin123456@$cluster-mongos.$namespace" \
| grep -E -v "Percona Server for MongoDB|connecting to:|Implicit session:|versions do not match|bye")
| grep -E -v "Percona Server for MongoDB|connecting to:|Implicit session:|versions do not match|Error saving history file:|bye")

if [[ $balancer_running != "$expected" ]]; then
echo "Unexpected output from \"db.adminCommand({balancerStatus: 1}).mode\": $balancer_running"
Expand Down
9 changes: 4 additions & 5 deletions e2e-tests/conf/cmctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ spec:
serviceAccountName: cmctl
containers:
- name: cmctl
image: debian
image: curlimages/curl
imagePullPolicy: Always
command:
- /bin/bash
- /bin/sh
- -c
- |
apt-get update && apt-get install -y curl \
&& curl -fsSL -o cmctl.tar.gz https://github.com/cert-manager/cert-manager/releases/latest/download/cmctl-linux-amd64.tar.gz \
&& tar xzf cmctl.tar.gz \
curl -fsSL -o /tmp/cmctl.tar.gz https://github.com/cert-manager/cert-manager/releases/latest/download/cmctl-linux-amd64.tar.gz \
&& tar -C /tmp -xzf /tmp/cmctl.tar.gz \
&& sleep 100500
restartPolicy: Always
7 changes: 0 additions & 7 deletions e2e-tests/custom-replset-name/conf/backup-aws-s3.yml

This file was deleted.

7 changes: 0 additions & 7 deletions e2e-tests/custom-replset-name/conf/backup-gcp-cs.yml

This file was deleted.

Loading

0 comments on commit 97526dd

Please sign in to comment.