Commit 55bf57b
authored
fix: Use correct CamelCase Kind names in reconcile resources (#590)
Description of changes:
Fixed the generation of reconcile resources in the Helm chart to use proper CamelCase Kind names. The previous implementation using `metaVars.CRDNames` with `names.New(name).Camel` was incorrectly converting CRD names from their lowercase plural form, resulting in improper capitalization.
The previous approach used `metaVars.CRDNames` which contains lowercase plural forms (e.g., "preparedstatements", "workgroups"). When these were processed through `names.New(name).Camel`, it only capitalized the first letter without properly handling internal word breaks, leading to incorrect resource kind names.
Issue:
```yaml
resources:
- Preparedstatements # incorrect
- Workgroups # incorrect
```
Fix:
```yaml
resources:
- PreparedStatement
- WorkGroup
```
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent d609aed commit 55bf57b
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
| |||
0 commit comments