Skip to content

Commit 2965d26

Browse files
authored
Add UUID to initialism (#244)
Generating `EventSourceMapping` resource in the lambda controller produces a CRD FIeld with a json tag `uUID`. This commit makes sure that `UUID` names stay intact during code generation. Description of changes: - Add `UUID` to initialisms By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 921f3aa commit 2965d26

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/names/names.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ var (
122122
// Need to prevent "security" from becoming "SecURIty"
123123
{"Uri", "URI", "uri", regexp.MustCompile("(?!sec)uri(?!ty)|(Uri)", regexp.None)},
124124
{"Url", "URL", "url", nil},
125+
{"Uuid", "UUID", "uuid", nil},
125126
{"Vlan", "VLAN", "vlan", nil},
126127
{"Vpc", "VPC", "vpc", nil},
127128
{"Vpn", "VPN", "vpn", nil},

pkg/names/names_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func TestNames(t *testing.T) {
6666
{"Vlan", "VLAN", "vlan", "vlan"},
6767
{"Ecmp", "ECMP", "ecmp", "ecmp"},
6868
{"Ena", "ENA", "ena", "ena"},
69+
{"UUID", "UUID", "uuid", "uuid"},
6970
}
7071
for _, tc := range testCases {
7172
n := names.New(tc.original)

0 commit comments

Comments
 (0)