Skip to content

Commit

Permalink
Update providerconfig controller
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman committed Dec 18, 2023
1 parent e180490 commit 5960ea6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/dynamic-controller/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func (sg *ProviderGenerator) generate(rootGroup string, versionPkgList []string,
importData += rmDot[0] + " " + "\"" + pkgPath + "\"\n"
if group == shortName {
kindMapData += "schema.GroupKind{\"" + rootGroup + "\", "
} else if group == "controller" {
kindMapData += "schema.GroupKind{\"" + kind + "." + rootGroup + "\", "
} else {
kindMapData += "schema.GroupKind{\"" + group + "." + rootGroup + "\", "
}
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/zz_dynamic_crd_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ var (
schema.GroupKind{"network.azure.kubedb.com", "SubnetRouteTableAssociation"}: subnetroutetableassociation.Setup,
schema.GroupKind{"network.azure.kubedb.com", "VirtualNetwork"}: virtualnetwork.Setup,
schema.GroupKind{"network.azure.kubedb.com", "VirtualNetworkPeering"}: virtualnetworkpeering.Setup,
schema.GroupKind{"controller.azure.kubedb.com", ""}: providerconfig.Setup,
schema.GroupKind{"providerconfig.azure.kubedb.com", ""}: providerconfig.Setup,
schema.GroupKind{"sql.azure.kubedb.com", "MSSQLDatabase"}: mssqldatabase.Setup,
schema.GroupKind{"sql.azure.kubedb.com", "MSSQLDatabaseVulnerabilityAssessmentRuleBaseline"}: mssqldatabasevulnerabilityassessmentrulebaseline.Setup,
schema.GroupKind{"sql.azure.kubedb.com", "MSSQLElasticPool"}: mssqlelasticpool.Setup,
Expand Down

0 comments on commit 5960ea6

Please sign in to comment.