Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into dev/K8SPXC-1411
Browse files Browse the repository at this point in the history
  • Loading branch information
pooknull committed Nov 8, 2024
2 parents b48429c + 80aa212 commit aab7472
Show file tree
Hide file tree
Showing 272 changed files with 2,274 additions and 643 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ vet: ## Run go vet against code.
test: manifests generate fmt vet envtest ## Run tests.
DISABLE_TELEMETRY=true KUBEBUILDER_ASSETS="$(shell $(ENVTEST) --arch=amd64 use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out

e2e-test:
IMAGE=$(IMAGE) ./e2e-tests/$(TEST)/run

##@ Build

.PHONY: build
Expand Down
1 change: 1 addition & 0 deletions build/pxc-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ auth_plugin=${DEFAULT_AUTHENTICATION_PLUGIN}
if [[ -f /var/lib/mysql/auth_plugin ]]; then
prev_auth_plugin=$(cat /var/lib/mysql/auth_plugin)
if [[ ${prev_auth_plugin} != "mysql_native_password" && ${auth_plugin} == "mysql_native_password" ]]; then
set +o xtrace
echo "FATAL: It's forbidden to switch from ${prev_auth_plugin} to ${auth_plugin}."
echo "If ProxySQL is enabled operator uses mysql_native_password since it doesn't work with caching_sha2_password."
echo "Using caching_sha2_password will break frontend connections in ProxySQL."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: custom
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: custom
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_custom-proxysql-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: custom
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_custom-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: custom
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_custom-pxc-k127-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: custom
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_custom-pxc-k127.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: custom
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_custom-pxc-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: custom
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_custom-pxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: custom
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: hostname
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: hostname
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: hostname
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_hostname-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: hostname
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: hostname
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_hostname-pxc-k127.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: hostname
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_hostname-pxc-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: hostname
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_hostname-pxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: hostname
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: region
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: region
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_region-proxysql-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: region
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_region-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: region
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_region-pxc-k127-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: region
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_region-pxc-k127.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: region
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_region-pxc-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: region
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_region-pxc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: region
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: zone
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_zone-proxysql-k127.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: zone
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_zone-proxysql-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: zone
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_zone-proxysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: proxysql
app.kubernetes.io/instance: zone
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: proxydata
spec:
accessModes:
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/affinity/compare/statefulset_zone-pxc-k127-oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ spec:
type: RollingUpdate
volumeClaimTemplates:
- metadata:
labels:
app.kubernetes.io/component: pxc
app.kubernetes.io/instance: zone
app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
app.kubernetes.io/name: percona-xtradb-cluster
app.kubernetes.io/part-of: percona-xtradb-cluster
name: datadir
spec:
accessModes:
Expand Down
Loading

0 comments on commit aab7472

Please sign in to comment.