mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-05 18:31:00 +03:00
++ fix kafka acl dup key, pin kafka provider 0.7.1
This commit is contained in:
parent
beea0586c5
commit
efcfb1e2f3
@ -38,7 +38,7 @@ terraform {
|
||||
required_providers {
|
||||
kubernetes = { source = "hashicorp/kubernetes", version = "~> 2.23" }
|
||||
vault = { source = "hashicorp/vault", version = "~> 4.2" }
|
||||
kafka = { source = "Mongey/kafka", version = "~> 0.7" }
|
||||
kafka = { source = "Mongey/kafka", version = "0.7.1" }
|
||||
postgresql = { source = "cyrilgdn/postgresql", version = "~> 1.21" }
|
||||
rabbitmq = { source = "cyrilgdn/rabbitmq", version = "~> 1.8" }
|
||||
minio = { source = "aminueza/minio", version = "~> 2.0" }
|
||||
|
||||
@ -113,8 +113,11 @@ locals {
|
||||
}
|
||||
|
||||
# Flatten (user, topic, role) permissions into individual ACL entries.
|
||||
# A single operation (e.g. Topic:Describe) can come from several roles
|
||||
# (PRODUCER and CONSUMER both grant it), so group by key and keep one.
|
||||
acl_entries = merge([
|
||||
for user_key, perms in local.user_permissions : {
|
||||
for key, group in {
|
||||
for e in flatten([
|
||||
for p in perms : [
|
||||
for op in try(local.role_operations[p.role], []) : {
|
||||
@ -125,7 +128,8 @@ locals {
|
||||
operation = op.operation
|
||||
}
|
||||
]
|
||||
]) : e.key => e
|
||||
]) : e.key => e...
|
||||
} : key => group[0]
|
||||
}
|
||||
]...)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user