Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openforms2xxllnc .Values.frank to .Values.application #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/openforms2bpel/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: ff-common
repository: https://frankframework.github.io/charts/
version: 0.1.24
digest: sha256:afb8e8490d3986457eb76ec6b20dfc44cb83866895195548abe245c09b270b65
generated: "2024-11-15T13:21:27.3957982+01:00"
13 changes: 13 additions & 0 deletions charts/openforms2bpel/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v2
name: openforms2bpel
description: A Helm chart for running a Frank! on Kubernetes
version: 1.0.0
appVersion: 1.0.1
type: application
home: https://wearefrank.github.io/openforms2bpel
icon: https://raw.githubusercontent.com/wearefrank/charts/master/openforms2bpel/icon.svg

dependencies:
- name: ff-common
version: ~0.1.23
repository: https://frankframework.github.io/charts/
325 changes: 325 additions & 0 deletions charts/openforms2bpel/README.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions charts/openforms2bpel/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions charts/openforms2bpel/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "ff-common.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.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 "ff-common.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "ff-common.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "ff-common.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 }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{- template "ff-common.configmap.env" (list . "openforms2bpel.configmap.env") -}}
{{- define "openforms2bpel.configmap.env" -}}
data:
{{- end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{/*
ConfigMap for generating MailTemplates.xml
*/}}
{{- if (not .Values.openforms2bpel.formdata.existingConfigMap) -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "ff-common.fullname" . }}-formdata
labels:
{{- include "ff-common.labels" . | nindent 4 }}
data:
{{- with .Values.openforms2bpel.formdata.collectorStylesheet }}
FormDataCollector_ObjectsApi_Custom.xslt: |-
{{- toString . | nindent 4 }}
{{- end }}
{{- with .Values.openforms2bpel.formdata.transformStylesheet }}
FormDataTransform_Custom.xslt: |-
{{- toString . | nindent 4 }}
{{- end }}
{{- end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{/*
ConfigMap for generating MailTemplates.xml
*/}}
{{- if (not .Values.openforms2bpel.mailTemplates.existingConfigMap) -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "ff-common.fullname" . }}-mailtemplates
labels:
{{- include "ff-common.labels" . | nindent 4 }}
data:
MailTemplates.xml: |-
<?xml version="1.0" encoding="UTF-8"?>
<root>
{{- range .Values.openforms2bpel.mailTemplates.templates }}
<mailTemplates>
<name>{{ .name }}</name>
<subject>{{ .subject }}</subject>
<messageType>{{ .messageType | default "text/html" }}</messageType>
<message>
<![CDATA[
{{- toString .message | nindent 14 }}
]]>
</message>
</mailTemplates>
{{- end }}
</root>
{{- end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "ff-common.fullname" . }}-specifics
labels:
{{- include "ff-common.labels" . | nindent 4 }}
data:
{{- with .Values.openforms2bpel.connections }}
{{- with .bpelBasicService }}
openforms2bpel.connections.bpelBasicService.endpoint: "{{ .endpoint }}"
openforms2bpel.connections.bpelBasicService.verifyHostname: "{{ .verifyHostname }}"
openforms2bpel.connections.bpelBasicService.allowSelfSignedCerts: "{{ .allowSelfSignedCerts }}"
openforms2bpel.connections.bpelBasicService.ignoreExpiredCerts: "{{ .ignoreExpiredCerts }}"
openforms2bpel.connections.bpelBasicService.authAlias: "{{ .authAlias }}"
openforms2bpel.connections.bpelBasicService.timeout: "{{ .timeout }}"
{{- end }}
{{- with .bpelDocumentsService }}
openforms2bpel.connections.bpelDocumentsService.endpoint: "{{ .endpoint }}"
openforms2bpel.connections.bpelDocumentsService.verifyHostname: "{{ .verifyHostname }}"
openforms2bpel.connections.bpelDocumentsService.allowSelfSignedCerts: "{{ .allowSelfSignedCerts }}"
openforms2bpel.connections.bpelDocumentsService.ignoreExpiredCerts: "{{ .ignoreExpiredCerts }}"
openforms2bpel.connections.bpelDocumentsService.timeout: "{{ .timeout }}"
{{- end }}
{{- with .bpelCasesService }}
openforms2bpel.connections.bpelCasesService.endpoint: "{{ .endpoint }}"
openforms2bpel.connections.bpelCasesService.verifyHostname: "{{ .verifyHostname }}"
openforms2bpel.connections.bpelCasesService.allowSelfSignedCerts: "{{ .allowSelfSignedCerts }}"
openforms2bpel.connections.bpelCasesService.ignoreExpiredCerts: "{{ .ignoreExpiredCerts }}"
openforms2bpel.connections.bpelCasesService.timeout: "{{ .timeout }}"
{{- end }}
{{- with .bpelMtomService }}
openforms2bpel.connections.bpelMtomService.endpoint: "{{ .endpoint }}"
openforms2bpel.connections.bpelMtomService.verifyHostname: "{{ .verifyHostname }}"
openforms2bpel.connections.bpelMtomService.allowSelfSignedCerts: "{{ .allowSelfSignedCerts }}"
openforms2bpel.connections.bpelMtomService.ignoreExpiredCerts: "{{ .ignoreExpiredCerts }}"
openforms2bpel.connections.bpelMtomService.timeout: "{{ .timeout }}"
{{- end }}
{{- with .bpelBasicStatusUpdateService }}
openforms2bpel.connections.bpelBasicStatusUpdateService.endpoint: "{{ .endpoint }}"
openforms2bpel.connections.bpelBasicStatusUpdateService.verifyHostname: "{{ .verifyHostname }}"
openforms2bpel.connections.bpelBasicStatusUpdateService.allowSelfSignedCerts: "{{ .allowSelfSignedCerts }}"
openforms2bpel.connections.bpelBasicStatusUpdateService.ignoreExpiredCerts: "{{ .ignoreExpiredCerts }}"
openforms2bpel.connections.bpelBasicStatusUpdateService.timeout: "{{ .timeout }}"
{{- end }}
{{- with .bpelPaymentService }}
openforms2bpel.connections.bpelPaymentService.endpoint: "{{ .endpoint }}"
openforms2bpel.connections.bpelPaymentService.verifyHostname: "{{ .verifyHostname }}"
openforms2bpel.connections.bpelPaymentService.allowSelfSignedCerts: "{{ .allowSelfSignedCerts }}"
openforms2bpel.connections.bpelPaymentService.ignoreExpiredCerts: "{{ .ignoreExpiredCerts }}"
openforms2bpel.connections.bpelPaymentService.timeout: "{{ .timeout }}"
{{- end }}
{{- with .bpelGegMagService }}
openforms2bpel.connections.bpelGegMagService.endpoint: "{{ .endpoint }}"
openforms2bpel.connections.bpelGegMagService.verifyHostname: "{{ .verifyHostname }}"
openforms2bpel.connections.bpelGegMagService.allowSelfSignedCerts: "{{ .allowSelfSignedCerts }}"
openforms2bpel.connections.bpelGegMagService.ignoreExpiredCerts: "{{ .ignoreExpiredCerts }}"
openforms2bpel.connections.bpelGegMagService.timeout: "{{ .timeout }}"
{{- end }}
{{- with .notificatiesApi }}
openforms2bpel.connections.notificatiesApi.rootUrl: "{{ .rootUrl }}"
openforms2bpel.connections.notificatiesApi.authType: "{{ .authType }}"
openforms2bpel.connections.notificatiesApi.authAlias: "{{ .authAlias }}"
openforms2bpel.connections.notificatiesApi.timeout: "{{ .timeout }}"
{{- with .subscription }}
openforms2bpel.connections.notificatiesApi.subscription.callback: "{{ .callback }}"
openforms2bpel.connections.notificatiesApi.subscription.authAlias: "{{ .authAlias }}"
{{- with .filters }}
openforms2bpel.connections.notificatiesApi.subscription.filters.objectType: "{{ .objectType }}"
{{- end }}
{{- end }}
{{- end }}
{{- with .documentenApi }}
openforms2bpel.connections.documentenApi.authType: "{{ .authType }}"
openforms2bpel.connections.documentenApi.authAlias: "{{ .authAlias }}"
openforms2bpel.connections.documentenApi.timeout: "{{ .timeout }}"
{{- end }}
{{- with .objectsApi }}
openforms2bpel.connections.objectsApi.authType: "{{ .authType }}"
openforms2bpel.connections.objectsApi.authAlias: "{{ .authAlias }}"
openforms2bpel.connections.objectsApi.timeout: "{{ .timeout }}"
{{- end }}
{{- with .noReplySmtp }}
openforms2bpel.connections.noReplySmtp.enabled: "{{ .enabled }}"
openforms2bpel.connections.noReplySmtp.host: "{{ .host }}"
openforms2bpel.connections.noReplySmtp.port: "{{ .port }}"
openforms2bpel.connections.noReplySmtp.useSsl: "{{ .useSsl }}"
openforms2bpel.connections.noReplySmtp.authAlias: "{{ .authAlias }}"
openforms2bpel.connections.noReplySmtp.timeout: "{{ .timeout }}"
openforms2bpel.connections.noReplySmtp.defaultFromName: "{{ .defaultFromName }}"
openforms2bpel.connections.noReplySmtp.defaultFromAddress: "{{ .defaultFromAddress }}"
openforms2bpel.connections.noReplySmtp.signatureFromName: "{{ .signatureFromName | default .defaultFromName }}"
{{- end }}
{{- end }}
{{- with .Values.openforms2bpel.formdata }}
{{- if or .collectorStylesheet .existingConfigMap }}
openforms2bpel.formdata.collectorStylesheetFile: "FormDataCollector_ObjectsApi_Custom.xslt"
{{- else }}
openforms2bpel.formdata.collectorStylesheetFile: "FormDataCollector_ObjectsApi_Default.xslt"
{{- end }}
{{- if or .transformStylesheet .existingConfigMap }}
openforms2bpel.formdata.transformStylesheetFile: "FormDataTransform_Custom.xslt"
{{- else }}
openforms2bpel.formdata.transformStylesheetFile: "FormDataTransform_Default.xslt"
{{- end }}
{{- end }}
{{- with .Values.openforms2bpel.workflows }}
{{- with .autoRetries }}
openforms2bpel.workflows.autoRetries.enabled: "{{ .enabled }}"
openforms2bpel.workflows.autoRetries.cronExpression: "{{ .cronExpression }}"
openforms2bpel.workflows.autoRetries.maxRetries: "{{ .maxRetries }}"
{{- with .workflowSelector }}
openforms2bpel.workflows.autoRetries.workflowSelector.enabled: "{{ .enabled | default "${openforms2bpel.workflows.autoRetries.enabled}" }}"
openforms2bpel.workflows.autoRetries.workflowSelector.cronExpression: "{{ .cronExpression | default "${openforms2bpel.workflows.autoRetries.cronExpression}" }}"
openforms2bpel.workflows.autoRetries.workflowSelector.maxRetries: "{{ .maxRetries | default "${openforms2bpel.workflows.autoRetries.maxRetries}" }}"
{{- end }}
{{- with .addDocumentsToCase }}
openforms2bpel.workflows.autoRetries.addDocumentsToCase.enabled: "{{ .enabled | default "${openforms2bpel.workflows.autoRetries.enabled}" }}"
openforms2bpel.workflows.autoRetries.addDocumentsToCase.cronExpression: "{{ .cronExpression | default "${openforms2bpel.workflows.autoRetries.cronExpression}" }}"
openforms2bpel.workflows.autoRetries.addDocumentsToCase.maxRetries: "{{ .maxRetries | default "${openforms2bpel.workflows.autoRetries.maxRetries}" }}"
{{- end }}
{{- with .updatePaymentCommand }}
openforms2bpel.workflows.autoRetries.updatePaymentCommand.enabled: "{{ .enabled | default "${openforms2bpel.workflows.autoRetries.enabled}" }}"
openforms2bpel.workflows.autoRetries.updatePaymentCommand.cronExpression: "{{ .cronExpression | default "${openforms2bpel.workflows.autoRetries.cronExpression}" }}"
openforms2bpel.workflows.autoRetries.updatePaymentCommand.maxRetries: "{{ .maxRetries | default "${openforms2bpel.workflows.autoRetries.maxRetries}" }}"
{{- end }}
{{- with .sendNoReplyUserEmail }}
openforms2bpel.workflows.autoRetries.sendNoReplyUserEmail.enabled: "{{ .enabled | default "${openforms2bpel.workflows.autoRetries.enabled}" }}"
openforms2bpel.workflows.autoRetries.sendNoReplyUserEmail.cronExpression: "{{ .cronExpression | default "${openforms2bpel.workflows.autoRetries.cronExpression}" }}"
openforms2bpel.workflows.autoRetries.sendNoReplyUserEmail.maxRetries: "{{ .maxRetries | default "${openforms2bpel.workflows.autoRetries.maxRetries}" }}"
{{- end }}
{{- end }}
{{- with .scheduledStartReceiver }}
openforms2bpel.workflows.scheduledStartReceiver.workflowSelector.enabled: "{{ .enabled }}"
openforms2bpel.workflows.scheduledStartReceiver.workflowSelector.cronExpression: "{{ .cronExpression }}"
{{- end }}
{{- with .scheduledStopReceiver }}
openforms2bpel.workflows.scheduledStopReceiver.workflowSelector.enabled: "{{ .enabled }}"
openforms2bpel.workflows.scheduledStopReceiver.workflowSelector.cronExpression: "{{ .cronExpression }}"
{{- end }}
{{- with .onErrorActions.onCaseNotFound }}
openforms2bpel.workflows.onErrorActions.onCaseNotFound.sendMail: "{{ .sendMail }}"
openforms2bpel.workflows.onErrorActions.onCaseNotFound.templateName: "{{ .templateName }}"
{{- end }}
{{- with .onErrorActions.onSubjectNotEqualsCaseSubject }}
openforms2bpel.workflows.onErrorActions.onSubjectNotEqualsCaseSubject.sendMail: "{{ .sendMail }}"
openforms2bpel.workflows.onErrorActions.onSubjectNotEqualsCaseSubject.templateName: "{{ .templateName }}"
{{- end }}
{{- with .onErrorActions.onCaseClosed }}
openforms2bpel.workflows.onErrorActions.onCaseClosed.sendMail: "{{ .sendMail }}"
openforms2bpel.workflows.onErrorActions.onCaseClosed.templateName: "{{ .templateName }}"
{{- end }}
{{- end }}
Loading