generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathactions.yaml
99 lines (86 loc) · 3.4 KB
/
actions.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Copyright 2022 Canonical Ltd.
# See LICENSE file for licensing details.
get-cluster-status:
description: Get cluster status information
params:
cluster-set:
type: boolean
default: False
description: Whether to fetch the cluster or cluster-set status.
Possible values are False (default) or True.
get-password:
description: Fetch the system user's password, which is used by charm.
It is for internal charm users and SHOULD NOT be used by applications.
params:
username:
type: string
description: The username, the default value 'root'.
Possible values - root, serverconfig, clusteradmin.
set-password:
description: Change the system user's password, which is used by charm.
It is for internal charm users and SHOULD NOT be used by applications.
params:
username:
type: string
description: The username, the default value 'root'.
Possible values - root, serverconfig, clusteradmin.
password:
type: string
description: The password will be auto-generated if this option is not specified.
set-tls-private-key:
description:
Set the privates key, which will be used for certificate signing requests (CSR). Run
for each unit separately.
params:
internal-key:
type: string
description: The content of private key for internal communications with
clients. Content will be auto-generated if this option is not specified.
create-backup:
description: Create a database backup using xtrabackup.
S3 credentials are retrieved from a relation with the S3 integrator charm.
list-backups:
description: List available backup_ids in the S3 bucket and path provided by the S3 integrator charm.
restore:
description: Restore a database backup using xtrabackup.
S3 credentials are retrieved from a relation with the S3 integrator charm.
params:
backup-id:
type: string
description: A backup-id to identify the backup to restore (format = %Y-%m-%dT%H:%M:%SZ)
pre-upgrade-check:
description: Run necessary pre-upgrade checks and preparations before executing a charm refresh.
create-replication:
description: |
Create replication between two related clusters.
This action is must be run on the offer side of the relation.
params:
name:
type: string
description: A (optional) name for this replication.
default: default
promote-to-primary:
description: |
Promotes this cluster to become the primary in the cluster-set. Used for safe switchover or failover.
Can only be run against the charm leader unit of a standby cluster.
params:
force:
type: boolean
default: False
description: |
Use force when previous primary is unreachable (failover). Will invalidate previous
primary.
recreate-cluster:
description: |
Recreates cluster on one or more standalone units that were previously part of a standby cluster.
When a standby cluster is removed from an async replication relation, the cluster will be dissolved and
each unit will be kept in blocked status. Recreating the cluster allows to rejoin the async replication
relation, or usage as a standalone cluster.
rejoin-cluster:
description: |
Rejoins an invalidated cluster to the cluster-set, after a previous failover or switchover.
params:
cluster-name:
type: string
description: |
The name of the cluster to be rejoined.