Skip to content

Commit 6e61451

Browse files
committed
Refactoring and bug fixes
1 parent fecd477 commit 6e61451

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

charts/flux-image-gen/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ version: 0.1.0
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "02aeef3"
24+
appVersion: "fb1397e"

charts/flux-image-gen/templates/ui/configmap.yml renamed to charts/flux-image-gen/templates/ui/configmap.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ data:
1111
{{- range $model := .Values.models }}
1212
- name: {{ . }}
1313
address: {{ printf "http://%s.%s.svc:%v" ( printf "%s-%s-api" (include "flux-image-gen.fullname" $) . ) $.Release.Namespace $.Values.api.service.port }}
14-
{{- end -}}
14+
{{- end }}
15+
example_prompt: |
16+
{{- .Values.examplePrompt | nindent 6 -}}

charts/flux-image-gen/templates/ui/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ spec:
1414
metadata:
1515
{{- with .Values.ui.podAnnotations }}
1616
annotations:
17+
# Recreate pods if settings config map changes
18+
checksum/config: {{ include (print $.Template.BasePath "/ui/configmap.yaml") . | sha256sum }}
1719
{{- toYaml . | nindent 8 }}
1820
{{- end }}
1921
labels:

charts/flux-image-gen/templates/ui/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
{{- end }}
3636
backend:
3737
service:
38-
name: {{ include "flux-image-gen.fullname" $ }}
38+
name: {{ include "flux-image-gen.fullname" $ }}-ui
3939
port:
4040
number: {{ $.Values.ui.service.port }}
4141
{{- end }}

charts/flux-image-gen/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ models:
66
- flux-schnell
77
# - flux-dev
88

9+
examplePrompt: |
10+
Yoda riding a tiny unicorn through space.
11+
912
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
1013
image:
1114
repository: ghcr.io/stackhpc/flux-image-model-inference

0 commit comments

Comments
 (0)