From 0cdd855e3ea7120971add09936eaf4de8a0061c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 15 Oct 2023 10:56:19 +0200 Subject: [PATCH] fix --- apps/okd/index.yaml | 48 ++++++++++++++++++++++----------------------- apps/okd/rbac.tf | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/apps/okd/index.yaml b/apps/okd/index.yaml index afd261a..2c58f2a 100644 --- a/apps/okd/index.yaml +++ b/apps/okd/index.yaml @@ -6,21 +6,6 @@ metadata: name: okd description: null 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: default: okd: @@ -64,16 +49,16 @@ options: type: string type: object type: object - ingress-class: - default: traefik + namespaces: + default: [] + items: + type: string + type: array + cluster-admin: + default: false examples: - - traefik - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string + - false + type: boolean sub-domain: default: okd examples: @@ -84,11 +69,26 @@ options: examples: - your-company type: string + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string app-group: default: infra examples: - infra type: string + domain-name: + default: your_company.com + examples: + - your_company.com + type: string + ingress-class: + default: traefik + examples: + - traefik + type: string dependencies: - dist: null category: share diff --git a/apps/okd/rbac.tf b/apps/okd/rbac.tf index a3720b9..a486953 100644 --- a/apps/okd/rbac.tf +++ b/apps/okd/rbac.tf @@ -87,7 +87,7 @@ resource "kubectl_manifest" "okd_clusterrole_bindings" { count = length(local.sorted-namespaces)>0 ? 1 : 0 yaml_body = <<-EOF apiVersion: rbac.authorization.k8s.io/v1 - kind: RoleBinding + kind: ClusterRoleBinding metadata: name: "${var.namespace}-${var.component}-${var.instance}-list" namespace: "${local.sorted-namespaces[count.index]}"