Skip to content

Commit

Permalink
Merge branch 'main' into fix/1759
Browse files Browse the repository at this point in the history
  • Loading branch information
gkech authored Jan 27, 2025
2 parents 5621e51 + ad929e4 commit 555b56a
Show file tree
Hide file tree
Showing 22 changed files with 63 additions and 57 deletions.
12 changes: 9 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,14 @@ void checkE2EIgnoreFiles() {
echo "This is the first run. Using merge base as the starting point for the diff."
changedFiles = sh(script: "git diff --name-only \$(git merge-base HEAD origin/$CHANGE_TARGET)", returnStdout: true).trim().split('\n').findAll{it}
} else {
echo "Processing changes since last processed commit: $lastProcessedCommitHash"
changedFiles = sh(script: "git diff --name-only $lastProcessedCommitHash HEAD", returnStdout: true).trim().split('\n').findAll{it}
def commitExists = sh(script: "git cat-file -e $lastProcessedCommitHash 2>/dev/null", returnStatus: true) == 0
if (commitExists) {
echo "Processing changes since last processed commit: $lastProcessedCommitHash"
changedFiles = sh(script: "git diff --name-only $lastProcessedCommitHash HEAD", returnStdout: true).trim().split('\n').findAll{it}
} else {
echo "Commit hash $lastProcessedCommitHash does not exist in the current repository. Using merge base as the starting point for the diff."
changedFiles = sh(script: "git diff --name-only \$(git merge-base HEAD origin/$CHANGE_TARGET)", returnStdout: true).trim().split('\n').findAll{it}
}
}

