Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit 497c649

Browse files
author
zane
committed
using lowerCamel case for keys
1 parent 8847d2e commit 497c649

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

examples/elasticache_memcached.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ kind: ElastiCache
33
metadata:
44
name: memcached13
55
spec:
6-
CacheSubnetGroupName: "loadtest-cluster-k8s"
7-
VpcSecurityGroupIds: "sg-0581b94aa3c0db58c, sg-02b6d0034e8c2fa1b"
8-
AutoMinorVersionUpgrade: true
9-
Engine: memcached
10-
EngineVersion: 1.5.10
11-
NumCacheNodes: 1
12-
Port: 11211
13-
CacheNodeType: "cache.m4.large"
6+
cacheSubnetGroupName: "loadtest-cluster-k8s"
7+
vpcSecurityGroupIds: "sg-0581b94aa3c0db58c, sg-02b6d0034e8c2fa1b"
8+
autoMinorVersionUpgrade: true
9+
engine: memcached
10+
engineVersion: 1.5.10
11+
numCacheNodes: 1
12+
port: 11211
13+
cacheNodeType: "cache.m4.large"

examples/elasticache_redis.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ kind: ElastiCache
33
metadata:
44
name: elasticache13
55
spec:
6-
CacheSubnetGroupName: "loadtest-cluster-k8s"
7-
VpcSecurityGroupIds: "sg-0581b94aa3c0db58c, sg-02b6d0034e8c2fa1b"
8-
AutoMinorVersionUpgrade: true
9-
Engine: redis
10-
EngineVersion: 5.0.0
11-
NumCacheNodes: 1
12-
Port: 6379
13-
CacheNodeType: "cache.m4.large"
6+
cacheSubnetGroupName: "loadtest-cluster-k8s"
7+
vpcSecurityGroupIds: "sg-0581b94aa3c0db58c, sg-02b6d0034e8c2fa1b"
8+
autoMinorVersionUpgrade: true
9+
engine: redis
10+
engineVersion: 5.0.0
11+
numCacheNodes: 1
12+
port: 6379
13+
cacheNodeType: "cache.m4.large"

