-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dev/K8SPS-377
- Loading branch information
Showing
80 changed files
with
1,977 additions
and
24 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 150 | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: minio-secret | ||
type: Opaque |
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,7 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: minio-secret | ||
stringData: | ||
AWS_ACCESS_KEY_ID: some-access$\n"-key | ||
AWS_SECRET_ACCESS_KEY: some-$\n"secret-key |
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,26 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 150 | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: perconaservermysqls.ps.percona.com | ||
spec: | ||
group: ps.percona.com | ||
names: | ||
kind: PerconaServerMySQL | ||
listKind: PerconaServerMySQLList | ||
plural: perconaservermysqls | ||
shortNames: | ||
- ps | ||
singular: perconaservermysql | ||
scope: Namespaced | ||
--- | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
metadata: | ||
name: check-operator-deploy-status | ||
timeout: 120 | ||
commands: | ||
- script: kubectl assert exist-enhanced deployment percona-server-mysql-operator -n ${OPERATOR_NS:-$NAMESPACE} --field-selector status.readyReplicas=1 |
17 changes: 17 additions & 0 deletions
17
e2e-tests/tests/gr-scheduled-backup/01-deploy-operator.yaml
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,17 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestStep | ||
commands: | ||
- script: |- | ||
set -o errexit | ||
set -o xtrace | ||
source ../../functions | ||
init_temp_dir # do this only in the first TestStep | ||
apply_s3_storage_secrets | ||
deploy_operator | ||
deploy_non_tls_cluster_secrets | ||
deploy_tls_cluster_secrets | ||
deploy_client | ||
deploy_minio | ||
timeout: 300 |
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,54 @@ | ||
apiVersion: kuttl.dev/v1beta1 | ||
kind: TestAssert | ||
timeout: 420 | ||
--- | ||
kind: StatefulSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: gr-scheduled-backup-mysql | ||
status: | ||
observedGeneration: 1 | ||
replicas: 3 | ||
readyReplicas: 3 | ||
currentReplicas: 3 | ||
updatedReplicas: 3 | ||
collisionCount: 0 | ||
--- | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: gr-scheduled-backup-router | ||
status: | ||
observedGeneration: 1 | ||
replicas: 3 | ||
readyReplicas: 3 | ||
updatedReplicas: 3 | ||
--- | ||
apiVersion: ps.percona.com/v1alpha1 | ||
kind: PerconaServerMySQL | ||
metadata: | ||
name: gr-scheduled-backup | ||
spec: | ||
backup: | ||
backoffLimit: 3 | ||
status: | ||
conditions: | ||
- reason: Initializing | ||
status: "False" | ||
type: Initializing | ||
- reason: Ready | ||
status: "True" | ||
type: Ready | ||
- message: InnoDB cluster successfully bootstrapped with 3 nodes | ||
reason: InnoDBClusterBootstrapped | ||
status: "True" | ||
type: InnoDBClusterBootstrapped | ||
mysql: | ||
ready: 3 | ||
size: 3 | ||
state: ready | ||
router: | ||
ready: 3 | ||
size: 3 | ||
state: ready | ||
state: ready |
Oops, something went wrong.