diff --git a/charts/vidcheck/.helmignore b/charts/vidcheck/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/charts/vidcheck/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/vidcheck/Chart.yaml b/charts/vidcheck/Chart.yaml deleted file mode 100644 index 9026cb8..0000000 --- a/charts/vidcheck/Chart.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: v2 -name: vidcheck -description: Web application to publish video fact-checks. Developed in Go and React. - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.2 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -appVersion: 0.12.0 - -maintainers: - - name: deshetti - - name: shreeharsha-factly \ No newline at end of file diff --git a/charts/vidcheck/data/server/policies.json b/charts/vidcheck/data/server/policies.json deleted file mode 100644 index d8228b2..0000000 --- a/charts/vidcheck/data/server/policies.json +++ /dev/null @@ -1,76 +0,0 @@ -[ - { - "name": "Editor", - "Description": "Editor", - "permissions": [ - { - "resource": "media", - "actions": ["get", "create", "update", "delete"] - }, - { - "resource": "claimants", - "actions": ["get", "create", "update", "delete"] - }, - { - "resource": "ratings", - "actions": ["get", "create", "update", "delete"] - }, - { - "resource": "fact-checks", - "actions": ["get", "create", "update", "delete"] - }, - { - "resource": "policies", - "actions": ["get"] - } - ] - }, - { - "name": "Author", - "Description": "Author", - "permissions": [ - { - "resource": "media", - "actions": ["get", "create", "update"] - }, - { - "resource": "claimants", - "actions": ["get", "create", "update"] - }, - { - "resource": "ratings", - "actions": ["get"] - }, - { - "resource": "fact-checks", - "actions": ["get", "create", "update"] - }, - { - "resource": "policies", - "actions": ["get"] - } - ] - }, - { - "name": "Contributor", - "Description": "Contributor", - "permissions": [ - { - "resource": "media", - "actions": ["get", "create"] - }, - { - "resource": "claimants", - "actions": ["get", "create"] - }, - { - "resource": "ratings", - "actions": ["get"] - }, - { - "resource": "fact-checks", - "actions": ["get", "create", "update"] - } - ] - } -] \ No newline at end of file diff --git a/charts/vidcheck/data/server/ratings.json b/charts/vidcheck/data/server/ratings.json deleted file mode 100644 index 3f44091..0000000 --- a/charts/vidcheck/data/server/ratings.json +++ /dev/null @@ -1,281 +0,0 @@ -[ - { - "name": "True", - "slug": "true", - "description": { - "blocks": [ - {"type":"paragraph", "data": {"text": "True"}} - ] - }, - "numeric_value": 5, - "background_colour": { - "hex": "#108040", - "hsl": { - "h": 145.7142857142857, - "s": 0.7777777777777778, - "l": 0.2823529411764706, - "a": 1 - }, - "hsv": { - "h": 145.7142857142857, - "s": 0.875, - "v": 0.5019607843137255, - "a": 1 - }, - "oldHue": 250, - "rgb": { - "r": 16, - "g": 128, - "b": 64, - "a": 1 - }, - "source": "hex" - }, - "text_colour": { - "hsl": { - "h": 0, - "s": 0, - "l": 0.9568627450980393, - "a": 1 - }, - "hex": "#f4f4f4", - "rgb": { - "r": 244, - "g": 244, - "b": 244, - "a": 1 - }, - "hsv": { - "h": 0, - "s": 0, - "v": 0.9568627450980393, - "a": 1 - }, - "oldHue": 0, - "source": "hex" - } - }, - { - "name": "Partly True", - "slug": "partly-true", - "description": { - "blocks": [ - {"type":"paragraph", "data": {"text": "Partly True"}} - ] - }, - "numeric_value": 4, - "background_colour": { - "hex": "#a5c239", - "hsl": { - "h": 72.70072992700729, - "s": 0.545816733067729, - "l": 0.492156862745098, - "a": 1 - }, - "hsv": { - "h": 72.70072992700729, - "s": 0.7061855670103093, - "v": 0.7607843137254902, - "a": 1 - }, - "oldHue": 250, - "rgb": { - "r": 165, - "g": 194, - "b": 57, - "a": 1 - }, - "source": "hex" - }, - "text_colour": { - "hsl": { - "h": 0, - "s": 0, - "l": 0.058823529411764705, - "a": 1 - }, - "hex": "#0f0f0f", - "rgb": { - "r": 15, - "g": 15, - "b": 15, - "a": 1 - }, - "hsv": { - "h": 0, - "s": 0, - "v": 0.058823529411764705, - "a": 1 - }, - "oldHue": 0, - "source": "hex" - } - }, - { - "name": "Unverified", - "slug": "unverified", - "description": { - "blocks": [ - {"type":"paragraph", "data": {"text": "Unverified"}} - ] - }, - "numeric_value": 3, - "background_colour": { - "hex": "#eca124", - "hsl": { - "h": 37.49999999999999, - "s": 0.8403361344537816, - "l": 0.5333333333333333, - "a": 1 - }, - "hsv": { - "h": 37.49999999999999, - "s": 0.8474576271186441, - "v": 0.9254901960784314, - "a": 1 - }, - "oldHue": 250, - "rgb": { - "r": 236, - "g": 161, - "b": 36, - "a": 1 - } - }, - "text_colour": { - "hsl": { - "h": 0, - "s": 0, - "l": 0.058823529411764705, - "a": 1 - }, - "hex": "#0f0f0f", - "rgb": { - "r": 15, - "g": 15, - "b": 15, - "a": 1 - }, - "hsv": { - "h": 0, - "s": 0, - "v": 0.058823529411764705, - "a": 1 - }, - "oldHue": 0, - "source": "hex" - } - }, - { - "name": "Misleading", - "slug": "misleading", - "description": { - "blocks": [ - {"type":"paragraph", "data": {"text": "Misleading"}} - ] - }, - "numeric_value": 2, - "background_colour": { - "hex": "#749990", - "hsl": { - "h": 165.40540540540542, - "s": 0.15352697095435683, - "l": 0.5274509803921569, - "a": 1 - }, - "hsv": { - "h": 165.40540540540542, - "s": 0.2418300653594771, - "v": 0.6, - "a": 1 - }, - "oldHue": 250, - "rgb": { - "r": 116, - "g": 153, - "b": 144, - "a": 1 - }, - "source": "hex" - }, - "text_colour": { - "hsl": { - "h": 0, - "s": 0, - "l": 0.058823529411764705, - "a": 1 - }, - "hex": "#0f0f0f", - "rgb": { - "r": 15, - "g": 15, - "b": 15, - "a": 1 - }, - "hsv": { - "h": 0, - "s": 0, - "v": 0.058823529411764705, - "a": 1 - }, - "oldHue": 0, - "source": "hex" - } - }, - { - "name": "False", - "slug": "false", - "description": { - "blocks": [ - {"type":"paragraph", "data": {"text": "False"}} - ] - }, - "numeric_value": 1, - "background_colour": { - "hex": "#e82728", - "hsl": { - "h": 359.68911917098444, - "s": 0.8075000000000001, - "l": 0.5313, - "a": 0.01 - }, - "hsv": { - "h": 359.68911917098444, - "s": 0.8320192267266009, - "v": 0.90977525, - "a": 0.01 - }, - "oldHue": 359.68911917098444, - "rgb": { - "r": 232, - "g": 39, - "b": 40, - "a": 0.01 - }, - "source": "rgb" - }, - "text_colour": { - "hsl": { - "h": 0, - "s": 0, - "l": 0.9568627450980393, - "a": 1 - }, - "hex": "#f4f4f4", - "rgb": { - "r": 244, - "g": 244, - "b": 244, - "a": 1 - }, - "hsv": { - "h": 0, - "s": 0, - "v": 0.9568627450980393, - "a": 1 - }, - "oldHue": 0, - "source": "hex" - } - } -] diff --git a/charts/vidcheck/data/web/templates/description.gohtml b/charts/vidcheck/data/web/templates/description.gohtml deleted file mode 100644 index a02890d..0000000 --- a/charts/vidcheck/data/web/templates/description.gohtml +++ /dev/null @@ -1,73 +0,0 @@ -{{range .}} -{{if eq .type "paragraph"}} -

