Skip to content

Commit

Permalink
Add removed references for WorkspaceCustomerManagedKey.databricks and…
Browse files Browse the repository at this point in the history
… fix some comment lines

Signed-off-by: Fatih Türken <[email protected]>
  • Loading branch information
turkenf committed Mar 20, 2024
1 parent 582dced commit bc976f4
Show file tree
Hide file tree
Showing 7 changed files with 378 additions and 14 deletions.
30 changes: 30 additions & 0 deletions apis/databricks/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions apis/databricks/v1beta1/zz_generated.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 34 additions & 5 deletions apis/databricks/v1beta1/zz_workspacecustomermanagedkey_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions config/databricks/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: CC0-1.0

package databricks

import (
"github.com/upbound/provider-azure/apis/rconfig"

"github.com/crossplane/upjet/pkg/config"
)

// Configure configures databricks group
func Configure(p *config.Provider) {

p.AddResourceConfigurator("azurerm_databricks_workspace_customer_managed_key", func(r *config.Resource) {
r.References["workspace_id"] = config.Reference{
TerraformName: "azurerm_databricks_workspace",
Extractor: rconfig.ExtractResourceIDFuncPath,
}
r.References["key_vault_key_id"] = config.Reference{
TerraformName: "azurerm_key_vault_key",
Extractor: rconfig.ExtractResourceIDFuncPath,
}
})
}
4 changes: 2 additions & 2 deletions config/externalname.go
Original file line number Diff line number Diff line change
Expand Up @@ -1588,11 +1588,11 @@ var TerraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{

// spring_cloud
//
// /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/Spring/service1/applicationAccelerators/default
// /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/applicationAccelerators/default
"azurerm_spring_cloud_accelerator": config.IdentifierFromProvider,
// /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/applicationLiveViews/default
"azurerm_spring_cloud_application_live_view": config.TemplatedStringAsIdentifier("name", "{{ .parameters.spring_cloud_service_id }}/applicationLiveViews/{{ .external_name }}"),
// /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AppPlatform/Spring/spring1/applicationAccelerators/default/customizedAccelerators/customizedAccelerator1
// /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AppPlatform/spring/spring1/applicationAccelerators/default/customizedAccelerators/customizedAccelerator1
"azurerm_spring_cloud_customized_accelerator": config.TemplatedStringAsIdentifier("name", "{{ .parameters.spring_cloud_accelerator_id }}/customizedAccelerators/{{ .external_name }}"),
// /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/Spring/service1/DevToolPortals/default
"azurerm_spring_cloud_dev_tool_portal": config.IdentifierFromProvider,
Expand Down
2 changes: 2 additions & 0 deletions config/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (
"github.com/upbound/provider-azure/config/containerservice"
"github.com/upbound/provider-azure/config/cosmosdb"
"github.com/upbound/provider-azure/config/costmanagement"
"github.com/upbound/provider-azure/config/databricks"
"github.com/upbound/provider-azure/config/datafactory"
"github.com/upbound/provider-azure/config/dataprotection"
"github.com/upbound/provider-azure/config/datashare"
Expand Down Expand Up @@ -261,6 +262,7 @@ func GetProvider(ctx context.Context, generationProvider bool) (*tjconfig.Provid
certificateregistration.Configure,
orbital.Configure,
appplatform.Configure,
databricks.Configure,
} {
configure(pc)
}
Expand Down
Loading

0 comments on commit bc976f4

Please sign in to comment.