This commit is contained in:
2023-10-15 10:56:19 +02:00
parent 5043ee0cda
commit 0cdd855e3e
2 changed files with 25 additions and 25 deletions

View File

@@ -6,21 +6,6 @@ metadata:
name: okd name: okd
description: null description: null
options: options:
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
namespaces:
default: []
items:
type: string
type: array
cluster-admin:
default: false
examples:
- false
type: boolean
images: images:
default: default:
okd: okd:
@@ -64,16 +49,16 @@ options:
type: string type: string
type: object type: object
type: object type: object
ingress-class: namespaces:
default: traefik default: []
examples: items:
- traefik
type: string type: string
issuer: type: array
default: letsencrypt-prod cluster-admin:
default: false
examples: examples:
- letsencrypt-prod - false
type: string type: boolean
sub-domain: sub-domain:
default: okd default: okd
examples: examples:
@@ -84,11 +69,26 @@ options:
examples: examples:
- your-company - your-company
type: string type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
app-group: app-group:
default: infra default: infra
examples: examples:
- infra - infra
type: string type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
dependencies: dependencies:
- dist: null - dist: null
category: share category: share

View File

@@ -87,7 +87,7 @@ resource "kubectl_manifest" "okd_clusterrole_bindings" {
count = length(local.sorted-namespaces)>0 ? 1 : 0 count = length(local.sorted-namespaces)>0 ? 1 : 0
yaml_body = <<-EOF yaml_body = <<-EOF
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: "${var.namespace}-${var.component}-${var.instance}-list" name: "${var.namespace}-${var.component}-${var.instance}-list"
namespace: "${local.sorted-namespaces[count.index]}" namespace: "${local.sorted-namespaces[count.index]}"