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
Use loadModelWithLatestAPIVersion to load models for crossplane (#237)
This fixes an issue where the crossplane command would fail to find API
models for resources whose name differed between the model and API in
the SDK. Previous behavior was to continue using the svcAlias instead of
correctly using model_name from the configuration.
The changes here also have the added benefit of making the generateCrossplane function code more similar to other generation functions and utilize more of the common codebase.
Issue #, if available:
N/A
Description of changes:
Replace duplicated code in the generateCrossplane function with implementations in common.go and change variables to match the naming scheme used elsewhere.
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
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ func init() {
116
116
&optMetadataConfigPath, "metadata-config-path", "", "Path to file containing service metadata to use",
117
117
)
118
118
rootCmd.PersistentFlags().StringVarP(
119
-
&optOutputPath, "output", "o", "", "Path to directory to output generated files.",
119
+
&optOutputPath, "output", "o", "", "Path to directory to output generated files (if generating crossplane providers, this should be the root of the aws-crossplane directory)",
120
120
)
121
121
rootCmd.PersistentFlags().StringVar(
122
122
&optAWSSDKGoVersion, "aws-sdk-go-version", "", "Version of github.com/aws/aws-sdk-go used to generate apis and controllers files",
0 commit comments