-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add mysql-5.7 mysql-8.0 and PolarDB-X e2e test cases (#5370)
- Loading branch information
1 parent
385b383
commit 7143477
Showing
43 changed files
with
623 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ spec: | |
- componentName: mongodb | ||
volumeClaimTemplates: | ||
- name: data | ||
storage: "20Gi" | ||
storage: "21Gi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ spec: | |
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 20Gi | ||
storage: 21Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
# Source: mysql-cluster/templates/rbac.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: kb-mysql-57-cluster | ||
namespace: default | ||
labels: | ||
helm.sh/chart: mysql-cluster-0.7.0-alpha.0 | ||
app.kubernetes.io/version: "5.7.42" | ||
app.kubernetes.io/instance: mysql-57-cluster | ||
--- | ||
# Source: mysql-cluster/templates/rbac.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: kb-mysql-57-cluster | ||
labels: | ||
helm.sh/chart: mysql-cluster-0.7.0-alpha.0 | ||
app.kubernetes.io/version: "5.7.42" | ||
app.kubernetes.io/instance: mysql-57-cluster | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: kubeblocks-volume-protection-pod-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kb-mysqlcluster | ||
namespace: default | ||
--- | ||
# Source: mysql-cluster/templates/rbac.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: kb-mysql-57-cluster | ||
labels: | ||
helm.sh/chart: mysql-cluster-0.7.0-alpha.0 | ||
app.kubernetes.io/version: "5.7.42" | ||
app.kubernetes.io/instance: mysql-57-cluster | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: kubeblocks-cluster-pod-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kb-mysqlcluster | ||
namespace: default | ||
--- | ||
# Source: mysql-cluster/templates/cluster.yaml | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: Cluster | ||
metadata: | ||
name: mysql-57-cluster | ||
labels: | ||
helm.sh/chart: mysql-cluster-0.7.0-alpha.0 | ||
app.kubernetes.io/version: "5.7.42" | ||
app.kubernetes.io/instance: mysql-57-cluster | ||
spec: | ||
clusterVersionRef: mysql-5.7.42 | ||
terminationPolicy: Delete | ||
affinity: | ||
podAntiAffinity: Preferred | ||
topologyKeys: | ||
- kubernetes.io/hostname | ||
tenancy: SharedNode | ||
clusterDefinitionRef: mysql # ref clusterdefinition.name | ||
componentSpecs: | ||
- name: mysql | ||
componentDefRef: mysql # ref clusterdefinition componentDefs.name | ||
monitor: false | ||
replicas: 1 | ||
serviceAccountName: kb-mysql-57-cluster | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: "1Gi" | ||
requests: | ||
cpu: "1" | ||
memory: "1Gi" | ||
services: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: mysql-57-cluster-vscale- | ||
spec: | ||
clusterRef: mysql-57-cluster | ||
type: VerticalScaling | ||
verticalScaling: | ||
- componentName: mysql | ||
requests: | ||
cpu: "1.5" | ||
memory: 1.5Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: mysql-57-cluster-hscale-out- | ||
spec: | ||
clusterRef: mysql-57-cluster | ||
type: HorizontalScaling | ||
horizontalScaling: | ||
- componentName: mysql | ||
replicas: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: mysql-57-cluster-hscale-in- | ||
spec: | ||
clusterRef: mysql-57-cluster | ||
type: HorizontalScaling | ||
horizontalScaling: | ||
- componentName: mysql | ||
replicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: mysql-57-cluster-stop- | ||
spec: | ||
clusterRef: mysql-57-cluster | ||
ttlSecondsAfterSucceed: 27017 | ||
type: Stop | ||
restart: | ||
- componentName: mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: mysql-57-cluster-start- | ||
spec: | ||
clusterRef: mysql-57-cluster | ||
ttlSecondsAfterSucceed: 27017 | ||
type: Start | ||
restart: | ||
- componentName: mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: mysql-57-cluster-restart- | ||
spec: | ||
clusterRef: mysql-57-cluster | ||
ttlSecondsAfterSucceed: 27017 | ||
type: Restart | ||
restart: | ||
- componentName: mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- | ||
# Source: mysql-cluster/templates/rbac.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: kb-mysqlcluster | ||
namespace: default | ||
labels: | ||
helm.sh/chart: mysql-cluster-0.7.0-alpha.0 | ||
app.kubernetes.io/version: "8.0.33" | ||
app.kubernetes.io/instance: mysqlcluster | ||
--- | ||
# Source: mysql-cluster/templates/rbac.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: kb-mysqlcluster | ||
labels: | ||
helm.sh/chart: mysql-cluster-0.7.0-alpha.0 | ||
app.kubernetes.io/version: "8.0.33" | ||
app.kubernetes.io/instance: mysqlcluster | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: kubeblocks-volume-protection-pod-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kb-mysqlcluster | ||
namespace: default | ||
--- | ||
# Source: mysql-cluster/templates/rbac.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: kb-mysqlcluster | ||
labels: | ||
helm.sh/chart: mysql-cluster-0.7.0-alpha.0 | ||
app.kubernetes.io/version: "8.0.33" | ||
app.kubernetes.io/instance: mysqlcluster | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: kubeblocks-cluster-pod-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kb-mysqlcluster | ||
namespace: default | ||
--- | ||
# Source: mysql-cluster/templates/cluster.yaml | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: Cluster | ||
metadata: | ||
name: mysqlcluster | ||
labels: | ||
helm.sh/chart: mysql-cluster-0.7.0-alpha.0 | ||
app.kubernetes.io/version: "8.0.33" | ||
app.kubernetes.io/instance: mysqlcluster | ||
spec: | ||
clusterVersionRef: mysql-8.0.33 | ||
terminationPolicy: Delete | ||
affinity: | ||
podAntiAffinity: Preferred | ||
topologyKeys: | ||
- kubernetes.io/hostname | ||
tenancy: SharedNode | ||
clusterDefinitionRef: mysql # ref clusterdefinition.name | ||
componentSpecs: | ||
- name: mysql | ||
componentDefRef: mysql # ref clusterdefinition componentDefs.name | ||
monitor: false | ||
replicas: 1 | ||
serviceAccountName: kb-mysqlcluster | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: "1Gi" | ||
requests: | ||
cpu: "1" | ||
memory: "1Gi" | ||
services: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: mysqlcluster-vscale- | ||
spec: | ||
clusterRef: mysqlcluster | ||
type: VerticalScaling | ||
verticalScaling: | ||
- componentName: mysql | ||
requests: | ||
cpu: "1.5" | ||
memory: 1.5Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: cluster-hscale-out- | ||
spec: | ||
clusterRef: mysqlcluster | ||
type: HorizontalScaling | ||
horizontalScaling: | ||
- componentName: mysql | ||
replicas: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: cluster-hscale-in- | ||
spec: | ||
clusterRef: mysqlcluster | ||
type: HorizontalScaling | ||
horizontalScaling: | ||
- componentName: mysql | ||
replicas: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: cluster-stop- | ||
spec: | ||
clusterRef: mysqlcluster | ||
ttlSecondsAfterSucceed: 27017 | ||
type: Stop | ||
restart: | ||
- componentName: mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps.kubeblocks.io/v1alpha1 | ||
kind: OpsRequest | ||
metadata: | ||
generateName: cluster-start- | ||
spec: | ||
clusterRef: mysqlcluster | ||
ttlSecondsAfterSucceed: 27017 | ||
type: Start | ||
restart: | ||
- componentName: mysql |
Oops, something went wrong.