Skip to content

Commit

Permalink
Add case sensitivity diff suppression for enums. (#8664) (#15536)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Aug 16, 2023
1 parent e2ba937 commit ab55dcf
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/8664.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
containerazure: added diff suppression for case changes of enum values in `google_container_azure_cluster`
```
64 changes: 64 additions & 0 deletions website/docs/r/container_azure_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,70 @@ resource "google_container_azure_client" "basic" {
}
```
## Example Usage - beta_basic_enum_azure_cluster
A basic example of a containerazure azure cluster with lowercase enums (beta)
```hcl
data "google_container_azure_versions" "versions" {
project = "my-project-name"
location = "us-west1"
provider = google-beta
}
resource "google_container_azure_cluster" "primary" {
provider = google-beta
authorization {
admin_users {
username = "mmv2@google.com"
}
}
azure_region = "westus2"
client = "projects/my-project-number/locations/us-west1/azureClients/${google_container_azure_client.basic.name}"
control_plane {
ssh_config {
authorized_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8yaayO6lnb2v+SedxUMa2c8vtIEzCzBjM3EJJsv8Vm9zUDWR7dXWKoNGARUb2mNGXASvI6mFIDXTIlkQ0poDEPpMaXR0g2cb5xT8jAAJq7fqXL3+0rcJhY/uigQ+MrT6s+ub0BFVbsmGHNrMQttXX9gtmwkeAEvj3mra9e5pkNf90qlKnZz6U0SVArxVsLx07vHPHDIYrl0OPG4zUREF52igbBPiNrHJFDQJT/4YlDMJmo/QT/A1D6n9ocemvZSzhRx15/Arjowhr+VVKSbaxzPtEfY0oIg2SrqJnnr/l3Du5qIefwh5VmCZe4xopPUaDDoOIEFriZ88sB+3zz8ib8sk8zJJQCgeP78tQvXCgS+4e5W3TUg9mxjB6KjXTyHIVhDZqhqde0OI3Fy1UuVzRUwnBaLjBnAwP5EoFQGRmDYk/rEYe7HTmovLeEBUDQocBQKT4Ripm/xJkkWY7B07K/tfo56dGUCkvyIVXKBInCh+dLK7gZapnd4UWkY0xBYcwo1geMLRq58iFTLA2j/JmpmHXp7m0l7jJii7d44uD3tTIFYThn7NlOnvhLim/YcBK07GMGIN7XwrrKZKmxXaspw6KBWVhzuw1UPxctxshYEaMLfFg/bwOw8HvMPr9VtrElpSB7oiOh91PDIPdPBgHCi7N2QgQ5l/ZDBHieSpNrQ== thomasrodgers"
}
subnet_id = "/subscriptions/12345678-1234-1234-1234-123456789111/resourceGroups/my--dev-byo/providers/Microsoft.Network/virtualNetworks/my--dev-vnet/subnets/default"
version = "${data.google_container_azure_versions.versions.valid_versions[0]}"
}
fleet {
project = "my-project-number"
}
location = "us-west1"
name = "name"
networking {
pod_address_cidr_blocks = ["10.200.0.0/16"]
service_address_cidr_blocks = ["10.32.0.0/24"]
virtual_network_id = "/subscriptions/12345678-1234-1234-1234-123456789111/resourceGroups/my--dev-byo/providers/Microsoft.Network/virtualNetworks/my--dev-vnet"
}
resource_group_id = "/subscriptions/12345678-1234-1234-1234-123456789111/resourceGroups/my--dev-cluster"
project = "my-project-name"
logging_config {
component_config {
enable_components = ["system_components", "workloads"]
}
}
}
resource "google_container_azure_client" "basic" {
provider = google-beta
application_id = "12345678-1234-1234-1234-123456789111"
location = "us-west1"
name = "client-name"
tenant_id = "12345678-1234-1234-1234-123456789111"
project = "my-project-name"
}
```

## Argument Reference
Expand Down

0 comments on commit ab55dcf

Please sign in to comment.