-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration to allow resolving name collisions when loading res…
…ources (#4346) * Use slices.SortFunc to order files * Fixup sort * Add scope to ResourceDefinition used by Loader * Return an error if something goes wrong * Fixup * Add typeLoaderRenames to configuration * Use typeLoaderRenames to resolve name collisions * Keep configuration for insights * update crossplane * Rename local for clarity
- Loading branch information
1 parent
740d828
commit 5edad4a
Showing
7 changed files
with
220 additions
and
50 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
hack/crossplane/apis/sql/v1api20201101preview/servers_database_types_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. | ||
* Licensed under the MIT license. | ||
*/ | ||
|
||
package config | ||
|
||
// A TypeLoaderRename is used to resolve a naming conflict that happens during loading of types | ||
// right at the start of the code generator. | ||
type TypeLoaderRename struct { | ||
TypeMatcher `yaml:",inline"` | ||
Scope *string `yaml:"scope,omitempty"` | ||
RenameTo *string `yaml:"renameTo,omitempty"` | ||
} |
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
Oops, something went wrong.