Skip to content

Commit

Permalink
feat: Add istio validation flag (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoam authored Aug 9, 2024
1 parent 9b5c54c commit 73e00f7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datadome-istio/templates/destinationrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: DestinationRule
metadata:
name: {{ .Release.Name }}
namespace: istio-system
{{- if .Values.istio.resourceValidation.enabled }}
labels:
istio.io/tag: stable
{{- end }}
spec:
host: {{ .Values.datadome.api_url }}
trafficPolicy:
Expand Down
4 changes: 4 additions & 0 deletions datadome-istio/templates/envoyfilter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kind: EnvoyFilter
metadata:
name: {{ .Release.Name }}
namespace: istio-system
{{- if .Values.istio.resourceValidation.enabled }}
labels:
istio.io/tag: stable
{{- end }}
spec:
workloadSelector:
labels:
Expand Down
4 changes: 4 additions & 0 deletions datadome-istio/templates/serviceentry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: ServiceEntry
metadata:
name: {{ .Release.Name }}
namespace: istio-system
{{- if .Values.istio.resourceValidation.enabled }}
labels:
istio.io/tag: stable
{{- end }}
spec:
hosts:
- {{ .Values.datadome.api_url }}
Expand Down
3 changes: 3 additions & 0 deletions datadome-istio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ istio:
workloadSelector:
labels:
datadome: "enabled"
resourceValidation:
enabled: false

datadome:
api_key: TOP_SECRET_API_KEY
api_url: api.datadome.co
api_timeout: 200 # in milliseconds
api_connection_timeout: "100ms" # go time format

0 comments on commit 73e00f7

Please sign in to comment.