{{noesc .data.text}}

- -{{else if eq .type "header"}} - {{.data.text}} - -{{else if eq .type "list"}} - {{if eq .data.style "ordered"}} -
    - {{range .data.items}} -
  1. {{.}}
  2. - {{end}} -
- {{else if eq .data.style "unordered"}} - - {{end}} - -{{else if eq .type "quote"}} -
{{.data.text}}
- -{{else if eq .type "raw"}} - {{noesc .data.html}} - -{{else if eq .type "code"}} -
-    
-        {{.data.code}}
-    
-    
- -{{else if eq .type "delimiter"}} -
- -{{else if eq .type "uppy"}} - {{if multipleImgs .data}} - {{range .data.nodes}} -
- {{.alt_text}} -

{{.caption}}

-
- {{end}} - - {{else}} -
- {{.data.alt_text}} -

{{.data.caption}}

-
- {{end}} - -{{else if eq .type "table"}} - - {{range $index, $element := .data.content}} - - - {{range $element}} - - {{if eq $index 0}}{{else}} {{end}} - {{end}} - - - {{end}} -
{{else}} {{end}} {{.}} {{if eq $index 0}}
- -{{else if eq .type "embed"}} - {{noesc .data.html}} - -{{end}} -{{end}} \ No newline at end of file diff --git a/charts/vidcheck/templates/NOTES.txt.bak b/charts/vidcheck/templates/NOTES.txt.bak deleted file mode 100644 index 316fec3..0000000 --- a/charts/vidcheck/templates/NOTES.txt.bak +++ /dev/null @@ -1,22 +0,0 @@ -1. Get the application URL by running these commands: -{{- if .Values.api.ingress.enabled }} -{{- range $host := .Values.api.ingress.hosts }} - {{- range .paths }} - http{{ if $.Values.api.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} - {{- end }} -{{- end }} -{{- else if contains "NodePort" .Values.api.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "dega.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.api.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "dega.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "dega.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.api.service.port }} -{{- else if contains "ClusterIP" .Values.api.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "dega.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT -{{- end }} diff --git a/charts/vidcheck/templates/_helpers.tpl b/charts/vidcheck/templates/_helpers.tpl deleted file mode 100644 index ab5750a..0000000 --- a/charts/vidcheck/templates/_helpers.tpl +++ /dev/null @@ -1,140 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "vidcheck.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "vidcheck.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "vidcheck.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Global Common labels -*/}} -{{- define "vidcheck.labels" -}} -helm.sh/chart: {{ include "vidcheck.chart" . }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -app.kubernetes.io/part-of: vidcheck -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "vidcheck.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "vidcheck.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} - -{{/* -Allow the release namespace to be overridden for multi-namespace deployments in combined charts -*/}} -{{- define "vidcheck.namespace" -}} - {{- .Release.Namespace -}} -{{- end -}} - -{{/* -Create API name and version as used by the chart label. -*/}} -{{- define "api.fullname" -}} -{{- printf "%s-%s" (include "vidcheck.fullname" .) .Values.api.name | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create Server name and version as used by the chart label. -*/}} -{{- define "server.fullname" -}} -{{- printf "%s-%s" (include "vidcheck.fullname" .) .Values.server.name | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -server Common labels -*/}} -{{- define "server.labels" -}} -{{ include "vidcheck.labels" . }} -app.kubernetes.io/component: {{ .Values.server.name }} -app.kubernetes.io/name: {{ include "vidcheck.name" . }}-{{ .Values.server.name }} -app.kubernetes.io/version: {{ default .Values.global.image.tag .Values.server.image.tag | quote }} -{{- end }} - -{{/* -server Selector labels -*/}} -{{- define "server.selectorLabels" -}} -app.kubernetes.io/instance: {{ .Release.Name }} -app.kubernetes.io/name: {{ include "vidcheck.name" . }}-{{ .Values.server.name }} -{{- end }} - -{{/* -Create the name of the service account to use for server -*/}} -{{- define "server.serviceAccountName" -}} -{{- if .Values.server.serviceAccount.create }} -{{- default (include "server.fullname" .) .Values.server.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.server.serviceAccount.name }} -{{- end }} -{{- end }} - -{{/* -Create studio name and version as used by the chart label. -*/}} -{{- define "studio.fullname" -}} -{{- printf "%s-%s" (include "vidcheck.fullname" .) .Values.studio.name | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -studio Common labels -*/}} -{{- define "studio.labels" -}} -{{ include "vidcheck.labels" . }} -app.kubernetes.io/component: {{ .Values.studio.name }} -app.kubernetes.io/name: {{ include "vidcheck.name" . }}-{{ .Values.studio.name }} -app.kubernetes.io/version: {{ default .Values.global.image.tag .Values.studio.image.tag | quote }} -{{- end }} - -{{/* -studio Selector labels -*/}} -{{- define "studio.selectorLabels" -}} -app.kubernetes.io/instance: {{ .Release.Name }} -app.kubernetes.io/name: {{ include "vidcheck.name" . }}-{{ .Values.studio.name }} -{{- end }} - -{{/* -Create the name of the service account to use for studio -*/}} -{{- define "studio.serviceAccountName" -}} -{{- if .Values.studio.serviceAccount.create }} -{{- default (include "studio.fullname" .) .Values.studio.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.studio.serviceAccount.name }} -{{- end }} -{{- end }} - - diff --git a/charts/vidcheck/templates/server/configmaps/configmap-data.yaml b/charts/vidcheck/templates/server/configmaps/configmap-data.yaml deleted file mode 100644 index c8fbfa1..0000000 --- a/charts/vidcheck/templates/server/configmaps/configmap-data.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: vidcheck-server-data - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "server.labels" . | nindent 4 }} - {{- if .Values.server.configAnnotations }} - annotations: - {{- range $key, $value := .Values.server.configAnnotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} -data: - {{- (.Files.Glob "data/server/**.json").AsConfig | nindent 2 }} \ No newline at end of file diff --git a/charts/vidcheck/templates/server/configmaps/configmap-web.yaml b/charts/vidcheck/templates/server/configmaps/configmap-web.yaml deleted file mode 100644 index d01b59e..0000000 --- a/charts/vidcheck/templates/server/configmaps/configmap-web.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: vidcheck-server-web - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "server.labels" . | nindent 4 }} - {{- if .Values.server.configAnnotations }} - annotations: - {{- range $key, $value := .Values.server.configAnnotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} -data: - {{- (.Files.Glob "data/web/templates/**.gohtml").AsConfig | nindent 2 }} \ No newline at end of file diff --git a/charts/vidcheck/templates/server/deployment.yaml b/charts/vidcheck/templates/server/deployment.yaml deleted file mode 100644 index 63886d9..0000000 --- a/charts/vidcheck/templates/server/deployment.yaml +++ /dev/null @@ -1,135 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ template "server.fullname" . }} - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "server.labels" . | nindent 4 }} -spec: - {{- if not .Values.server.autoscaling.enabled }} - replicas: {{ .Values.server.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "server.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.server.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "server.labels" . | nindent 8 }} - {{- if .Values.server.podLabels }} - {{- toYaml .Values.server.podLabels | nindent 8 }} - {{- end }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- if .Values.server.serviceAccount.create -}} - serviceAccountName: {{ include "server.serviceAccountName" . }} - {{- end }} - securityContext: - {{- toYaml .Values.global.securityContext | nindent 8 }} - {{- if or .Values.server.autoMigrate .Values.server.createSuperOrg }} - initContainers: - {{- if .Values.server.autoMigrate}} - - name: {{ .Values.server.name }}-automigrate - securityContext: - {{- toYaml .Values.server.securityContext | nindent 12 }} - image: "{{ .Values.server.image.repository }}:{{ .Values.server.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.server.image.pullPolicy }} - args: ["migrate"] - {{- if .Values.server.env }} - env: - {{- toYaml .Values.server.env | nindent 12 }} - {{- end }} - resources: - {{- toYaml .Values.server.resources | nindent 12 }} - volumeMounts: - - name: vidcheck-server-data - mountPath: ./data - {{- end }} - {{- if .Values.server.createSuperOrg}} - - name: {{ .Values.server.name }}-create-super-org - securityContext: - {{- toYaml .Values.server.securityContext | nindent 12 }} - image: "{{ .Values.server.image.repository }}:{{ .Values.server.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.server.image.pullPolicy }} - args: ["create-super-org"] - {{- if .Values.server.env }} - env: - {{- toYaml .Values.server.env | nindent 12 }} - {{- end }} - resources: - {{- toYaml .Values.server.resources | nindent 12 }} - volumeMounts: - - name: vidcheck-server-data - mountPath: ./data - {{- end }} - {{- end }} - containers: - - name: {{ .Values.server.name }} - securityContext: - {{- toYaml .Values.server.securityContext | nindent 12 }} - image: "{{ .Values.server.image.repository }}:{{ .Values.server.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.server.image.pullPolicy }} - {{- if .Values.server.env }} - env: - {{- toYaml .Values.server.env | nindent 12 }} - {{- end }} - ports: - - name: {{ .Values.server.service.portName }} - containerPort: {{ .Values.server.service.port }} - protocol: TCP - {{ if .Values.server.metrics.enabled }} - - name: {{ .Values.server.metrics.service.portName }} - containerPort: {{ .Values.server.metrics.service.port }} - protocol: TCP - {{- end }} - livenessProbe: - httpGet: - path: /health/alive - port: {{ .Values.server.service.port }} - initialDelaySeconds: {{ .Values.server.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.server.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.server.livenessProbe.timeoutSeconds }} - successThreshold: {{ .Values.server.livenessProbe.successThreshold }} - failureThreshold: {{ .Values.server.livenessProbe.failureThreshold }} - readinessProbe: - httpGet: - path: /health/ready - port: {{ .Values.server.service.port }} - initialDelaySeconds: {{ .Values.server.readinessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.server.readinessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.server.readinessProbe.timeoutSeconds }} - successThreshold: {{ .Values.server.readinessProbe.successThreshold }} - failureThreshold: {{ .Values.server.readinessProbe.failureThreshold }} - resources: - {{- toYaml .Values.server.resources | nindent 12 }} - volumeMounts: - - name: vidcheck-server-data - mountPath: ./data - - name: vidcheck-server-web - mountPath: ./web/templates - volumes: - - name: vidcheck-server-data - configMap: - name: vidcheck-server-data - - name: vidcheck-server-web - configMap: - name: vidcheck-server-web - {{- with .Values.server.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.server.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.server.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/charts/vidcheck/templates/server/hpa.yaml b/charts/vidcheck/templates/server/hpa.yaml deleted file mode 100644 index 19d0f93..0000000 --- a/charts/vidcheck/templates/server/hpa.yaml +++ /dev/null @@ -1,30 +0,0 @@ -{{- if .Values.server.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: {{ template "server.fullname" . }} - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "server.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "vidcheck.fullname" . }} - minReplicas: {{ .Values.server.autoscaling.minReplicas }} - maxReplicas: {{ .Values.server.autoscaling.maxReplicas }} - metrics: - {{- if .Values.server.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - targetAverageUtilization: {{ .Values.server.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} - {{- if .Values.server.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - targetAverageUtilization: {{ .Values.server.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} -{{- end }} - diff --git a/charts/vidcheck/templates/server/service-metrics.yaml b/charts/vidcheck/templates/server/service-metrics.yaml deleted file mode 100644 index f0b4c3f..0000000 --- a/charts/vidcheck/templates/server/service-metrics.yaml +++ /dev/null @@ -1,29 +0,0 @@ -{{- if .Values.server.metrics.enabled }} -apiVersion: v1 -kind: Service -metadata: - name: {{ template "server.fullname" . }}-metrics - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "server.labels" . | nindent 4 }} - {{- if .Values.server.metrics.service.labels }} - {{- toYaml .Values.server.metrics.service.labels | nindent 4 }} - {{- end }} - {{- if .Values.server.metrics.service.annotations }} - annotations: - {{- range $key, $value := .Values.server.metrics.service.annotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} -spec: - selector: - {{- include "server.selectorLabels" . | nindent 4 }} - type: {{ .Values.server.metrics.service.type }} - ports: - - port: {{ .Values.server.metrics.service.port }} - targetPort: 8001 - protocol: TCP - {{- if .Values.server.metrics.service.portName }} - name: {{ .Values.server.metrics.service.portName }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/vidcheck/templates/server/service.yaml b/charts/vidcheck/templates/server/service.yaml deleted file mode 100644 index 561a18f..0000000 --- a/charts/vidcheck/templates/server/service.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "server.fullname" . }} - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "server.labels" . | nindent 4 }} - {{- if .Values.server.service.labels }} - {{- toYaml .Values.server.service.labels | nindent 4 }} - {{- end }} - {{- if .Values.server.service.annotations }} - annotations: - {{- range $key, $value := .Values.server.service.annotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} -spec: - selector: - {{- include "server.selectorLabels" . | nindent 4 }} - type: {{ .Values.server.service.type }} - ports: - - port: {{ .Values.server.service.port }} - targetPort: 8000 - protocol: TCP - {{- if .Values.server.service.portName }} - name: {{ .Values.server.service.portName }} - {{- end }} \ No newline at end of file diff --git a/charts/vidcheck/templates/server/serviceaccount.yaml b/charts/vidcheck/templates/server/serviceaccount.yaml deleted file mode 100644 index aa85858..0000000 --- a/charts/vidcheck/templates/server/serviceaccount.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{{- if .Values.server.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "server.serviceAccountName" . }} - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "server.labels" . | nindent 4 }} - {{- if .Values.server.serviceAccount.labels }} - {{- toYaml .Values.server.serviceAccount.labels | nindent 4 }} - {{- end }} - {{- if .Values.server.serviceAccount.annotations }} - annotations: - {{- range $key, $value := .Values.server.serviceAccount.annotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/vidcheck/templates/server/servicemonitor.yaml b/charts/vidcheck/templates/server/servicemonitor.yaml deleted file mode 100644 index 248ea45..0000000 --- a/charts/vidcheck/templates/server/servicemonitor.yaml +++ /dev/null @@ -1,26 +0,0 @@ -{{- if and .Values.server.metrics.enabled .Values.server.metrics.serviceMonitor.enabled }} -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: {{ template "server.fullname" . }} - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "server.labels" . | nindent 4 }} - {{- if .Values.server.metrics.serviceMonitor.selector }} - {{- toYaml .Values.server.metrics.serviceMonitor.selector | nindent 4 }} - {{- end }} - {{- if .Values.server.metrics.serviceMonitor.labels }} - {{- toYaml .Values.server.metrics.serviceMonitor.labels | nindent 4 }} - {{- end }} -spec: - endpoints: - - interval: {{ .Values.server.metrics.serviceMonitor.interval }} - port: metrics - scheme: {{ .Values.server.metrics.serviceMonitor.scheme }} - namespaceSelector: - matchNames: - - {{ template "vidcheck.namespace" . }} - selector: - matchLabels: - {{- include "server.selectorLabels" . | nindent 6 }} -{{- end }} \ No newline at end of file diff --git a/charts/vidcheck/templates/studio/configmap.yaml b/charts/vidcheck/templates/studio/configmap.yaml deleted file mode 100644 index 44c5519..0000000 --- a/charts/vidcheck/templates/studio/configmap.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: vidcheck-studio-config - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "studio.labels" . | nindent 4 }} - {{- if .Values.studio.configAnnotations }} - annotations: - {{- range $key, $value := .Values.studio.configAnnotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} -data: - config.js: |- - window.PUBLIC_URL = "https://vidcheck.factly.org"; - window.REACT_APP_API_URL = "https://vidcheck-server.factly.org"; - window.REACT_APP_KRATOS_PUBLIC_URL = "https://kratos.factly.org"; - window.REACT_APP_COMPANION_URL = "https://companion.factly.org"; \ No newline at end of file diff --git a/charts/vidcheck/templates/studio/deployment.yaml b/charts/vidcheck/templates/studio/deployment.yaml deleted file mode 100644 index ec5922a..0000000 --- a/charts/vidcheck/templates/studio/deployment.yaml +++ /dev/null @@ -1,71 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ template "studio.fullname" . }} - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "studio.labels" . | nindent 4 }} -spec: - {{- if not .Values.studio.autoscaling.enabled }} - replicas: {{ .Values.studio.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "studio.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.studio.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "studio.labels" . | nindent 8 }} - {{- if .Values.studio.podLabels }} - {{- toYaml .Values.studio.podLabels | nindent 8 }} - {{- end }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- if .Values.studio.serviceAccount.create -}} - serviceAccountName: {{ include "studio.serviceAccountName" . }} - {{- end }} - securityContext: - {{- toYaml .Values.global.securityContext | nindent 8 }} - containers: - - name: {{ .Values.studio.name }} - securityContext: - {{- toYaml .Values.studio.securityContext | nindent 12 }} - image: "{{ .Values.studio.image.repository }}:{{ .Values.studio.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.studio.image.pullPolicy }} - {{- if .Values.studio.env }} - env: - {{- toYaml .Values.studio.env | nindent 12 }} - {{- end }} - ports: - - name: {{ .Values.studio.service.portName }} - containerPort: {{ .Values.studio.service.port }} - protocol: TCP - resources: - {{- toYaml .Values.studio.resources | nindent 12 }} - volumeMounts: - - name: vidcheck-studio-config - mountPath: /usr/share/nginx/html/config.js - subPath: config.js - volumes: - - name: vidcheck-studio-config - configMap: - name: vidcheck-studio-config - {{- with .Values.studio.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.studio.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.studio.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/charts/vidcheck/templates/studio/hpa.yaml b/charts/vidcheck/templates/studio/hpa.yaml deleted file mode 100644 index 0b4f6d5..0000000 --- a/charts/vidcheck/templates/studio/hpa.yaml +++ /dev/null @@ -1,30 +0,0 @@ -{{- if .Values.studio.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: {{ template "studio.fullname" . }} - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "studio.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "vidcheck.fullname" . }} - minReplicas: {{ .Values.studio.autoscaling.minReplicas }} - maxReplicas: {{ .Values.studio.autoscaling.maxReplicas }} - metrics: - {{- if .Values.studio.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - targetAverageUtilization: {{ .Values.studio.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} - {{- if .Values.studio.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - targetAverageUtilization: {{ .Values.studio.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} -{{- end }} - diff --git a/charts/vidcheck/templates/studio/service.yaml b/charts/vidcheck/templates/studio/service.yaml deleted file mode 100644 index 7505909..0000000 --- a/charts/vidcheck/templates/studio/service.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ template "studio.fullname" . }} - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "studio.labels" . | nindent 4 }} - {{- if .Values.studio.service.labels }} - {{- toYaml .Values.studio.service.labels | nindent 4 }} - {{- end }} - {{- if .Values.studio.service.annotations }} - annotations: - {{- range $key, $value := .Values.studio.service.annotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} -spec: - selector: - {{- include "studio.selectorLabels" . | nindent 4 }} - type: {{ .Values.studio.service.type }} - ports: - - port: {{ .Values.studio.service.port }} - targetPort: 80 - protocol: TCP - {{- if .Values.studio.service.portName }} - name: {{ .Values.studio.service.portName }} - {{- end }} \ No newline at end of file diff --git a/charts/vidcheck/templates/studio/serviceaccount.yaml b/charts/vidcheck/templates/studio/serviceaccount.yaml deleted file mode 100644 index 51ba30c..0000000 --- a/charts/vidcheck/templates/studio/serviceaccount.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{{- if .Values.studio.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "studio.serviceAccountName" . }} - namespace: {{ template "vidcheck.namespace" . }} - labels: - {{- include "studio.labels" . | nindent 4 }} - {{- if .Values.studio.serviceAccount.labels }} - {{- toYaml .Values.studio.serviceAccount.labels | nindent 4 }} - {{- end }} - {{- if .Values.studio.serviceAccount.annotations }} - annotations: - {{- range $key, $value := .Values.studio.serviceAccount.annotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/vidcheck/values.yaml b/charts/vidcheck/values.yaml deleted file mode 100644 index fb20099..0000000 --- a/charts/vidcheck/values.yaml +++ /dev/null @@ -1,240 +0,0 @@ -# Default values for vidcheck. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -nameOverride: vidcheck -fullnameOverride: vidcheck - -## Override the deployment namespace -namespaceOverride: vidcheck - -imagePullSecrets: [] - - -global: - image: - tag: "" - imagePullPolicy: IfNotPresent - securityContext: {} - # runAsUser: 999 - # runAsGroup: 999 - # fsGroup: 999 - -server: - name: server - - image: - repository: factly/vidcheck-server - pullPolicy: IfNotPresent - tag: "" - - # imagePullSecrets: [] - - # This value will be ignored if Autoscaling is enabled - replicaCount: 1 - - autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 5 - targetCPUUtilizationPercentage: 80 - targetMemoryUtilizationPercentage: 80 - - autoMigrate: true - createSuperOrg: true - - ## Environment variables to pass to vidcheck Server - env: {} - # - name: VIDCHECK_DATABASE_NAME - # value: "vidcheck" - # - name: VIDCHECK_DATABASE_PORT - # value: "5432" - # - name: VIDCHECK_DATABASE_SSL_MODE - # value: "disable" - # - name: VIDCHECK_DATABASE_USER - # value: "postgres" - # - name: VIDCHECK_DATABASE_PASSWORD - # valueFrom: - # secretKeyRef: - # name: vidcheck-server - # key: database_password - # - name: VIDCHECK_KAVACH_URL - # value: "http://kavach-server.dega.svc.cluster.local:8000" - # - name: VIDCHECK_DEGA_INTEGRATION - # value: "true" - # - name: VIDCHECK_DEGA_URL - # value: "https://dega-server.dega.svc.cluster.local:8000" - - serviceAccount: - # Specifies whether a service account should be created - create: false - # Annotations to add to the service account - annotations: {} - # Labels to add to the service account - labels: {} - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: "vidcheck-server" - - podAnnotations: {} - - securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - - configAnnotations: {} - - service: - type: ClusterIP - port: 8000 - portName: http - annotations: {} - labels: {} - - metrics: - enabled: false - - service: - type: ClusterIP - port: 8001 - portName: metrics - annotations: {} - labels: {} - - serviceMonitor: - enabled: false - selector: - # prometheus: kube-prometheus - release: monitoring - labels: {} - interval: 30s - - scheme: http - tlsConfig: {} - scrapeTimeout: 30s - relabelings: [] - - resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 500m - # memory: 1024Mi - # requests: - # cpu: 100m - # memory: 128Mi - - ## Readiness and liveness probes for default backend - ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ - ## - readinessProbe: - initialDelaySeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 5 - periodSeconds: 10 - livenessProbe: - initialDelaySeconds: 50 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 5 - periodSeconds: 10 - - nodeSelector: {} - - tolerations: [] - - affinity: {} - -studio: - name: studio - - image: - repository: factly/vidcheck-studio - pullPolicy: IfNotPresent - tag: "" - - # imagePullSecrets: [] - - # This value will be ignored if Autoscaling is enabled - replicaCount: 1 - - autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 5 - targetCPUUtilizationPercentage: 80 - targetMemoryUtilizationPercentage: 80 - - ## Environment variables to pass to vidcheck studio - env: {} - - serviceAccount: - # Specifies whether a service account should be created - create: false - # Annotations to add to the service account - annotations: {} - # Labels to add to the service account - labels: {} - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: "vidcheck-studio" - - podAnnotations: {} - - securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - - configAnnotations: {} - - service: - type: ClusterIP - port: 80 - portName: http - annotations: {} - labels: {} - - resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 500m - # memory: 1024Mi - # requests: - # cpu: 100m - # memory: 128Mi - - ## Readiness and liveness probes for default backend - ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ - ## - readinessProbe: - initialDelaySeconds: 10 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 5 - periodSeconds: 10 - livenessProbe: - initialDelaySeconds: 50 - timeoutSeconds: 5 - successThreshold: 1 - failureThreshold: 5 - periodSeconds: 10 - - nodeSelector: {} - - tolerations: [] - - affinity: {} \ No newline at end of file