Skip to content

Commit

Permalink
Refactoring and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Nov 11, 2024
1 parent fecd477 commit 6e61451
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/flux-image-gen/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "02aeef3"
appVersion: "fb1397e"
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ data:
{{- range $model := .Values.models }}
- name: {{ . }}
address: {{ printf "http://%s.%s.svc:%v" ( printf "%s-%s-api" (include "flux-image-gen.fullname" $) . ) $.Release.Namespace $.Values.api.service.port }}
{{- end -}}
{{- end }}
example_prompt: |
{{- .Values.examplePrompt | nindent 6 -}}
2 changes: 2 additions & 0 deletions charts/flux-image-gen/templates/ui/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
metadata:
{{- with .Values.ui.podAnnotations }}
annotations:
# Recreate pods if settings config map changes
checksum/config: {{ include (print $.Template.BasePath "/ui/configmap.yaml") . | sha256sum }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
Expand Down
2 changes: 1 addition & 1 deletion charts/flux-image-gen/templates/ui/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
{{- end }}
backend:
service:
name: {{ include "flux-image-gen.fullname" $ }}
name: {{ include "flux-image-gen.fullname" $ }}-ui
port:
number: {{ $.Values.ui.service.port }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/flux-image-gen/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ models:
- flux-schnell
# - flux-dev

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

0 comments on commit 6e61451

Please sign in to comment.