UNCLASSIFIED

Commit cccbc563 authored by Ryan Garcia's avatar Ryan Garcia Committed by bhearn
Browse files

Fixing templating error in Istio related Network Policy

parent e7840595
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
--- ---
## [1.12.16-bb.1]
### Fixed
- allow-istio network policy fixed to remove duplicate ports
## [1.12.16-bb.0] ## [1.12.16-bb.0]
### Changed ### Changed
- Bumped upstream chart version to 1.12.16 - Bumped upstream chart version to 1.12.16
......
...@@ -20,52 +20,9 @@ spec: ...@@ -20,52 +20,9 @@ spec:
ports: ports:
- port: {{ .Values.anchoreApi.service.port }} # anchore engine api (default: 8228) - port: {{ .Values.anchoreApi.service.port }} # anchore engine api (default: 8228)
protocol: TCP protocol: TCP
- port: {{ .Values.anchoreCatalog.service.port }} # anchore catalog api (default: 8082) {{- if and .Values.anchoreEnterpriseGlobal.enabled .Values.anchoreEnterpriseUi.enabled }}
protocol: TCP
- port: {{ .Values.anchorePolicyEngine.service.port }} # anchore policy engine api (default: 8087)
protocol: TCP
- port: {{ .Values.anchoreSimpleQueue.service.port }} # anchore simplequeue api (default: 8083)
protocol: TCP
{{- if not (hasKey .Values.postgresql "enabled") }}
- port: 5432 # in-cluster postgresql anchore db
protocol: TCP
{{- end }}
{{- if hasKey .Values.postgresql "enabled" }}
{{- if (not .Values.postgresql.enabled) }}
- port: "{{$v := .Values.postgresql.externalEndpoint | split ":"}}{{$v._1}}" # in-cluster postgresql anchore db (default: 5432)
protocol: TCP
{{- end }}
{{- end }}
{{- if .Values.anchoreEnterpriseGlobal.enabled }}
- port: {{ .Values.anchoreEnterpriseFeeds.service.port }} # anchore enterprise feeds api (default: 8448)
protocol: TCP
- port: {{ .Values.anchoreEnterpriseRbac.service.apiPort }} # anchore enterprise rbac manager api (default: 8229)
protocol: TCP
- port: {{ .Values.anchoreEnterpriseReports.service.port }} # anchore enterprise reports api (default: 8558)
protocol: TCP
- port: {{ .Values.anchoreEnterpriseNotifications.service.port }} # anchore enterprise notifications api (default: 8668)
protocol: TCP
- port: 3000 # anchore enterprise UI (default: 3000; note: Big Bang has configured Istio to use port 80) - port: 3000 # anchore enterprise UI (default: 3000; note: Big Bang has configured Istio to use port 80)
protocol: TCP protocol: TCP
{{- if not (hasKey (index .Values "anchore-ui-redis") "enabled") }}
- port: 6379 # in-cluster redis anchore enterprise UI dependency
protocol: TCP
{{- end }}
{{- if hasKey (index .Values "anchore-ui-redis") "enabled" }}
{{- if (not (index .Values "anchore-ui-redis" "enabled")) }}
- port: "{{$v := (index .Values "anchore-ui-redis" "externalEndpoint") | split ":"}}{{$v._3}}" # in-cluster redis anchore enterprise UI dependency (default: 6379)
protocol: TCP
{{- end }}
{{- end }}
{{- if not (and (hasKey (index .Values "anchore-feeds-db") "enabled")) }}
- port: 5432 # in-cluster postgresql anchore enterprise feeds db
{{- end }}
{{- if and (hasKey (index .Values "anchore-feeds-db") "enabled") }}
{{- if (not (index .Values "anchore-feeds-db" "enabled")) }}
- port: "{{$v := (index .Values "anchore-feeds-db" "externalEndpoint") | split ":"}}{{$v._1}}" # in-cluster postgresql anchore enterprise feeds db (default: 5432)
protocol: TCP
{{- end }}
{{- end }}
{{- end }} {{- end }}
egress: egress:
- to: - to:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment