fix
This commit is contained in:
@@ -50,81 +50,81 @@ data "kustomization_overlay" "data" {
|
|||||||
name = "authentik-server"
|
name = "authentik-server"
|
||||||
}
|
}
|
||||||
patch = join("", concat([<<EOF
|
patch = join("", concat([<<EOF
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: authentik-server
|
name: authentik-server
|
||||||
annotations: ${jsonencode(local.server-annotations)}
|
annotations: ${jsonencode(local.server-annotations)}
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: authentik
|
- name: authentik
|
||||||
image: "${var.images.app.registry}/${var.images.app.repository}:${var.images.app.tag}"
|
image: "${var.images.app.registry}/${var.images.app.repository}:${var.images.app.tag}"
|
||||||
imagePullPolicy: "${var.images.app.pull_policy}"
|
imagePullPolicy: "${var.images.app.pull_policy}"
|
||||||
env:
|
env:
|
||||||
- name: "AUTHENTIK_POSTGRESQL__HOST"
|
- name: "AUTHENTIK_POSTGRESQL__HOST"
|
||||||
value: "${var.instance}-${var.component}-pool.${var.namespace}.svc"
|
value: "${var.instance}-${var.component}-pool.${var.namespace}.svc"
|
||||||
- name: AUTHENTIK_POSTGRESQL__PASSWORD
|
- name: AUTHENTIK_POSTGRESQL__PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: "${var.instance}-${var.component}-pg-app"
|
name: "${var.instance}-${var.component}-pg-app"
|
||||||
key: password
|
key: password
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: ${var.component}
|
name: ${var.component}
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: ${var.component}
|
name: ${var.component}
|
||||||
EOF
|
EOF
|
||||||
], var.customisation.configmap_name!="" && var.customisation.use_icon_left && var.customisation.use_custom_css?[<<EOF
|
], var.customisation.configmap_name!="" && var.customisation.use_icon_left && var.customisation.use_custom_css?[<<EOF
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: custom-css
|
- name: custom-css
|
||||||
mountPath: /web/dist/custom.css
|
mountPath: /web/dist/custom.css
|
||||||
subPath: custom.css
|
subPath: custom.css
|
||||||
- name: custom-left
|
- name: custom-left
|
||||||
mountPath: /web/dist/assets/icons/icon_left_brand.svg
|
mountPath: /web/dist/assets/icons/icon_left_brand.svg
|
||||||
subPath: icon_left_brand.svg
|
subPath: icon_left_brand.svg
|
||||||
volumes:
|
volumes:
|
||||||
- name: custom-css
|
- name: custom-css
|
||||||
configMap:
|
configMap:
|
||||||
name: "${var.customisation.configmap_name}"
|
name: "${var.customisation.configmap_name}"
|
||||||
items:
|
items:
|
||||||
- key: custom.css
|
- key: custom.css
|
||||||
path: custom.css
|
path: custom.css
|
||||||
- name: custom-left
|
- name: custom-left
|
||||||
configMap:
|
configMap:
|
||||||
name: "${var.customisation.configmap_name}"
|
name: "${var.customisation.configmap_name}"
|
||||||
items:
|
items:
|
||||||
- key: icon_left_brand.svg
|
- key: icon_left_brand.svg
|
||||||
path: icon_left_brand.svg
|
path: icon_left_brand.svg
|
||||||
EOF
|
EOF
|
||||||
]
|
]
|
||||||
:var.customisation.configmap_name!="" && var.customisation.use_icon_left && !var.customisation.use_custom_css?[<<EOF
|
:var.customisation.configmap_name!="" && var.customisation.use_icon_left && !var.customisation.use_custom_css?[<<EOF
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: custom-left
|
- name: custom-left
|
||||||
mountPath: /web/dist/assets/icons/icon_left_brand.svg
|
mountPath: /web/dist/assets/icons/icon_left_brand.svg
|
||||||
subPath: icon_left_brand.svg
|
subPath: icon_left_brand.svg
|
||||||
volumes:
|
volumes:
|
||||||
- name: custom-left
|
- name: custom-left
|
||||||
configMap:
|
configMap:
|
||||||
name: "${var.customisation.configmap_name}"
|
name: "${var.customisation.configmap_name}"
|
||||||
items:
|
items:
|
||||||
- key: icon_left_brand.svg
|
- key: icon_left_brand.svg
|
||||||
path: icon_left_brand.svg
|
path: icon_left_brand.svg
|
||||||
EOF
|
EOF
|
||||||
]
|
]
|
||||||
:var.customisation.configmap_name!="" && !var.customisation.use_icon_left && var.customisation.use_custom_css?[<<EOF
|
:var.customisation.configmap_name!="" && !var.customisation.use_icon_left && var.customisation.use_custom_css?[<<EOF
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: custom-css
|
- name: custom-css
|
||||||
mountPath: /web/dist/custom.css
|
mountPath: /web/dist/custom.css
|
||||||
subPath: custom.css
|
subPath: custom.css
|
||||||
volumes:
|
volumes:
|
||||||
- name: custom-css
|
- name: custom-css
|
||||||
configMap:
|
configMap:
|
||||||
name: "${var.customisation.configmap_name}"
|
name: "${var.customisation.configmap_name}"
|
||||||
items:
|
items:
|
||||||
- key: custom.css
|
- key: custom.css
|
||||||
path: custom.css
|
path: custom.css
|
||||||
EOF
|
EOF
|
||||||
]
|
]
|
||||||
:[""] ))
|
:[""] ))
|
||||||
|
|||||||
Reference in New Issue
Block a user