Skip to content

Commit

Permalink
Rename gke-info-go to istio-test (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcurtis authored Jan 25, 2025
1 parent 207529a commit dd2e0da
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: check-symlinks

- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.96.2
rev: v1.97.0
hooks:
- id: terraform_fmt

Expand All @@ -29,7 +29,7 @@ repos:
- id: terraform_docs

- repo: https://github.com/bridgecrewio/checkov.git
rev: 3.2.343
rev: 3.2.353
hooks:
- id: checkov
verbose: true
Expand Down
6 changes: 3 additions & 3 deletions regional/manifests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ No requirements.

| Name | Type |
|------|------|
| [kubernetes_manifest.gke_info_istio_virtual_services](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_manifest.istio_authorization_policy](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_manifest.istio_cluster_services_destination_rule](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_manifest.istio_gateway](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_manifest.istio_gateway_authorization_policy](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_manifest.istio_kubernetes_default_destination_rule](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_manifest.istio_peer_authentication](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_manifest.istio_test_istio_virtual_services](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |
| [kubernetes_manifest.istio_virtual_services](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_common_gke_info_virtual_services"></a> [common\_gke\_info\_virtual\_services](#input\_common\_gke\_info\_virtual\_services) | The map of Istio VirtualServices to create for GKE Info, that are common among all regions | <pre>map(object({<br/> destination_host = string<br/> host = string<br/> }))</pre> | n/a | yes |
| <a name="input_common_istio_test_virtual_services"></a> [common\_istio\_test\_virtual\_services](#input\_common\_istio\_test\_virtual\_services) | The map of Istio VirtualServices to create for Istio testing, that are common among all regions | <pre>map(object({<br/> destination_host = string<br/> host = string<br/> }))</pre> | n/a | yes |
| <a name="input_common_virtual_services"></a> [common\_virtual\_services](#input\_common\_virtual\_services) | The map of Istio VirtualServices to create, that are common among all regions | <pre>map(object({<br/> destination_host = string<br/> destination_port = optional(number, 8080)<br/> host = string<br/> }))</pre> | n/a | yes |
| <a name="input_failover_from_region"></a> [failover\_from\_region](#input\_failover\_from\_region) | The region to fail over from | `string` | `""` | no |
| <a name="input_failover_to_region"></a> [failover\_to\_region](#input\_failover\_to\_region) | The region to fail over to | `string` | `""` | no |
| <a name="input_gke_info_virtual_services"></a> [gke\_info\_virtual\_services](#input\_gke\_info\_virtual\_services) | The map of Istio VirtualServices to create for GKE Info | <pre>map(object({<br/> destination_host = string<br/> host = string<br/> }))</pre> | n/a | yes |
| <a name="input_istio_test_virtual_services"></a> [istio\_test\_virtual\_services](#input\_istio\_test\_virtual\_services) | The map of Istio VirtualServices to create for Istio testing | <pre>map(object({<br/> destination_host = string<br/> host = string<br/> }))</pre> | n/a | yes |
| <a name="input_virtual_services"></a> [virtual\_services](#input\_virtual\_services) | The map of Istio VirtualServices to create, that are unique to a region | <pre>map(object({<br/> destination_host = string<br/> destination_port = optional(number, 8080)<br/> host = string<br/> }))</pre> | n/a | yes |

## Outputs
Expand Down
6 changes: 3 additions & 3 deletions regional/manifests/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ resource "kubernetes_manifest" "istio_virtual_services" {
}
}

resource "kubernetes_manifest" "gke_info_istio_virtual_services" {
for_each = merge(var.gke_info_virtual_services, var.common_gke_info_virtual_services)
resource "kubernetes_manifest" "istio_test_istio_virtual_services" {
for_each = merge(var.istio_test_virtual_services, var.common_istio_test_virtual_services)

manifest = {
apiVersion = "networking.istio.io/v1beta1"
Expand All @@ -250,7 +250,7 @@ resource "kubernetes_manifest" "gke_info_istio_virtual_services" {
match = [
{
uri = {
prefix = "/gke-info-go"
prefix = "/istio-test"
}
}
]
Expand Down
8 changes: 4 additions & 4 deletions regional/manifests/variables.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Input Variables
# https://www.terraform.io/language/values/variables

variable "common_gke_info_virtual_services" {
description = "The map of Istio VirtualServices to create for GKE Info, that are common among all regions"
variable "common_istio_test_virtual_services" {
description = "The map of Istio VirtualServices to create for Istio testing, that are common among all regions"
type = map(object({
destination_host = string
host = string
Expand Down Expand Up @@ -30,8 +30,8 @@ variable "failover_to_region" {
default = ""
}

variable "gke_info_virtual_services" {
description = "The map of Istio VirtualServices to create for GKE Info"
variable "istio_test_virtual_services" {
description = "The map of Istio VirtualServices to create for Istio testing"
type = map(object({
destination_host = string
host = string
Expand Down

0 comments on commit dd2e0da

Please sign in to comment.