Skip to content

Commit

Permalink
Support for Open Policy Agent Gatekeeper (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcurtis authored Oct 12, 2024
1 parent 316b247 commit 8cce1d6
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ crash.log
# be included in version control.
local.tfvars

# Provider.tf is used for local development of modules and shouldn't be added to repos.
provider.tf

# Ignore override files as they are usually used to override ressources locally
override.tf
override.tf.json
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -29,7 +29,7 @@ repos:
- id: terraform_docs

- repo: https://github.com/bridgecrewio/checkov.git
rev: 3.2.255
rev: 3.2.257
hooks:
- id: checkov
verbose: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 6.4.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.6.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.3 |

### Modules
Expand Down
2 changes: 1 addition & 1 deletion regional/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 6.4.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.6.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.3 |

## Modules
Expand Down
9 changes: 7 additions & 2 deletions regional/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,13 @@ resource "google_container_node_pool" "this" {
disk_size_gb = each.value.disk_size_gb
disk_type = each.value.disk_type
image_type = each.value.image_type
labels = var.labels
machine_type = each.value.machine_type

kubelet_config {
insecure_kubelet_readonly_port_enabled = "FALSE"
}

labels = var.labels
machine_type = each.value.machine_type

metadata = {
"disable-legacy-endpoints" = true
Expand Down
4 changes: 2 additions & 2 deletions regional/onboarding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_google"></a> [google](#provider\_google) | 6.4.0 |
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.32.0 |
| <a name="provider_google"></a> [google](#provider\_google) | 6.6.0 |
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.33.0 |

## Modules

Expand Down
9 changes: 5 additions & 4 deletions regional/onboarding/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ resource "kubernetes_namespace_v1" "this" {
for_each = merge(
var.namespaces,
{
"cert-manager" = { istio_injection = "disabled" },
"datadog" = { istio_injection = "disabled" },
"istio-ingress" = { istio_injection = "enabled" },
"istio-system" = { istio_injection = "disabled" }
"cert-manager" = { istio_injection = "disabled" },
"datadog" = { istio_injection = "disabled" },
"gatekeeper-system" = { istio_injection = "disabled" },
"istio-ingress" = { istio_injection = "enabled" },
"istio-system" = { istio_injection = "disabled" }
}
)

Expand Down

0 comments on commit 8cce1d6

Please sign in to comment.