echo "Excluded files: $excludedFiles"
Expand All @@ -320,7 +326,7 @@ void checkE2EIgnoreFiles() {
if (needToRunTests) {
echo "Some changed files are outside of the e2eignore list. Proceeding with execution."
} else {
if (currentBuild.previousBuild?.result in ['FAILURE', 'ABORTED', 'UNSTABLE']) {
if (currentBuild.previousBuild?.result != 'SUCCESS') {
echo "All changed files are e2eignore files, and previous build was unsuccessful. Propagating previous state."
currentBuild.result = currentBuild.previousBuild?.result
error "Skipping execution as non-significant changes detected and previous build was unsuccessful."
Expand Down
2 changes: 1 addition & 1 deletion deploy/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19754,7 +19754,7 @@ spec:
serviceAccountName: percona-server-mongodb-operator
containers:
- name: percona-server-mongodb-operator
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
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.19.0
image: percona/percona-server-mongodb:8.0.4-1-multi
crVersion: 1.20.0
image: perconalab/percona-server-mongodb-operator:main-mongod8.0
unsafeFlags:
replsetSize: true
mongosSize: true
Expand Down
10 changes: 5 additions & 5 deletions deploy/cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ spec:
# pause: true
# unmanaged: false
# enableVolumeExpansion: false
crVersion: 1.19.0
image: percona/percona-server-mongodb:8.0.4-1-multi
crVersion: 1.20.0
image: perconalab/percona-server-mongodb-operator:main-mongod8.0
imagePullPolicy: Always
# tls:
# mode: preferTLS
Expand All @@ -27,7 +27,7 @@ spec:
# group: cert-manager.io
# imagePullSecrets:
# - name: private-registry-credentials
# initImage: percona/percona-server-mongodb-operator:1.19.0
# initImage: perconalab/percona-server-mongodb-operator:main
# initContainerSecurityContext: {}
# unsafeFlags:
# tls: false
Expand Down Expand Up @@ -59,7 +59,7 @@ spec:
# sse: my-cluster-name-sse
pmm:
enabled: false
image: percona/pmm-client:2.44.0
image: perconalab/pmm-client:dev-latest
serverHost: monitoring-service
# containerSecurityContext: {}
# mongodParams: --environment=ENVIRONMENT
Expand Down Expand Up @@ -618,7 +618,7 @@ spec:

backup:
enabled: true
image: percona/percona-backup-mongodb:2.8.0-multi
image: perconalab/percona-server-mongodb-operator:main-backup
# annotations:
# iam.amazonaws.com/role: role-arn
# resources:
Expand Down
2 changes: 1 addition & 1 deletion deploy/cw-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19775,7 +19775,7 @@ spec:
serviceAccountName: percona-server-mongodb-operator
containers:
- name: percona-server-mongodb-operator
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
Expand Down
2 changes: 1 addition & 1 deletion deploy/cw-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: percona-server-mongodb-operator
containers:
- name: percona-server-mongodb-operator
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
Expand Down
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
serviceAccountName: percona-server-mongodb-operator
containers:
- name: percona-server-mongodb-operator
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/upgrade-consistency/conf/some-name-rs0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: PerconaServerMongoDB
metadata:
name: some-name
spec:
crVersion: 1.17.0
crVersion: 1.18.0
#platform: openshift
image:
imagePullPolicy: Always
Expand Down
22 changes: 11 additions & 11 deletions e2e-tests/upgrade-consistency/run
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,41 @@ main() {
desc 'create secrets and start client'
kubectl_bin apply -f "${conf_dir}/client.yml" -f "${conf_dir}/secrets.yml"

desc "create first PSMDB cluster 1.17.0 $CLUSTER"
desc "create first PSMDB cluster 1.18.0 $CLUSTER"
apply_cluster "$test_dir/conf/${CLUSTER}-rs0.yml"

desc 'check if Pod started'
wait_for_running "${CLUSTER}-rs0" "3" "true"

desc 'check if service and statefulset created with expected config'
compare_kubectl service/${CLUSTER}-rs0 "-1170"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1170"
compare_kubectl service/${CLUSTER}-rs0 "-1180"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1180"

desc 'test 1.18.0'
desc 'test 1.19.0'
kubectl_bin patch psmdb "${CLUSTER}" --type=merge --patch '{
"spec": {"crVersion":"1.18.0"}
"spec": {"crVersion":"1.19.0"}
}'
# Wait for at least one reconciliation
sleep 10
desc 'check if Pod started'
wait_for_running "${CLUSTER}-rs0" "3" "true"

desc 'check if service and statefulset created with expected config'
compare_kubectl service/${CLUSTER}-rs0 "-1180"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1180"
compare_kubectl service/${CLUSTER}-rs0 "-1190"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1190"

desc 'test 1.19.0'
desc 'test 1.20.0'
kubectl_bin patch psmdb "${CLUSTER}" --type=merge --patch '{
"spec": {"crVersion":"1.19.0"}
"spec": {"crVersion":"1.20.0"}
}'
# Wait for at least one reconciliation
sleep 10
desc 'check if Pod started'
wait_for_running "${CLUSTER}-rs0" "3" "true"

desc 'check if service and statefulset created with expected config'
compare_kubectl service/${CLUSTER}-rs0 "-1190"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1190"
compare_kubectl service/${CLUSTER}-rs0 "-1200"
compare_kubectl statefulset/${CLUSTER}-rs0 "-1200"

destroy $namespace

Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ require (
github.com/pkg/errors v0.9.1
github.com/robfig/cron/v3 v3.0.1
github.com/stretchr/testify v1.10.0
go.mongodb.org/mongo-driver v1.17.1
go.mongodb.org/mongo-driver v1.17.2
go.uber.org/zap v1.27.0
golang.org/x/sync v0.10.0
google.golang.org/grpc v1.69.2
gopkg.in/yaml.v2 v2.4.0
k8s.io/api v0.32.0
k8s.io/apimachinery v0.32.0
k8s.io/client-go v0.32.0
k8s.io/api v0.32.1
k8s.io/apimachinery v0.32.1
k8s.io/client-go v0.32.1
sigs.k8s.io/controller-runtime v0.19.3
sigs.k8s.io/mcs-api v0.1.0
sigs.k8s.io/yaml v1.4.0
Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mI
go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM=
go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM=
go.mongodb.org/mongo-driver v1.1.2/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM=
go.mongodb.org/mongo-driver v1.17.1 h1:Wic5cJIwJgSpBhe3lx3+/RybR5PiYRMpVFgO7cOHyIM=
go.mongodb.org/mongo-driver v1.17.1/go.mod h1:wwWm/+BuOddhcq3n68LKRmgk2wXzmF6s0SFOa0GINL4=
go.mongodb.org/mongo-driver v1.17.2 h1:gvZyk8352qSfzyZ2UMWcpDpMSGEr1eqE4T793SqyhzM=
go.mongodb.org/mongo-driver v1.17.2/go.mod h1:Hy04i7O2kC4RS06ZrhPRqj/u4DTYkFDAAccj+rVKqgQ=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
go.opentelemetry.io/otel v1.31.0 h1:NsJcKPIW0D0H3NgzPDHmo0WW6SptzPdqg/L1zsIm2hY=
go.opentelemetry.io/otel v1.31.0/go.mod h1:O0C14Yl9FgkjqcCZAsE053C13OaddMYr/hz6clDkEJE=
Expand Down Expand Up @@ -770,22 +770,22 @@ honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
k8s.io/api v0.18.2/go.mod h1:SJCWI7OLzhZSvbY7U8zwNl9UA4o1fizoug34OV/2r78=
k8s.io/api v0.18.4/go.mod h1:lOIQAKYgai1+vz9J7YcDZwC26Z0zQewYOGWdyIPUUQ4=
k8s.io/api v0.32.0 h1:OL9JpbvAU5ny9ga2fb24X8H6xQlVp+aJMFlgtQjR9CE=
k8s.io/api v0.32.0/go.mod h1:4LEwHZEf6Q/cG96F3dqR965sYOfmPM7rq81BLgsE0p0=
k8s.io/api v0.32.1 h1:f562zw9cy+GvXzXf0CKlVQ7yHJVYzLfL6JAS4kOAaOc=
k8s.io/api v0.32.1/go.mod h1:/Yi/BqkuueW1BgpoePYBRdDYfjPF5sgTr5+YqDZra5k=
k8s.io/apiextensions-apiserver v0.18.2/go.mod h1:q3faSnRGmYimiocj6cHQ1I3WpLqmDgJFlKL37fC4ZvY=
k8s.io/apiextensions-apiserver v0.18.4/go.mod h1:NYeyeYq4SIpFlPxSAB6jHPIdvu3hL0pc36wuRChybio=
k8s.io/apiextensions-apiserver v0.31.1 h1:L+hwULvXx+nvTYX/MKM3kKMZyei+UiSXQWciX/N6E40=
k8s.io/apiextensions-apiserver v0.31.1/go.mod h1:tWMPR3sgW+jsl2xm9v7lAyRF1rYEK71i9G5dRtkknoQ=
k8s.io/apimachinery v0.18.2/go.mod h1:9SnR/e11v5IbyPCGbvJViimtJ0SwHG4nfZFjU77ftcA=
k8s.io/apimachinery v0.18.4/go.mod h1:OaXp26zu/5J7p0f92ASynJa1pZo06YlV9fG7BoWbCko=
k8s.io/apimachinery v0.32.0 h1:cFSE7N3rmEEtv4ei5X6DaJPHHX0C+upp+v5lVPiEwpg=
k8s.io/apimachinery v0.32.0/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE=
k8s.io/apimachinery v0.32.1 h1:683ENpaCBjma4CYqsmZyhEzrGz6cjn1MY/X2jB2hkZs=
k8s.io/apimachinery v0.32.1/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE=
k8s.io/apiserver v0.18.2/go.mod h1:Xbh066NqrZO8cbsoenCwyDJ1OSi8Ag8I2lezeHxzwzw=
k8s.io/apiserver v0.18.4/go.mod h1:q+zoFct5ABNnYkGIaGQ3bcbUNdmPyOCoEBcg51LChY8=
k8s.io/client-go v0.18.2/go.mod h1:Xcm5wVGXX9HAA2JJ2sSBUn3tCJ+4SVlCbl2MNNv+CIU=
k8s.io/client-go v0.18.4/go.mod h1:f5sXwL4yAZRkAtzOxRWUhA/N8XzGCb+nPZI8PfobZ9g=
k8s.io/client-go v0.32.0 h1:DimtMcnN/JIKZcrSrstiwvvZvLjG0aSxy8PxN8IChp8=
k8s.io/client-go v0.32.0/go.mod h1:boDWvdM1Drk4NJj/VddSLnx59X3OPgwrOo0vGbtq9+8=
k8s.io/client-go v0.32.1 h1:otM0AxdhdBIaQh7l1Q0jQpmo7WOFIk5FFa4bg6YMdUU=
k8s.io/client-go v0.32.1/go.mod h1:aTTKZY7MdxUaJ/KiUs8D+GssR9zJZi77ZqtzcGXIiDg=
k8s.io/code-generator v0.18.2/go.mod h1:+UHX5rSbxmR8kzS+FAv7um6dtYrZokQvjHpDSYRVkTc=
k8s.io/code-generator v0.18.4/go.mod h1:TgNEVx9hCyPGpdtCWA34olQYLkh3ok9ar7XfSsr8b6c=
k8s.io/component-base v0.18.2/go.mod h1:kqLlMuhJNHQ9lz8Z7V5bxUUtjFZnrypArGl58gmDfUM=
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/perconaservermongodb/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ func readDefaultCR(name, namespace string) (*psmdbv1.PerconaServerMongoDB, error

cr.Name = name
cr.Namespace = namespace
cr.Spec.InitImage = "percona/percona-server-mongodb-operator:1.19.0"
cr.Spec.InitImage = "perconalab/percona-server-mongodb-operator:main"
return cr, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
- secretRef:
name: internal-reconcile-statefulset-cr-users
optional: false
image: percona/percona-server-mongodb:8.0.4-1-multi
image: perconalab/percona-server-mongodb-operator:main-mongod8.0
imagePullPolicy: Always
livenessProbe:
exec:
Expand Down Expand Up @@ -185,7 +185,7 @@ spec:
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
image: percona/percona-backup-mongodb:2.8.0-multi
image: perconalab/percona-server-mongodb-operator:main-backup
imagePullPolicy: Always
name: backup-agent
resources: {}
Expand All @@ -204,7 +204,7 @@ spec:
initContainers:
- command:
- /init-entrypoint.sh
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
name: mongo-init
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
- secretRef:
name: internal-reconcile-statefulset-cr-users
optional: false
image: percona/percona-server-mongodb:8.0.4-1-multi
image: perconalab/percona-server-mongodb-operator:main-mongod8.0
imagePullPolicy: Always
livenessProbe:
exec:
Expand Down Expand Up @@ -185,7 +185,7 @@ spec:
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
image: percona/percona-backup-mongodb:2.8.0-multi
image: perconalab/percona-server-mongodb-operator:main-backup
imagePullPolicy: Always
name: backup-agent
resources: {}
Expand All @@ -204,7 +204,7 @@ spec:
initContainers:
- command:
- /init-entrypoint.sh
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
name: mongo-init
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
- secretRef:
name: internal-reconcile-statefulset-cr-users
optional: false
image: percona/percona-server-mongodb:8.0.4-1-multi
image: perconalab/percona-server-mongodb-operator:main-mongod8.0
imagePullPolicy: Always
livenessProbe:
exec:
Expand Down Expand Up @@ -185,7 +185,7 @@ spec:
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
image: percona/percona-backup-mongodb:2.8.0-multi
image: perconalab/percona-server-mongodb-operator:main-backup
imagePullPolicy: Always
name: backup-agent
resources: {}
Expand All @@ -204,7 +204,7 @@ spec:
initContainers:
- command:
- /init-entrypoint.sh
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
name: mongo-init
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
- secretRef:
name: internal-reconcile-statefulset-cr-users
optional: false
image: percona/percona-server-mongodb:8.0.4-1-multi
image: perconalab/percona-server-mongodb-operator:main-mongod8.0
imagePullPolicy: Always
livenessProbe:
exec:
Expand Down Expand Up @@ -154,7 +154,7 @@ spec:
initContainers:
- command:
- /init-entrypoint.sh
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
name: mongo-init
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
- secretRef:
name: internal-reconcile-statefulset-cr-users
optional: false
image: percona/percona-server-mongodb:8.0.4-1-multi
image: perconalab/percona-server-mongodb-operator:main-mongod8.0
imagePullPolicy: Always
livenessProbe:
exec:
Expand Down Expand Up @@ -185,7 +185,7 @@ spec:
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
image: percona/percona-backup-mongodb:2.8.0-multi
image: perconalab/percona-server-mongodb-operator:main-backup
imagePullPolicy: Always
name: backup-agent
resources: {}
Expand All @@ -204,7 +204,7 @@ spec:
initContainers:
- command:
- /init-entrypoint.sh
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
name: mongo-init
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
- secretRef:
name: internal-reconcile-statefulset-cr-users
optional: false
image: percona/percona-server-mongodb:8.0.4-1-multi
image: perconalab/percona-server-mongodb-operator:main-mongod8.0
imagePullPolicy: Always
livenessProbe:
exec:
Expand Down Expand Up @@ -184,7 +184,7 @@ spec:
value: mongodb://$(PBM_AGENT_MONGODB_USERNAME):$(PBM_AGENT_MONGODB_PASSWORD)@$(POD_NAME)
- name: PBM_AGENT_TLS_ENABLED
value: "true"
image: percona/percona-backup-mongodb:2.8.0-multi
image: perconalab/percona-server-mongodb-operator:main-backup
imagePullPolicy: Always
name: backup-agent
resources: {}
Expand All @@ -203,7 +203,7 @@ spec:
initContainers:
- command:
- /init-entrypoint.sh
image: percona/percona-server-mongodb-operator:1.19.0
image: perconalab/percona-server-mongodb-operator:main
imagePullPolicy: Always
name: mongo-init
resources:
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package version

var (
Version = "1.19.0"
Version = "1.20.0"
)

0 comments on commit 555b56a

Please sign in to comment.