fix(flame): cleanup and attempt to enable k8s integration (#3385)
* fix(flame): cleanup * make k8s integration an option Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
co-authored by
Kjeld Schouten-Lebbing
parent
09f1b94497
commit
e3d41435e2
@@ -1,22 +1,16 @@
|
|||||||
annotations:
|
|
||||||
truecharts.org/SCALE-support: "true"
|
|
||||||
truecharts.org/catagories: |
|
|
||||||
- Tools-Utilities
|
|
||||||
- Network-Web
|
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: "latest"
|
appVersion: "latest"
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://library-charts.truecharts.org
|
repository: https://library-charts.truecharts.org
|
||||||
version: 10.4.9
|
version: 10.4.8
|
||||||
deprecated: false
|
deprecated: false
|
||||||
description: Flame is self-hosted startpage for your server. Easily manage your apps and bookmarks with built-in editors.
|
description: Flame is self-hosted start page for your server. Easily manage your apps and bookmarks with built-in editors.
|
||||||
home: https://truecharts.org/docs/charts/incubator/flame
|
home: https://github.com/truecharts/charts/tree/master/charts/incubator/flame
|
||||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/flame.png
|
icon: https://truecharts.org/img/chart-icons/flame.png
|
||||||
keywords:
|
keywords:
|
||||||
- flame
|
- flame
|
||||||
- Tools-Utilities
|
- dashboard
|
||||||
- Network-Web
|
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
maintainers:
|
maintainers:
|
||||||
- email: info@truecharts.org
|
- email: info@truecharts.org
|
||||||
@@ -28,4 +22,8 @@ sources:
|
|||||||
- https://github.com/pawelmalak/flame
|
- https://github.com/pawelmalak/flame
|
||||||
- https://hub.docker.com/r/pawelmalak/flame
|
- https://hub.docker.com/r/pawelmalak/flame
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.16
|
version: 0.0.17
|
||||||
|
annotations:
|
||||||
|
truecharts.org/SCALE-support: "true"
|
||||||
|
truecharts.org/catagories: |
|
||||||
|
- utilities
|
||||||
|
|||||||
@@ -11,6 +11,20 @@ questions:
|
|||||||
# Include{strategy}
|
# Include{strategy}
|
||||||
# Include{recreate}
|
# Include{recreate}
|
||||||
# Include{controllerExpert}
|
# Include{controllerExpert}
|
||||||
|
- variable: secretEnv
|
||||||
|
group: "Container Configuration"
|
||||||
|
label: "Image Secrets"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: PASSWORD
|
||||||
|
label: 'PASSWORD'
|
||||||
|
description: "PASSWORD"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
private: true
|
||||||
|
default: ""
|
||||||
- variable: env
|
- variable: env
|
||||||
group: "Container Configuration"
|
group: "Container Configuration"
|
||||||
label: "Image Environment"
|
label: "Image Environment"
|
||||||
@@ -18,12 +32,12 @@ questions:
|
|||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
- variable: PASSWORD
|
- variable: enable_integration
|
||||||
label: 'PASSWORD'
|
label: "Enable Kubernetes Integration"
|
||||||
description: "Container Variable PASSWORD"
|
description: "Defines RBAC, ClusterRole, ClusterRoleBinding and Service Account"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: boolean
|
||||||
default: "flame_password"
|
default: false
|
||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
# Include{serviceRoot}
|
# Include{serviceRoot}
|
||||||
- variable: main
|
- variable: main
|
||||||
@@ -45,9 +59,9 @@ questions:
|
|||||||
description: "This port exposes the container port on the service"
|
description: "This port exposes the container port on the service"
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 5030
|
default: 10291
|
||||||
required: true
|
required: true
|
||||||
# Include{advancedPortTCP}
|
# Include{advancedPortHTTP}
|
||||||
- variable: targetPort
|
- variable: targetPort
|
||||||
label: "Target Port"
|
label: "Target Port"
|
||||||
description: "The internal(!) port on the container the Application runs on"
|
description: "The internal(!) port on the container the Application runs on"
|
||||||
@@ -61,7 +75,7 @@ questions:
|
|||||||
# Include{persistenceRoot}
|
# Include{persistenceRoot}
|
||||||
- variable: data
|
- variable: data
|
||||||
label: "data Storage"
|
label: "data Storage"
|
||||||
description: "Container Path appdata"
|
description: "Container Path data"
|
||||||
schema:
|
schema:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{{- define "flame.integration.serviceAccount" -}}
|
||||||
|
main:
|
||||||
|
create: true
|
||||||
|
{{- end -}}
|
||||||
|
---
|
||||||
|
{{- define "flame.integration.rbac" -}}
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- "networking.k8s.io"
|
||||||
|
resources:
|
||||||
|
- "ingresses"
|
||||||
|
verbs:
|
||||||
|
- "get"
|
||||||
|
- "list"
|
||||||
|
- "watch"
|
||||||
|
{{- end -}}
|
||||||
@@ -1,2 +1,10 @@
|
|||||||
|
{{/* Make sure all variables are set properly */}}
|
||||||
|
{{- include "tc.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{- if .Values.env.enable_integration -}}
|
||||||
|
{{- $_ := set .Values "serviceAccount" (include "flame.integration.serviceAccount" . | fromYaml) -}}
|
||||||
|
{{- $_ := set .Values "rbac" (include "flame.integration.rbac" . | fromYaml) -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "tc.common.loader.all" . }}
|
{{ include "tc.common.loader.apply" . }}
|
||||||
|
|||||||
@@ -1,28 +1,36 @@
|
|||||||
env:
|
|
||||||
PASSWORD: flame_password
|
|
||||||
image:
|
image:
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
repository: tccr.io/truecharts/flame
|
repository: tccr.io/truecharts/flame
|
||||||
tag: latest@sha256:1e4cfbb4a7cd8039b8a80106d84c6239852d497556c1c6883f16940234d7e55d
|
pullPolicy: IfNotPresent
|
||||||
persistence:
|
tag: v2.3.0@sha256:47efacdbe12bb2697889aa1f67be324c70fb4ea2c687164edbc215dc4485e819
|
||||||
data:
|
|
||||||
enabled: true
|
|
||||||
mountPath: /app/data
|
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
|
|
||||||
securityContext:
|
securityContext:
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
runAsNonRoot: false
|
runAsNonRoot: false
|
||||||
|
|
||||||
|
secretEnv:
|
||||||
|
PASSWORD: flame_password
|
||||||
|
|
||||||
|
env:
|
||||||
|
enable_integration: true
|
||||||
|
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
ports:
|
ports:
|
||||||
main:
|
main:
|
||||||
enabled: true
|
enabled: true
|
||||||
port: 5030
|
port: 10291
|
||||||
protocol: TCP
|
protocol: HTTP
|
||||||
targetPort: 5005
|
targetPort: 5005
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
data:
|
||||||
|
enabled: true
|
||||||
|
mountPath: /app/data
|
||||||
|
|
||||||
portal:
|
portal:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user