Files
charts/bitnami/parse/templates/cloud-code-configmap.yaml
Fran Mulero 23f291a6b7 [bitnami/parse] Parse standarization (#9867)
* Parse standarization

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Apply suggestions

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Change dependencies with mongodb

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Update dependencies

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Amend typo

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Remove quotes

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Amend service definition and add vib verify

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Amend vib tests

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Amend documentation

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Amend server.service.ports.http

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/parse] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
Co-authored-by: Miguel Ruiz <miruiz@vmware.com>
2022-05-04 10:48:14 +02:00

23 lines
1.0 KiB
YAML

{{- if and .Values.server.enableCloudCode (or .Values.server.cloudCodeScripts (.Files.Glob "files/cloud/*.js")) (not .Values.server.existingCloudCodeScriptsCM) }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ printf "%s-cloud-code-scripts" include "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{ include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: server
{{- 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:
{{- with .Files.Glob "files/cloud/*.js" }}
{{ .AsConfig | indent 2 }}
{{- end }}
{{- if .Values.server.cloudCodeScripts }}
{{- include "common.tplvalues.render" (dict "value" .Values.server.cloudCodeScripts "context" $) | nindent 2 }}
{{- end }}
{{- end }}