Skip to content

Commit

Permalink
Merge pull request #38 from amplication/feat/dsg-add-support-for-imag…
Browse files Browse the repository at this point in the history
…e-name

feat(dsg): add support for image name
  • Loading branch information
overbit authored May 2, 2024
2 parents 4c39f8f + a8d1165 commit eb266be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data-service-generator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: data-service-generator
description: A Helm chart for the data-service-generator component of Amplication

type: application
version: 2.0.8
version: 2.0.9
appVersion: "0.0.0"

sources:
Expand Down
8 changes: 7 additions & 1 deletion data-service-generator/templates/sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ spec:
dependencyName: request
dataKey: body.resourceId
dest: spec.template.spec.containers.0.env.1.value
- src:
dependencyName: request
dataKey: body.codeGeneratorName
value: {{ .Values.events.sensor.image.fallbackName }}
dest: spec.template.spec.containers.0.image
operation: append
- src:
dependencyName: request
value: ":"
Expand All @@ -87,7 +93,7 @@ spec:
- src:
dependencyName: request
dataKey: body.codeGeneratorVersion
value: {{ .Values.events.sensor.image.tag }}
value: {{ .Values.events.sensor.image.fallbackTag }}
dest: spec.template.spec.containers.0.image
operation: append
{{- end }}
5 changes: 3 additions & 2 deletions data-service-generator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ events:
auth: token
sensor:
image:
repository: 439403303254.dkr.ecr.us-east-1.amazonaws.com/data-service-generator
repository: 439403303254.dkr.ecr.us-east-1.amazonaws.com/
pullPolicy: Always
tag: ""
fallbackTag: ""
fallbackName: "data-service-generator"
enabled: true
name: dsg-job-webhook
templateName: dsg-job-webhook-trigger
Expand Down

0 comments on commit eb266be

Please sign in to comment.