Skip to content

Commit

Permalink
merge master -S
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte committed Jan 7, 2019
2 parents 252368e + 6086a24 commit 411a577
Show file tree
Hide file tree
Showing 44 changed files with 350 additions and 285 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ install:
- make tools

script:
- make lint
- make test
- make vendor-status
- make lint
- make website-test

branches:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ IMPROVEMENTS:

* dependencies: upgrading the `network` SDK to `2018-08-01` [GH-2433]
* Data Source: `azurerm_app_service` - exporting the `possible_outbound_ip_addresses` [GH-2513]
* Data Source: `azurerm_container_registry` - now exports `tags` [GH-2607]
* `azurerm_app_service` - exporting the `possible_outbound_ip_addresses` [GH-2513]
* `azurerm_firewall` - renaming the `public_ip_address_id` property to `ip_address_id` [GH-2433]
* `azurerm_log_analytics_workspace_linked_service` - now correctly handels uppcase `workspace_name` values [GH-2594]
* `azurerm_network_interface` - support for IPv6 addresses [GH-2548]
* `azurerm_policy_assignment` - support for Managed Service Identity [GH-2549]
* `azurerm_policy_definition` - polices can now be assigned to a management group [GH-2490]
* `azurerm_redis_cache` - add availability zone support [GH-2580]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,40 @@ func dataSourceArmContainerRegistry() *schema.Resource {
},

"resource_group_name": resourceGroupNameForDataSourceSchema(),
"location": locationForDataSourceSchema(),

"location": locationForDataSourceSchema(),

"admin_enabled": {
Type: schema.TypeBool,
Computed: true,
},

"admin_password": {
Type: schema.TypeString,
Computed: true,
},

"admin_username": {
Type: schema.TypeString,
Computed: true,
},

"login_server": {
Type: schema.TypeString,
Computed: true,
},

"sku": {
Type: schema.TypeString,
Computed: true,
},

"storage_account_id": {
Type: schema.TypeString,
Computed: true,
},

"tags": tagsForDataSourceSchema(),
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion azurerm/data_source_log_analytics_workspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestAccDataSourceAzureRMLogAnalyticsWorkspace_basic(t *testing.T) {
}

func testAccDataSourceAzureRMLogAnalyticsWorkspace_basicWithDataSource(rInt int, location string) string {
config := testAccAzureRMLogAnalyticsWorkspace_retentionInDaysComplete(rInt, location)
config := testAccAzureRMLogAnalyticsWorkspace_complete(rInt, location)
return fmt.Sprintf(`
%s
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions azurerm/resource_arm_app_service_active_slot.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

func resourceArmAppServiceActiveSlot() *schema.Resource {
return &schema.Resource{
Create: resourceArmAppServiceActiveSlotCreate,
Create: resourceArmAppServiceActiveSlotCreateUpdate,
Read: resourceArmAppServiceActiveSlotRead,
Update: resourceArmAppServiceActiveSlotCreate,
Update: resourceArmAppServiceActiveSlotCreateUpdate,
Delete: resourceArmAppServiceActiveSlotDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
Expand All @@ -36,7 +36,7 @@ func resourceArmAppServiceActiveSlot() *schema.Resource {
}
}

func resourceArmAppServiceActiveSlotCreate(d *schema.ResourceData, meta interface{}) error {
func resourceArmAppServiceActiveSlotCreateUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ArmClient).appServicesClient
ctx := meta.(*ArmClient).StopContext

Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_availability_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (

func resourceArmAvailabilitySet() *schema.Resource {
return &schema.Resource{
Create: resourceArmAvailabilitySetCreate,
Create: resourceArmAvailabilitySetCreateUpdate,
Read: resourceArmAvailabilitySetRead,
Update: resourceArmAvailabilitySetCreate,
Update: resourceArmAvailabilitySetCreateUpdate,
Delete: resourceArmAvailabilitySetDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
Expand Down Expand Up @@ -61,7 +61,7 @@ func resourceArmAvailabilitySet() *schema.Resource {
}
}

func resourceArmAvailabilitySetCreate(d *schema.ResourceData, meta interface{}) error {
func resourceArmAvailabilitySetCreateUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ArmClient).availSetClient
ctx := meta.(*ArmClient).StopContext

Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_container_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (

func resourceArmContainerService() *schema.Resource {
return &schema.Resource{
Create: resourceArmContainerServiceCreate,
Create: resourceArmContainerServiceCreateUpdate,
Read: resourceArmContainerServiceRead,
Update: resourceArmContainerServiceCreate,
Update: resourceArmContainerServiceCreateUpdate,
Delete: resourceArmContainerServiceDelete,

DeprecationMessage: `Azure Container Service (ACS) has been deprecated in favour of Azure (Managed) Kubernetes Service (AKS).
Expand Down Expand Up @@ -191,7 +191,7 @@ More information can be found here: https://azure.microsoft.com/en-us/updates/az
}
}

