Skip to content

tagesspiegel/terraform-kubernetes-namespace-management

Repository files navigation

Namespace Management

This module creates namespaces from a map and uses rolebindings to manage permissions. The permissions.admins and permissions.devs lists should contain names of existing groups.

Examples

Complete Example

Requirements

Name Version
kubernetes 2.24.0

Providers

No providers.

Modules

Name Source Version
namespace ./modules/namespace n/a

Resources

No resources.

Inputs

Name Description Type Default Required
namespaces A map of namespaces with their metadata and permissions.
map(object({
labels = map(string)
permissions = list(object({
role_ref = object({
kind = string
name = string
api_group = string
})
subjects = list(object({
kind = string
name = string
api_group = string
}))
}))
}))
n/a yes

Outputs

No outputs.