Skip to content

Commit

Permalink
feat: inject istio sidecar in swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
NEM-NE committed Sep 14, 2022
1 parent eedfe4f commit 2d2aca1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/backend/dev-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ serviceMonitor:
timeout: 10s

swagger:
istioInject:
enabled: true

image:
repository: swaggerapi/swagger-ui
tag: v4.13.2
Expand Down
3 changes: 3 additions & 0 deletions charts/backend/prod-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ serviceMonitor:
timeout: 10s

swagger:
istioInject:
enabled: true

resources:
limits:
memory: "100Mi"
Expand Down
2 changes: 1 addition & 1 deletion charts/backend/templates/swagger/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
metadata:
annotations:
{{ if .Values.swagger.istioInject.enabled }}
sidecar.istio.io/inject: "false"
sidecar.istio.io/inject: "true"
{{- end }}
labels:
{{- include "swagger.selectorLabels" . | nindent 8 }}
Expand Down

0 comments on commit 2d2aca1

Please sign in to comment.