diff --git a/deploy/bundle.yaml b/deploy/bundle.yaml index 433a815c7..b49a9b175 100644 --- a/deploy/bundle.yaml +++ b/deploy/bundle.yaml @@ -11522,7 +11522,7 @@ spec: value: percona-xtradb-cluster-operator - name: DISABLE_TELEMETRY value: "false" - image: perconalab/percona-xtradb-cluster-operator:main + image: percona/percona-xtradb-cluster-operator:1.16.0 imagePullPolicy: Always livenessProbe: failureThreshold: 3 diff --git a/deploy/cr-minimal.yaml b/deploy/cr-minimal.yaml index 26fccfbac..e6ee1e879 100644 --- a/deploy/cr-minimal.yaml +++ b/deploy/cr-minimal.yaml @@ -16,7 +16,7 @@ spec: enabled: false pxc: size: 1 - image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0 + image: percona/percona-xtradb-cluster:8.0.39-30.1 volumeSpec: persistentVolumeClaim: resources: @@ -25,7 +25,7 @@ spec: haproxy: enabled: true size: 1 - image: perconalab/percona-xtradb-cluster-operator:main-haproxy + image: percona/haproxy:2.8.11 logcollector: enabled: true - image: perconalab/percona-xtradb-cluster-operator:main-logcollector + image: percona/percona-xtradb-cluster-operator:1.16.0-logcollector-fluentbit3.2.2 diff --git a/deploy/cr.yaml b/deploy/cr.yaml index 44ba9cd63..42fc8d06c 100644 --- a/deploy/cr.yaml +++ b/deploy/cr.yaml @@ -22,7 +22,7 @@ spec: # sslInternalSecretName: cluster1-ssl-internal # logCollectorSecretName: cluster1-log-collector-secrets # initContainer: -# image: perconalab/percona-xtradb-cluster-operator:main +# image: percona/percona-xtradb-cluster-operator:1.16.0 # containerSecurityContext: # privileged: false # runAsUser: 1001 @@ -58,7 +58,7 @@ spec: schedule: "0 4 * * *" pxc: size: 3 - image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0 + image: percona/percona-xtradb-cluster:8.0.39-30.1 autoRecovery: true # expose: # enabled: true @@ -206,7 +206,7 @@ spec: haproxy: enabled: true size: 3 - image: perconalab/percona-xtradb-cluster-operator:main-haproxy + image: percona/haproxy:2.8.11 # imagePullPolicy: Always # schedulerName: mycustom-scheduler # readinessDelaySec: 15 @@ -381,7 +381,7 @@ spec: proxysql: enabled: false size: 3 - image: perconalab/percona-xtradb-cluster-operator:main-proxysql + image: percona/proxysql2:2.7.1 # imagePullPolicy: Always # configuration: | # datadir="/var/lib/proxysql" @@ -543,7 +543,7 @@ spec: # - 10.0.0.0/8 logcollector: enabled: true - image: perconalab/percona-xtradb-cluster-operator:main-logcollector + image: percona/percona-xtradb-cluster-operator:1.16.0-logcollector-fluentbit3.2.2 # configuration: | # [OUTPUT] # Name es @@ -576,7 +576,7 @@ spec: pmm: enabled: false - image: perconalab/pmm-client:dev-latest + image: percona/pmm-client:2.44.0 serverHost: monitoring-service # serverUser: admin # pxcParams: "--disable-tablestats-limit=2000" @@ -589,7 +589,7 @@ spec: cpu: 300m backup: # allowParallel: true - image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup + image: percona/percona-xtradb-cluster-operator:1.16.0-pxc8.0-backup-pxb8.0.35 # backoffLimit: 6 # activeDeadlineSeconds: 3600 # serviceAccountName: percona-xtradb-cluster-operator diff --git a/deploy/cw-bundle.yaml b/deploy/cw-bundle.yaml index 588c3c63c..ff6ce4ba4 100644 --- a/deploy/cw-bundle.yaml +++ b/deploy/cw-bundle.yaml @@ -11532,7 +11532,7 @@ spec: value: percona-xtradb-cluster-operator - name: DISABLE_TELEMETRY value: "false" - image: perconalab/percona-xtradb-cluster-operator:main + image: percona/percona-xtradb-cluster-operator:1.16.0 imagePullPolicy: Always resources: limits: diff --git a/deploy/cw-operator.yaml b/deploy/cw-operator.yaml index 4e498668c..c9dd05415 100644 --- a/deploy/cw-operator.yaml +++ b/deploy/cw-operator.yaml @@ -42,7 +42,7 @@ spec: value: percona-xtradb-cluster-operator - name: DISABLE_TELEMETRY value: "false" - image: perconalab/percona-xtradb-cluster-operator:main + image: percona/percona-xtradb-cluster-operator:1.16.0 imagePullPolicy: Always resources: limits: diff --git a/deploy/operator.yaml b/deploy/operator.yaml index de903e039..67bd5c469 100644 --- a/deploy/operator.yaml +++ b/deploy/operator.yaml @@ -45,7 +45,7 @@ spec: value: percona-xtradb-cluster-operator - name: DISABLE_TELEMETRY value: "false" - image: perconalab/percona-xtradb-cluster-operator:main + image: percona/percona-xtradb-cluster-operator:1.16.0 imagePullPolicy: Always livenessProbe: failureThreshold: 3 diff --git a/e2e-tests/custom-users/compare/user-five-57.sql b/e2e-tests/custom-users/compare/user-five-57.sql new file mode 100644 index 000000000..d91c85576 --- /dev/null +++ b/e2e-tests/custom-users/compare/user-five-57.sql @@ -0,0 +1,4 @@ +GRANT USAGE ON *.* TO 'user-five'@'%' +GRANT SELECT, UPDATE, DELETE ON `db1`.* TO 'user-five'@'%' +GRANT SELECT, UPDATE, DELETE ON `db2`.* TO 'user-five'@'%' +GRANT SELECT, UPDATE, DELETE ON `db3`.* TO 'user-five'@'%' diff --git a/e2e-tests/custom-users/compare/user-four-2-57.sql b/e2e-tests/custom-users/compare/user-four-2-57.sql new file mode 100644 index 000000000..11be89d86 --- /dev/null +++ b/e2e-tests/custom-users/compare/user-four-2-57.sql @@ -0,0 +1,4 @@ +GRANT USAGE ON *.* TO 'user-four'@'%' +GRANT SELECT, UPDATE ON `db1`.* TO 'user-four'@'%' +GRANT SELECT, UPDATE ON `db2`.* TO 'user-four'@'%' +GRANT SELECT, UPDATE ON `db3`.* TO 'user-four'@'%' diff --git a/e2e-tests/custom-users/compare/user-four-3-57.sql b/e2e-tests/custom-users/compare/user-four-3-57.sql new file mode 100644 index 000000000..268149a72 --- /dev/null +++ b/e2e-tests/custom-users/compare/user-four-3-57.sql @@ -0,0 +1,4 @@ +GRANT USAGE ON *.* TO 'user-four'@'%' +GRANT SELECT, UPDATE, DELETE ON `db1`.* TO 'user-four'@'%' +GRANT SELECT, UPDATE, DELETE ON `db2`.* TO 'user-four'@'%' +GRANT SELECT, UPDATE, DELETE ON `db3`.* TO 'user-four'@'%' diff --git a/e2e-tests/custom-users/compare/user-four-4-57.sql b/e2e-tests/custom-users/compare/user-four-4-57.sql new file mode 100644 index 000000000..fd56ff360 --- /dev/null +++ b/e2e-tests/custom-users/compare/user-four-4-57.sql @@ -0,0 +1,4 @@ +GRANT USAGE ON *.* TO 'user-four'@'%' +GRANT SELECT, INSERT, UPDATE, DELETE ON `db1`.* TO 'user-four'@'%' +GRANT SELECT, UPDATE, DELETE ON `db2`.* TO 'user-four'@'%' +GRANT SELECT, UPDATE, DELETE ON `db3`.* TO 'user-four'@'%' diff --git a/e2e-tests/custom-users/compare/user-four-57.sql b/e2e-tests/custom-users/compare/user-four-57.sql new file mode 100644 index 000000000..0f267fd68 --- /dev/null +++ b/e2e-tests/custom-users/compare/user-four-57.sql @@ -0,0 +1,3 @@ +GRANT USAGE ON *.* TO 'user-four'@'%' +GRANT SELECT, UPDATE ON `db1`.* TO 'user-four'@'%' +GRANT SELECT, UPDATE ON `db2`.* TO 'user-four'@'%' diff --git a/e2e-tests/custom-users/compare/user-one-2-57.sql b/e2e-tests/custom-users/compare/user-one-2-57.sql new file mode 100644 index 000000000..fbffaa448 --- /dev/null +++ b/e2e-tests/custom-users/compare/user-one-2-57.sql @@ -0,0 +1,5 @@ +GRANT USAGE ON *.* TO 'user-one'@'127.0.0.1' +GRANT SELECT, INSERT ON `db1`.* TO 'user-one'@'127.0.0.1' +GRANT SELECT, INSERT ON `db2`.* TO 'user-one'@'127.0.0.1' +GRANT SELECT, INSERT ON `db1`.* TO 'user-one'@'%' +GRANT SELECT, INSERT ON `db2`.* TO 'user-one'@'%' diff --git a/e2e-tests/custom-users/compare/user-one-57.sql b/e2e-tests/custom-users/compare/user-one-57.sql new file mode 100644 index 000000000..753cf0b58 --- /dev/null +++ b/e2e-tests/custom-users/compare/user-one-57.sql @@ -0,0 +1,3 @@ +GRANT USAGE ON *.* TO 'user-one'@'%' +GRANT SELECT, INSERT ON `db1`.* TO 'user-one'@'%' +GRANT SELECT, INSERT ON `db2`.* TO 'user-one'@'%' diff --git a/e2e-tests/custom-users/compare/user-three-57.sql b/e2e-tests/custom-users/compare/user-three-57.sql new file mode 100644 index 000000000..df32fc976 --- /dev/null +++ b/e2e-tests/custom-users/compare/user-three-57.sql @@ -0,0 +1 @@ +GRANT USAGE ON *.* TO 'user-three'@'%' diff --git a/e2e-tests/custom-users/compare/user-two-57.sql b/e2e-tests/custom-users/compare/user-two-57.sql new file mode 100644 index 000000000..13394515e --- /dev/null +++ b/e2e-tests/custom-users/compare/user-two-57.sql @@ -0,0 +1 @@ +GRANT INSERT, UPDATE ON *.* TO 'user-two'@'%' diff --git a/e2e-tests/custom-users/run b/e2e-tests/custom-users/run index 34502abab..a16ace5ee 100755 --- a/e2e-tests/custom-users/run +++ b/e2e-tests/custom-users/run @@ -53,7 +53,7 @@ kubectl_bin patch pxc some-name --type=merge -p='{ "name":"user-four", "dbs": ["db1", "db2"], "grants":["SELECT, UPDATE"], - "hosts": ["%"] + "hosts": ["%"] } ]} }' @@ -75,7 +75,7 @@ kubectl_bin patch pxc some-name --type=merge -p='{ "name":"user-four", "dbs": ["db1", "db2", "db3"], "grants":["SELECT, UPDATE"], - "hosts": ["%"] + "hosts": ["%"] } ]} }' @@ -89,7 +89,7 @@ kubectl_bin patch pxc some-name --type=merge -p='{ "name":"user-four", "dbs": ["db1", "db2", "db3"], "grants":["SELECT, UPDATE, DELETE"], - "hosts": ["%"] + "hosts": ["%"] } ]} }' @@ -115,7 +115,7 @@ kubectl_bin patch pxc some-name --type=merge -p='{ "name":"user-five", "dbs": ["db1", "db2", "db3"], "grants":["SELECT, UPDATE, DELETE"], - "hosts": ["%"] + "hosts": ["%"] } ]} }' diff --git a/e2e-tests/functions b/e2e-tests/functions index eed6e44d7..93bdda43f 100755 --- a/e2e-tests/functions +++ b/e2e-tests/functions @@ -16,7 +16,7 @@ SKIP_REMOTE_BACKUPS=${SKIP_REMOTE_BACKUPS:-1} PMM_SERVER_VER=${PMM_SERVER_VER:-"9.9.9"} IMAGE_PMM_CLIENT=${IMAGE_PMM_CLIENT:-"perconalab/pmm-client:dev-latest"} IMAGE_PMM_SERVER=${IMAGE_PMM_SERVER:-"perconalab/pmm-server:dev-latest"} -CERT_MANAGER_VER="1.15.2" +CERT_MANAGER_VER="1.16.2" tmp_dir=$(mktemp -d) sed=$(which gsed || which sed) date=$(which gdate || which date) @@ -540,12 +540,14 @@ compare_mysql_cmd() { local command="$2" local uri="$3" local postfix="$4" - local expected_result=${test_dir}/compare/${command_id}${postfix}.sql - - if [[ $IMAGE_PXC =~ 8\.0 ]] && [ -f ${test_dir}/compare/${command_id}${postfix}-80.sql ]; then - expected_result=${test_dir}/compare/${command_id}${postfix}-80.sql - elif [[ $IMAGE_PXC =~ 8\.4 ]] && [ -f ${test_dir}/compare/${command_id}${postfix}-84.sql ]; then - expected_result=${test_dir}/compare/${command_id}${postfix}-84.sql + local expected_result=$test_dir/compare/$command_id$postfix.sql + + if [[ $IMAGE_PXC =~ 8\.4 && -f $test_dir/compare/$command_id$postfix-84.sql ]]; then + expected_result=$test_dir/compare/$command_id$postfix-84.sql + elif [[ $IMAGE_PXC =~ 8\.0 && -f $test_dir/compare/$command_id$postfix-80.sql ]]; then + expected_result=$test_dir/compare/$command_id$postfix-80.sql + elif [[ $IMAGE_PXC =~ 5\.7 && -f $test_dir/compare/$command_id$postfix-57.sql ]]; then + expected_result=$test_dir/compare/$command_id$postfix-57.sql fi run_mysql "$command" "$uri" \ @@ -612,10 +614,12 @@ compare_mysql_user() { local user=$(echo $uri | sed -e 's/.*-u//; s/ .*//') local expected_result=${test_dir}/compare/$user$postfix.sql - if [[ $IMAGE_PXC =~ 8\.0 ]] && [ -f ${test_dir}/compare/$user$postfix-80.sql ]; then - expected_result=${test_dir}/compare/$user$postfix-80.sql - elif [[ $IMAGE_PXC =~ 8\.4 ]] && [ -f ${test_dir}/compare/$user$postfix-84.sql ]; then - expected_result=${test_dir}/compare/$user$postfix-84.sql + if [[ $IMAGE_PXC =~ 8\.4 && -f $test_dir/compare/$user$postfix-84.sql ]]; then + expected_result=$test_dir/compare/$user$postfix-84.sql + elif [[ $IMAGE_PXC =~ 8\.0 && -f $test_dir/compare/$user$postfix-80.sql ]]; then + expected_result=$test_dir/compare/$user$postfix-80.sql + elif [[ $IMAGE_PXC =~ 5\.7 && -f $test_dir/compare/$user$postfix-57.sql ]]; then + expected_result=$test_dir/compare/$user$postfix-57.sql fi (run_mysql "SHOW GRANTS;" "$uri" || :) \ diff --git a/e2e-tests/init-deploy/run b/e2e-tests/init-deploy/run index 5debd5b76..b4d18d434 100755 --- a/e2e-tests/init-deploy/run +++ b/e2e-tests/init-deploy/run @@ -27,7 +27,7 @@ compare_kubectl service/$cluster-pxc compare_kubectl service/$cluster-proxysql compare_kubectl service/$cluster-proxysql-unready -if [[ ${MYSQL_VERSION} == '8.0' ]]; then +if [[ ! $IMAGE_PXC =~ 5\.7 ]]; then desc 'check if mysql-state-monitor works as expected' for pod in $(kubectl_bin get pod -l app.kubernetes.io/component=pxc --no-headers | awk '{print $1}'); do state=$(kubectl_bin exec ${pod} -- cat /var/lib/mysql/mysql.state) diff --git a/e2e-tests/release_versions b/e2e-tests/release_versions index ef6f85642..61af93eb5 100644 --- a/e2e-tests/release_versions +++ b/e2e-tests/release_versions @@ -1,17 +1,20 @@ # Images versions -IMAGE_OPERATOR=perconalab/percona-xtradb-cluster-operator:main +IMAGE_OPERATOR=percona/percona-xtradb-cluster-operator:1.16.0 -IMAGE_PXC80=perconalab/percona-xtradb-cluster-operator:main-pxc8.0 -IMAGE_BACKUP80=perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup +IMAGE_PXC84=percona/percona-xtradb-cluster:8.4.2-2.1 +IMAGE_BACKUP84=percona/percona-xtradb-cluster-operator:1.16.0-pxc8.4-backup-pxb8.4.0 -IMAGE_PXC57=perconalab/percona-xtradb-cluster-operator:main-pxc5.7 -IMAGE_BACKUP57=perconalab/percona-xtradb-cluster-operator:main-pxc5.7-backup +IMAGE_PXC80=percona/percona-xtradb-cluster:8.0.39-30.1 +IMAGE_BACKUP80=percona/percona-xtradb-cluster-operator:1.16.0-pxc8.0-backup-pxb8.0.35 -IMAGE_PROXY=perconalab/percona-xtradb-cluster-operator:main-proxysql -IMAGE_HAPROXY=perconalab/percona-xtradb-cluster-operator:main-haproxy -IMAGE_LOGCOLLECTOR=perconalab/percona-xtradb-cluster-operator:main-logcollector -IMAGE_PMM_CLIENT=perconalab/pmm-client:dev-latest -IMAGE_PMM_SERVER=perconalab/pmm-server:dev-latest +IMAGE_PXC57=percona/percona-xtradb-cluster:5.7.44-31.65 +IMAGE_BACKUP57=percona/percona-xtradb-cluster-operator:1.16.0-pxc5.7-backup-pxb2.4.29 + +IMAGE_PROXY=percona/proxysql2:2.7.1 +IMAGE_HAPROXY=percona/haproxy:2.8.11 +IMAGE_LOGCOLLECTOR=percona/percona-xtradb-cluster-operator:1.16.0-logcollector-fluentbit3.2.2 +IMAGE_PMM_CLIENT=percona/pmm-client:2.44.0 +IMAGE_PMM_SERVER=percona/pmm-server:2.44.0 # Supported k8s versions GKE_MIN=1.28 @@ -20,6 +23,6 @@ EKS_MIN=1.28 EKS_MAX=1.31 AKS_MIN=1.28 AKS_MAX=1.31 -OPENSHIFT_MIN=4.13.52 -OPENSHIFT_MAX=4.17.3 +OPENSHIFT_MIN=4.14.42 +OPENSHIFT_MAX=4.17.8 MINIKUBE_REL=1.31.0 \ No newline at end of file