Skip to content

Commit

Permalink
2.0: Removing azurerm_container_service
Browse files Browse the repository at this point in the history
This resource is Deprecated in 1.x and no longer supported in version 2.0
of the Azure Provider
  • Loading branch information
tombuildsstuff committed Feb 12, 2020
1 parent 90ab6dd commit fcb8afb
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 1,376 deletions.
9 changes: 3 additions & 6 deletions azurerm/internal/services/containers/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ import (

type Client struct {
AgentPoolsClient *containerservice.AgentPoolsClient
KubernetesClustersClient *containerservice.ManagedClustersClient
GroupsClient *containerinstance.ContainerGroupsClient
KubernetesClustersClient *containerservice.ManagedClustersClient
RegistriesClient *containerregistry.RegistriesClient
WebhooksClient *containerregistry.WebhooksClient
ReplicationsClient *containerregistry.ReplicationsClient

// TODO: this can be removed in 2.0
ServicesClient *containerservice.ContainerServicesClient
ServicesClient *containerservice.ContainerServicesClient
WebhooksClient *containerregistry.WebhooksClient
}

func NewClient(o *common.ClientOptions) *Client {
Expand All @@ -39,7 +37,6 @@ func NewClient(o *common.ClientOptions) *Client {
agentPoolsClient := containerservice.NewAgentPoolsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&agentPoolsClient.Client, o.ResourceManagerAuthorizer)

// ACS
servicesClient := containerservice.NewContainerServicesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&servicesClient.Client, o.ResourceManagerAuthorizer)

Expand Down
1 change: 0 additions & 1 deletion azurerm/internal/services/containers/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func (r Registration) SupportedResources() map[string]*schema.Resource {
"azurerm_container_group": resourceArmContainerGroup(),
"azurerm_container_registry_webhook": resourceArmContainerRegistryWebhook(),
"azurerm_container_registry": resourceArmContainerRegistry(),
"azurerm_container_service": resourceArmContainerService(),
"azurerm_kubernetes_cluster": resourceArmKubernetesCluster(),
"azurerm_kubernetes_cluster_node_pool": resourceArmKubernetesClusterNodePool(),
}
Expand Down
Loading

0 comments on commit fcb8afb

Please sign in to comment.