Skip to content

Commit

Permalink
removed scala references
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorini-dxc committed Sep 18, 2024
1 parent 760db38 commit dacc617
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/interop-eks-cronjob-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions charts/interop-eks-cronjob-chart/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/interop-eks-cronjob-chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"techStack": {
"description": "Technology used to develop the service",
"type": "string",
"enum": [ "nodejs", "scala", "frontend"]
"enum": [ "nodejs" ]
},
"name": {
"description": "Service name",
Expand Down
2 changes: 1 addition & 1 deletion charts/interop-eks-cronjob-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dacc617

Please sign in to comment.