This commit is contained in:
2023-07-28 17:40:02 +02:00
parent c52091a2f3
commit 547d35ca5e
13 changed files with 212 additions and 108 deletions

View File

@@ -9,6 +9,9 @@ locals {
"app.kubernetes.io/name" = var.component
"app.kubernetes.io/instance" = var.instance
}
nextcloud-labels = merge(local.common-labels, {
"app.kubernetes.io/component" = "nextcloud"
})
}
data "kubernetes_secret_v1" "authentik" {
@@ -27,7 +30,7 @@ data "kubernetes_ingress_v1" "authentik" {
data "kustomization_overlay" "data" {
namespace = var.namespace
common_labels = local.common-labels
common_labels = local.nextcloud-labels
resources = [for file in fileset(path.module, "*.yaml"): file if file != "index.yaml"]
images {
name = "nextcloud"
@@ -95,6 +98,18 @@ data "kustomization_overlay" "data" {
secretKeyRef:
name: "${var.component}-${var.instance}-secret"
key: client-secret
- name: INSTANCE
value: "${var.instance}"
- name: ONLYOFFICE_JWT_SECRET
valueFrom:
secretKeyRef:
name: "${var.component}"
key: onlyoffice-jwt-secret
- name: COLLABORA_PASSWORD
valueFrom:
secretKeyRef:
name: "${var.component}"
key: collabora-password
resources:
{}