-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
9 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters