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

feat(dsg): add support for image name #38

Merged
merged 2 commits into from
May 2, 2024
Merged
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
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
Loading