generated from aws-controllers-k8s/controller-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 12
/
generator.yaml
52 lines (52 loc) · 1.59 KB
/
generator.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
ignore:
resource_names:
- Configuration
- User
resources:
Broker:
hooks:
sdk_update_pre_build_request:
template_path: hooks/sdk_update_pre_build_request.go.tpl
sdk_delete_pre_build_request:
template_path: hooks/sdk_delete_pre_build_request.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/sdk_read_one_post_set_output.go.tpl
sdk_update_pre_set_output:
template_path: hooks/sdk_update_pre_set_output.go.tpl
renames:
operations:
CreateBroker:
input_fields:
BrokerName: Name
fields:
securityGroups:
references:
service_name: ec2
resource: SecurityGroup
path: Status.ID
SubnetIDs:
references:
service_name: ec2
resource: Subnet
path: Status.SubnetID
BrokerState:
from:
operation: DescribeBroker
path: BrokerState
is_read_only: true
BrokerInstances:
from:
operation: DescribeBroker
path: BrokerInstances
is_read_only: true
Users:
compare:
# NOTE(jaypipes): For RabbitMQ brokers, the Users field returned by
# DescribeBroker is *always* an empty slice because the only settable
# user information at the moment is for the single admin user. So, as
# a workaround for right now to prevent update calls from being made
# unnecessarily, we ignore Users for the purposes of comparing
# resources.
is_ignored: true
Users.Password:
is_secret: true