From dacc61772f68f69226ac48d946f6e50a27779d4d Mon Sep 17 00:00:00 2001 From: Manuel Morini <151859827+mmorini-dxc@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:51:56 +0200 Subject: [PATCH] removed scala references --- charts/interop-eks-cronjob-chart/README.md | 2 +- charts/interop-eks-cronjob-chart/templates/cronjob.yaml | 4 ---- charts/interop-eks-cronjob-chart/values.schema.json | 2 +- charts/interop-eks-cronjob-chart/values.yaml | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/charts/interop-eks-cronjob-chart/README.md b/charts/interop-eks-cronjob-chart/README.md index 1ba7b99..0375358 100644 --- a/charts/interop-eks-cronjob-chart/README.md +++ b/charts/interop-eks-cronjob-chart/README.md @@ -31,7 +31,7 @@ The following table lists the configurable parameters of the Interop-eks-cronjob | schedule | string | `nil` | The [schedule](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-syntax) field is required. The value of that field follows the [Cron](https://en.wikipedia.org/wiki/Cron) syntax. | | successfulJobsHistoryLimit | int | 0 | [successfulJobsHistoryLimit](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#jobs-history-limits) field specifies the number of successful finished jobs to keep. Setting this field to 0 will not keep any successful jobs | | suspend | boolean | `false` | [suspend](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-suspension) field allows to suspend execution of Jobs for a CronJob.  @default -- false. | -| techStack | enum | `nil` | Defines the technology used to develop the container. The following values are allowed: [ "nodejs", "scala"] | +| techStack | enum | `nil` | Defines the technology used to develop the container. The following values are allowed: [ "nodejs" ] | ## 1. Configurazione di Cronjob diff --git a/charts/interop-eks-cronjob-chart/templates/cronjob.yaml b/charts/interop-eks-cronjob-chart/templates/cronjob.yaml index e33768e..767211d 100644 --- a/charts/interop-eks-cronjob-chart/templates/cronjob.yaml +++ b/charts/interop-eks-cronjob-chart/templates/cronjob.yaml @@ -48,13 +48,9 @@ spec: imagePullPolicy: {{ .Values.image.imagePullPolicy }} {{- if and .Values.job .Values.job.command }} command: {{ .Values.job.command }} - {{- else if eq .Values.techStack "scala" }} - command: ["bin/{{ .Values.name }}"] {{- end }} {{- if and .Values.job .Values.job.args }} args: {{ .Values.job.args }} - {{- else if eq .Values.techStack "scala" }} - args: ["-Dconfig.override_with_env_vars=true"] {{- end }} env: {{- if .Values.configmap }} diff --git a/charts/interop-eks-cronjob-chart/values.schema.json b/charts/interop-eks-cronjob-chart/values.schema.json index 66d0b09..5e70da2 100644 --- a/charts/interop-eks-cronjob-chart/values.schema.json +++ b/charts/interop-eks-cronjob-chart/values.schema.json @@ -48,7 +48,7 @@ "techStack": { "description": "Technology used to develop the service", "type": "string", - "enum": [ "nodejs", "scala", "frontend"] + "enum": [ "nodejs" ] }, "name": { "description": "Service name", diff --git a/charts/interop-eks-cronjob-chart/values.yaml b/charts/interop-eks-cronjob-chart/values.yaml index 1b7b298..8c450b4 100644 --- a/charts/interop-eks-cronjob-chart/values.yaml +++ b/charts/interop-eks-cronjob-chart/values.yaml @@ -9,7 +9,7 @@ namespace: replicas: # -- (string) ServiceAccount roleARN used for eks.amazonaws.com/role-arn annotation roleArn: -# -- (enum) Defines the technology used to develop the container. The following values are allowed: [ "nodejs", "scala"] +# -- (enum) Defines the technology used to develop the container. The following values are allowed: [ "nodejs" ] techStack: # -- [failedJobsHistoryLimit](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#jobs-history-limits) field specifies the number of failed finished jobs to keep. Setting this field to 0 will not keep any failed jobs.