You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closesaws-controllers-k8s/community#1223
Expands upon #394
Description of changes:
This pull request moves the custom GoDoc overrides from inside the `generator.yaml` file to a new, separate `documentation.yaml` file. This `documentation.yaml` file currently supports modify field GoDocs (but could be extended to modify resource GoDocs as well) in the following ways:
- Prepend: Add a comment before the existing shape ref GoDoc
- Append: Add a comment after the existing shape ref GoDoc
- Override: Completely replace the existing shape ref GoDoc
The current RDS documentation modifications are now modeled in the `documentation.yaml` like so:
```yaml
resources:
DBClusterParameterGroup:
fields:
Parameters:
override: |
DEPRECATED - do not use. Prefer ParameterOverrides instead.
ParameterOverrides:
append: |
These are ONLY user-defined parameter overrides for the
DB cluster parameter group. This does not contain default or system
parameters.
DBParameterGroup:
fields:
ParameterOverrides:
append: |
These are ONLY user-defined parameter overrides for the DB parameter
group. This does not contain default or system parameters.
```
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Copy file name to clipboardExpand all lines: cmd/ack-generate/command/root.go
+19-15Lines changed: 19 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -30,21 +30,22 @@ A tool to generate AWS service controller code`
30
30
)
31
31
32
32
var (
33
-
defaultCacheDirstring
34
-
optCacheDirstring
35
-
optRefreshCachebool
36
-
optAWSSDKGoVersionstring
37
-
defaultTemplateDirs []string
38
-
optTemplateDirs []string
39
-
defaultServicesDirstring
40
-
optServicesDirstring
41
-
optDryRunbool
42
-
sdkDirstring
43
-
optGeneratorConfigPathstring
44
-
optMetadataConfigPathstring
45
-
optOutputPathstring
46
-
optServiceAccountNamestring
47
-
optImageRepositorystring
33
+
defaultCacheDirstring
34
+
optCacheDirstring
35
+
optRefreshCachebool
36
+
optAWSSDKGoVersionstring
37
+
defaultTemplateDirs []string
38
+
optTemplateDirs []string
39
+
defaultServicesDirstring
40
+
optServicesDirstring
41
+
optDryRunbool
42
+
sdkDirstring
43
+
optGeneratorConfigPathstring
44
+
optMetadataConfigPathstring
45
+
optDocumentationConfigPathstring
46
+
optOutputPathstring
47
+
optServiceAccountNamestring
48
+
optImageRepositorystring
48
49
)
49
50
50
51
varrootCmd=&cobra.Command{
@@ -117,6 +118,9 @@ func init() {
117
118
rootCmd.PersistentFlags().StringVar(
118
119
&optMetadataConfigPath, "metadata-config-path", "", "Path to file containing service metadata to use",
119
120
)
121
+
rootCmd.PersistentFlags().StringVar(
122
+
&optDocumentationConfigPath, "documentation-config-path", "", "Path to file containing additions for the API documentation fields",
123
+
)
120
124
rootCmd.PersistentFlags().StringVarP(
121
125
&optOutputPath, "output", "o", "", "Path to directory to output generated files (if generating crossplane providers, this should be the root of the aws-crossplane directory)",
0 commit comments