models/elasticache.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,91 +23,91 @@ spec:
2323
ElastiCacheClusterName is the name of the Elasticache cluster to be created.
2424
structKey: ElastiCacheClusterName
2525
templateKey: ClusterName
26-
- key: AutoMinorVersionUpgrade
26+
- key: autoMinorVersionUpgrade
2727
type: bool
2828
description: |
2929
Indicates that minor engine upgrades will be applied automatically to the cache cluster during the maintenance window.
3030
structKey: AutoMinorVersionUpgrade
3131
templateKey: AutoMinorVersionUpgrade
32-
- key: AZMode
32+
- key: azMode
3333
type: string
3434
description: |
3535
For Memcached cache clusters, indicates whether the nodes are created in a single Availability Zone or across multiple Availability Zones in the cluster's region.
3636
structKey: AZMode
3737
templateKey: AZMode
38-
- key: CacheNodeType
38+
- key: cacheNodeType
3939
type: string
4040
description: |
4141
The compute and memory capacity of nodes in a cache cluster.
4242
structKey: CacheNodeType
4343
templateKey: CacheNodeType
44-
- key: CacheParameterGroupName
44+
- key: cacheParameterGroupName
4545
type: string
4646
description: |
4747
The name of the cache parameter group that is associated with this cache cluster.
4848
structKey: CacheParameterGroupName
4949
templateKey: CacheParameterGroupName
50-
- key: CacheSubnetGroupName
50+
- key: cacheSubnetGroupName
5151
type: string
5252
description: |
5353
The cache subnet group that you associate with a cache cluster.
5454
structKey: CacheSubnetGroupName
5555
templateKey: CacheSubnetGroupName
56-
- key: Engine
56+
- key: engine
5757
type: string
5858
description: |
5959
The name of the cache engine to be used for this cache cluster, such as memcached or redis.
6060
structKey: Engine
6161
templateKey: Engine
62-
- key: EngineVersion
62+
- key: engineVersion
6363
type: string
6464
description: |
6565
The version of the cache engine to be used for this cluster.
6666
structKey: EngineVersion
6767
templateKey: EngineVersion
68-
- key: NotificationTopicArn
68+
- key: notificationTopicArn
6969
type: string
7070
description: |
7171
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications will be sent.
7272
structKey: NotificationTopicArn
7373
templateKey: NotificationTopicArn
74-
- key: NumCacheNodes
74+
- key: numCacheNodes
7575
type: int
7676
description: |
7777
The number of cache nodes that the cache cluster should have.
7878
structKey: NumCacheNodes
7979
templateKey: NumCacheNodes
80-
- key: Port
80+
- key: port
8181
type: int
8282
description: |
8383
The port number on which each of the cache nodes will accept connections.
8484
structKey: Port
8585
templateKey: Port
86-
- key: PreferredMaintenanceWindow
86+
- key: preferredMaintenanceWindow
8787
type: string
8888
description: |
8989
The weekly time range (in UTC) during which system maintenance can occur.
9090
structKey: PreferredMaintenanceWindow
9191
templateKey: PreferredMaintenanceWindow
92-
- key: PreferredAvailabilityZone
92+
- key: preferredAvailabilityZone
9393
type: string
9494
description: |
9595
The Amazon EC2 Availability Zone in which the cache cluster is created.
9696
structKey: PreferredAvailabilityZone
9797
templateKey: PreferredAvailabilityZone
98-
- key: PreferredAvailabilityZones
98+
- key: preferredAvailabilityZones
9999
type: string
100100
description:
101101
For Memcached cache clusters, the comma seperated list of Availability Zones in which cache nodes are created. The number of Availability Zones listed must equal the number of cache nodes. For example, if you want to create three nodes in two different Availability Zones, you can specify ["us-east-1a", "us-east-1a", "us-east-1b"], which would create two nodes in us-east-1a and one node in us-east-1b.
102102
structKey: PreferredAvailabilityZones
103103
templateKey: PreferredAvailabilityZones
104-
- key: SnapshotWindow
104+
- key: snapshotWindow
105105
type: string
106106
description: |
107107
For Redis cache clusters, the daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your node group. For example, you can specify 05:00-09:00.
108108
structKey: SnapshotWindow
109109
templateKey: SnapshotWindow
110-
- key: VpcSecurityGroupIds
110+
- key: vpcSecurityGroupIds
111111
type: string
112112
description: |
113113
A comma seperated list of VPC security group IDs. If your cache cluster isn't in a VPC, specify the CacheSecurityGroupNames property instead.
@@ -117,33 +117,33 @@ spec:
117117
schema:
118118
type: object
119119
properties:
120-
- key: RedisEndpointAddress
120+
- key: redisEndpointAddress
121121
type: string
122122
description: |
123123
The DNS address of the configuration endpoint for the Redis cache cluster.
124124
structKey: RedisEndpointAddress
125125
templateKey: RedisEndpointAddress
126-
- key: RedisEndpointPort
126+
- key: redisEndpointPort
127127
type: string
128128
description: |
129129
The port number of the configuration endpoint for the Redis cache cluster.
130130
structKey: RedisEndpointPort
131131
templateKey: RedisEndpointPort
132-
- key: ConfigurationEndpoint
132+
- key: configurationEndpoint
133133
type: string
134134
description: |
135135
The DNS address of the configuration endpoint for the Memcached cache cluster.
136136
structKey: ConfigurationEndpointAddress
137137
templateKey: ConfigurationEndpointAddress
138-
- key: ConfigurationEndpointPort
138+
- key: configurationEndpointPort
139139
type: string
140140
description: |
141141
The port number of the configuration endpoint for the Memcached cache cluster.
142142
structKey: ConfigurationEndpointPort
143143
templateKey: ConfigurationEndpointPort
144144
additionalResources:
145145
services:
146-
- name: ElastiCacheAddressSvc
146+
- name: elastiCacheAddressSvc
147147
type: ExternalName
148148
externalName: "{{ if .Obj.Output.RedisEndpointAddress }}{{ .Obj.Output.RedisEndpointAddress }}{{ else }}{{ .Obj.Output.ConfigurationEndpointAddress }}{{end}}"
149149
ports:

0 commit comments

Comments
 (0)