Skip to content

Commit

Permalink
openfga: various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElysaSrc committed Feb 25, 2025
1 parent 7c4e670 commit ba1aab6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions templates/editoast/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ spec:
{{- end }}

- name: EDITOAST_OPENFGA_URL
value: "http://{{ include "osrd.fullname" . }}-openfga"
- name: EDITOAST_OPENFGA_STORE
value: osrd-editoast
value: "http://{{ include "osrd.fullname" . }}-openfga:{{ .Values.services.openfga.service.port }}"

{{- with .Values.services.editoast.env | default dict }}
{{- toYaml . | nindent 12 }}
Expand Down
5 changes: 4 additions & 1 deletion templates/openfga/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ spec:
initContainers:
- name: openfga-migrate
image: "{{ .Values.images.openfga }}"
command: ["openfga", "migrate"]
command: ["/openfga"]
args: ["migrate"]
env:
- name: OPENFGA_DATASTORE_ENGINE
value: "postgres"
Expand All @@ -45,6 +46,8 @@ spec:
containers:
- name: openfga
image: "{{ .Values.images.openfga }}"
command: ["/openfga"]
args: ["run"]
ports:
- containerPort: {{ .Values.services.openfga.service.targetPort }}
env:
Expand Down
2 changes: 1 addition & 1 deletion templates/stateful_editoast/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ spec:
{{- end }}

- name: EDITOAST_OPENFGA_URL
value: "http://{{ include "osrd.fullname" . }}-openfga"
value: "http://{{ include "osrd.fullname" . }}-openfga:{{ .Values.services.openfga.service.port }}"

{{- with .Values.services.editoast.env | default dict }}
{{- toYaml . | nindent 12 }}
Expand Down
2 changes: 1 addition & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
service:
type: ClusterIP
port: 80
targetPort: 80
targetPort: 8080
readinessProbe:
disabled: false
initialDelaySeconds: 5
Expand Down

0 comments on commit ba1aab6

Please sign in to comment.