-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reporting-Init: Helm chart added, docker added. Module-wise Connector…
…s: updated Signed-off-by: Lalith Kota <[email protected]>
- Loading branch information
1 parent
730d51e
commit a1852e7
Showing
54 changed files
with
1,263 additions
and
918 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
charts/ | ||
Chart.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# 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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v2 | ||
name: reporting-init | ||
description: A Helm chart for initializing OpenG2P Reporting connectors. | ||
type: application | ||
version: 0.0.0-develop | ||
dependencies: | ||
- name: common | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 2.x.x | ||
icon: https://openg2p.github.io/openg2p-helm/openg2p-logo.png | ||
annotations: | ||
catalog.cattle.io/display-name: "OpenG2P Reporting Init" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Reporting Init | ||
|
||
Helm chart for installing reporting connectors and initialize other required elements. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
questions: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{/* | ||
Render Env values section | ||
*/}} | ||
{{- define "reporting-init.baseEnvVars" -}} | ||
{{- $context := .context -}} | ||
{{- range $k, $v := .envVars }} | ||
- name: {{ $k }} | ||
{{- if or (kindIs "int64" $v) (kindIs "float64" $v) (kindIs "bool" $v) }} | ||
value: {{ $v | quote }} | ||
{{- else if kindIs "string" $v }} | ||
value: {{ include "common.tplvalues.render" ( dict "value" $v "context" $context ) | squote }} | ||
{{- else }} | ||
valueFrom: {{- include "common.tplvalues.render" ( dict "value" $v "context" $context ) | nindent 4}} | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- define "reporting-init.envVars" -}} | ||
{{- $envVars := merge (deepCopy .Values.envVars) (deepCopy .Values.envVarsFrom) -}} | ||
{{- include "reporting-init.baseEnvVars" (dict "envVars" $envVars "context" $) }} | ||
{{- end -}} | ||
|
||
{{/* | ||
Return command | ||
*/}} | ||
{{- define "reporting-init.commandBase" -}} | ||
{{- if or .command .args }} | ||
{{- if .command }} | ||
command: {{- include "common.tplvalues.render" (dict "value" .command "context" .context) }} | ||
{{- end }} | ||
{{- if .args }} | ||
args: {{- include "common.tplvalues.render" (dict "value" .args "context" .context) }} | ||
{{- end }} | ||
{{- else if .startUpCommand }} | ||
command: ["/reporting-init/startup-command.sh"] | ||
args: [] | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- define "reporting-init.command" -}} | ||
{{- include "reporting-init.commandBase" (dict "command" .Values.command "args" .Values.args "startUpCommand" .Values.startUpCommand "context" $) }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if and .Values.startUpCommand (not (or .Values.command .Values.args)) }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "common.names.fullname" . }}-startup | ||
labels: {{- include "common.labels.standard" . | nindent 4 }} | ||
{{- if .Values.commonLabels }} | ||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.commonAnnotations }} | ||
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
data: | ||
startup-command.sh: |- | ||
{{- include "common.tplvalues.render" (dict "value" .Values.startUpCommand "context" $) | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: {{ template "common.names.fullname" . }} | ||
labels: {{- include "common.labels.standard" . | nindent 4 }} | ||
{{- if .Values.commonLabels }} | ||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
annotations: | ||
"helm.sh/hook": post-install,post-upgrade | ||
"helm.sh/hook-weight": "0" | ||
"helm.sh/hook-delete-policy": before-hook-creation | ||
{{- if .Values.commonAnnotations }} | ||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.backoffLimit }} | ||
backoffLimit: {{ .Values.backoffLimit }} | ||
{{- end }} | ||
template: | ||
metadata: | ||
{{- if .Values.podAnnotations }} | ||
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8}} | ||
{{- end }} | ||
labels: {{- include "common.labels.standard" . | nindent 8 }} | ||
{{- if .Values.podLabels }} | ||
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }} | ||
{{- end }} | ||
spec: | ||
{{- include "common.images.pullSecrets" (dict "images" (list .Values.image) "global" .Values.global) | nindent 6 }} | ||
{{- if .Values.serviceAccount.name }} | ||
serviceAccountName: {{ .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- if .Values.podSecurityContext.enabled }} | ||
securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }} | ||
{{- end }} | ||
restartPolicy: Never | ||
{{- if .Values.initContainers }} | ||
initContainers: | ||
{{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }} | ||
{{- end }} | ||
containers: | ||
- name: reporting-init | ||
image: {{ include "common.images.image" (dict "imageRoot" .Values.image "global" .Values.global) }} | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
{{- include "reporting-init.command" . | nindent 10 }} | ||
{{- if .Values.containerSecurityContext.enabled }} | ||
securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }} | ||
{{- end }} | ||
env: {{- include "reporting-init.envVars" . | nindent 12 }} | ||
volumeMounts: | ||
{{- if .Values.startUpCommand }} | ||
- name: start-up-command-config-map | ||
mountPath: /reporting-init/startup-command.sh | ||
subPath: startup-command.sh | ||
{{- end }} | ||
{{- if .Values.debeziumConnectorConfigMap }} | ||
- name: debezium-conn-config-map | ||
mountPath: /reporting-init/config/debezium-connectors | ||
{{- end }} | ||
{{- if .Values.opensearchConnectorConfigMap }} | ||
- name: os-kafka-conn-config-map | ||
mountPath: /reporting-init/config/opensearch-connectors | ||
{{- end }} | ||
{{- if .Values.dashboardsConnectorConfigMap }} | ||
- name: dashboards-config-map | ||
mountPath: /reporting-init/config/opensearch-dashboards | ||
{{- end }} | ||
{{- if .Values.extraVolumeMounts }} | ||
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }} | ||
{{- end }} | ||
{{- if .Values.sidecars }} | ||
{{- include "common.tplvalues.render" ( dict "value" .Values.sidecars "context" $) | nindent 8 }} | ||
{{- end }} | ||
volumes: | ||
{{- if .Values.startUpCommand }} | ||
- name: start-up-command-config-map | ||
configMap: | ||
name: {{ include "common.names.fullname" . }}-startup | ||
defaultMode: 0755 | ||
{{- end }} | ||
{{- if .Values.debeziumConnectorConfigMap }} | ||
- name: debezium-conn-config-map | ||
configMap: | ||
name: {{ .Values.debeziumConnectorConfigMap }} | ||
{{- end }} | ||
{{- if .Values.opensearchConnectorConfigMap }} | ||
- name: os-kafka-conn-config-map | ||
configMap: | ||
name: {{ .Values.opensearchConnectorConfigMap }} | ||
{{- end }} | ||
{{- if .Values.dashboardsConnectorConfigMap }} | ||
- name: dashboards-config-map | ||
configMap: | ||
name: {{ .Values.dashboardsConnectorConfigMap }} | ||
{{- end }} | ||
{{- if .Values.extraVolumes }} | ||
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }} | ||
{{- end }} |
Oops, something went wrong.