generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 13
/
actions.yaml
58 lines (53 loc) · 2.51 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
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
# In Juju 3 this will be easier to copy
set-password:
description: Change an internal system user's password.
It is for internal charm users and SHOULD NOT be used by applications.
This action must be called on the leader unit.
params:
username:
type: string
description: The internal username to set password for.
enum: [admin, sync]
password:
type: string
description: The password will be auto-generated if this option is not specified.
required: [username]
set-tls-private-key:
description: Sets the private key identifying the target unit, which will be used for certificate signing requests (CSR).
When updated, certificates will be reissued to the unit.
Run for each unit separately. Requires a valid relation to an application providing the `certificates` relation interface.
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.
Can be raw-string, or base64 encoded.
get-admin-credentials:
description: Get administrator authentication credentials for client commands
The returned client_properties can be used for Kafka bin commands using `--bootstrap-server` and `--command-config` for admin level administration
This action must be called on the leader unit.
get-listeners:
description: Get all active listeners and their port allocations
pre-upgrade-check:
description: Run necessary pre-upgrade checks before executing a charm upgrade.
rebalance:
description: Trigger a rebalance of cluster partitions based on configured goals
params:
mode:
type: string
description: The operation to issue to the balancer. This action must be called on the leader unit.
'full' - runs a full rebalance of all partitions across the whole cluster
'add' - evenly distributes replicas to new and available brokers
'remove' - moves under-replicated partition replicas assigned to decommissioned brokers, to available ones
enum: [full, add, remove]
dryrun:
description: Only generate the partition rebalance proposals and estimated result, without executing
type: boolean
default: true
brokerid:
description: Broker ID newly added to the cluster or to be removed. The broker ID is the unit number, e.g. kafka/0 is broker 0.
type: integer
minimum: 0
required: [mode]