func resourceArmContainerServiceCreate(d *schema.ResourceData, meta interface{}) error {
func resourceArmContainerServiceCreateUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ArmClient)
ctx := meta.(*ArmClient).StopContext
containerServiceClient := client.containerServicesClient
Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (

func resourceArmEventHub() *schema.Resource {
return &schema.Resource{
Create: resourceArmEventHubCreate,
Create: resourceArmEventHubCreateUpdate,
Read: resourceArmEventHubRead,
Update: resourceArmEventHubCreate,
Update: resourceArmEventHubCreateUpdate,
Delete: resourceArmEventHubDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
Expand Down Expand Up @@ -136,7 +136,7 @@ func resourceArmEventHub() *schema.Resource {
}
}

func resourceArmEventHubCreate(d *schema.ResourceData, meta interface{}) error {
func resourceArmEventHubCreateUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ArmClient).eventHubClient
ctx := meta.(*ArmClient).StopContext
log.Printf("[INFO] preparing arguments for Azure ARM EventHub creation.")
Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_eventhub_namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ var eventHubNamespaceDefaultAuthorizationRule = "RootManageSharedAccessKey"

func resourceArmEventHubNamespace() *schema.Resource {
return &schema.Resource{
Create: resourceArmEventHubNamespaceCreate,
Create: resourceArmEventHubNamespaceCreateUpdate,
Read: resourceArmEventHubNamespaceRead,
Update: resourceArmEventHubNamespaceCreate,
Update: resourceArmEventHubNamespaceCreateUpdate,
Delete: resourceArmEventHubNamespaceDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
Expand Down Expand Up @@ -103,7 +103,7 @@ func resourceArmEventHubNamespace() *schema.Resource {
}
}

func resourceArmEventHubNamespaceCreate(d *schema.ResourceData, meta interface{}) error {
func resourceArmEventHubNamespaceCreateUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ArmClient).eventHubNamespacesClient
ctx := meta.(*ArmClient).StopContext
log.Printf("[INFO] preparing arguments for AzureRM EventHub Namespace creation.")
Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (

func resourceArmLoadBalancer() *schema.Resource {
return &schema.Resource{
Create: resourceArmLoadBalancerCreate,
Create: resourceArmLoadBalancerCreateUpdate,
Read: resourceArmLoadBalancerRead,
Update: resourceArmLoadBalancerCreate,
Update: resourceArmLoadBalancerCreateUpdate,
Delete: resourceArmLoadBalancerDelete,

Importer: &schema.ResourceImporter{
Expand Down Expand Up @@ -136,7 +136,7 @@ func resourceArmLoadBalancer() *schema.Resource {
}
}

func resourceArmLoadBalancerCreate(d *schema.ResourceData, meta interface{}) error {
func resourceArmLoadBalancerCreateUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ArmClient).loadBalancerClient
ctx := meta.(*ArmClient).StopContext

Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_loadbalancer_nat_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (

func resourceArmLoadBalancerNatPool() *schema.Resource {
return &schema.Resource{
Create: resourceArmLoadBalancerNatPoolCreate,
Create: resourceArmLoadBalancerNatPoolCreateUpdate,
Read: resourceArmLoadBalancerNatPoolRead,
Update: resourceArmLoadBalancerNatPoolCreate,
Update: resourceArmLoadBalancerNatPoolCreateUpdate,
Delete: resourceArmLoadBalancerNatPoolDelete,
Importer: &schema.ResourceImporter{
State: loadBalancerSubResourceStateImporter,
Expand Down Expand Up @@ -88,7 +88,7 @@ func resourceArmLoadBalancerNatPool() *schema.Resource {
}
}

func resourceArmLoadBalancerNatPoolCreate(d *schema.ResourceData, meta interface{}) error {
func resourceArmLoadBalancerNatPoolCreateUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ArmClient).loadBalancerClient
ctx := meta.(*ArmClient).StopContext

Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_loadbalancer_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (

func resourceArmLoadBalancerRule() *schema.Resource {
return &schema.Resource{
Create: resourceArmLoadBalancerRuleCreate,
Create: resourceArmLoadBalancerRuleCreateUpdate,
Read: resourceArmLoadBalancerRuleRead,
Update: resourceArmLoadBalancerRuleCreate,
Update: resourceArmLoadBalancerRuleCreateUpdate,
Delete: resourceArmLoadBalancerRuleDelete,

Importer: &schema.ResourceImporter{
Expand Down Expand Up @@ -115,7 +115,7 @@ func resourceArmLoadBalancerRule() *schema.Resource {
}
}

func resourceArmLoadBalancerRuleCreate(d *schema.ResourceData, meta interface{}) error {
func resourceArmLoadBalancerRuleCreateUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ArmClient).loadBalancerClient
ctx := meta.(*ArmClient).StopContext

Expand Down
6 changes: 3 additions & 3 deletions azurerm/resource_arm_local_network_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

func resourceArmLocalNetworkGateway() *schema.Resource {
return &schema.Resource{
Create: resourceArmLocalNetworkGatewayCreate,
Create: resourceArmLocalNetworkGatewayCreateUpdate,
Read: resourceArmLocalNetworkGatewayRead,
Update: resourceArmLocalNetworkGatewayCreate,
Update: resourceArmLocalNetworkGatewayCreateUpdate,
Delete: resourceArmLocalNetworkGatewayDelete,
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
Expand Down Expand Up @@ -73,7 +73,7 @@ func resourceArmLocalNetworkGateway() *schema.Resource {
}
}

func resourceArmLocalNetworkGatewayCreate(d *schema.ResourceData, meta interface{}) error {
func resourceArmLocalNetworkGatewayCreateUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ArmClient).localNetConnClient
ctx := meta.(*ArmClient).StopContext

Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_log_analytics_solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func resourceArmLogAnalyticsSolution() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validate.NoEmptyStrings,
ValidateFunc: validateAzureRmLogAnalyticsWorkspaceName,
},

"workspace_resource_id": {
Expand Down
4 changes: 2 additions & 2 deletions azurerm/resource_arm_log_analytics_solution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ resource "azurerm_resource_group" "test" {
}
resource "azurerm_log_analytics_workspace" "test" {
name = "acctest-dep-%d"
name = "acctestLAW-%d"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
sku = "PerGB2018"
Expand Down Expand Up @@ -151,7 +151,7 @@ resource "azurerm_resource_group" "test" {
}
resource "azurerm_log_analytics_workspace" "test" {
name = "acctest-dep-%d"
name = "acctestLAW-%d"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
sku = "PerGB2018"
Expand Down
Loading

0 comments on commit 411a577

Please sign in to comment.