UNCLASSIFIED

Commit 0e1d65e6 authored by kevin.wilder's avatar kevin.wilder
Browse files

Merge branch 'np-2-electric-boogaloo' into 'main'

Optimizing Network Policy Templates

See merge request !7
parents ee03cebb 335a121f
Pipeline #309630 passed with stages
in 5 minutes and 16 seconds
# Changelog # Changelog
## [29.1.0-bb.4]
### Changed
- kube-api network policy toggle
- istio network policy stricter podSelector values
## [29.1.0-bb.3] - 2021-06-08 ## [29.1.0-bb.3] - 2021-06-08
### Modified ### Modified
- Modified CI tests to use new library and infrastructure - Modified CI tests to use new library and infrastructure
...@@ -8,7 +13,7 @@ ...@@ -8,7 +13,7 @@
- Network policy for helm-tests to save artifacts - Network policy for helm-tests to save artifacts
## [29.1.0-bb.2] ## [29.1.0-bb.2]
# Added ### Added
* default-deny-all network policy - default-deny-all network policy
* istio network policy - istio network policy
* monitoring network policy - monitoring network policy
apiVersion: v2 apiVersion: v2
name: nexus-repository-manager name: nexus-repository-manager
version: 29.1.0-bb.3 version: 29.1.0-bb.4
appVersion: 3.29.0 appVersion: 3.29.0
description: Sonatype Nexus Repository Manager - Universal Binary repository description: Sonatype Nexus Repository Manager - Universal Binary repository
type: application type: application
......
{{ if .Values.networkPolicies.enabled }} {{ if and .Values.networkPolicies.enabled .Values.istio.enabled }}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: NetworkPolicy kind: NetworkPolicy
metadata: metadata:
name: allow-to-istio-ingressgateway name: allow-from-istio-ingressgateway
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
spec: spec:
podSelector: {} podSelector:
matchLabels:
app.kubernetes.io/name: nexus-repository-manager
policyTypes: policyTypes:
- Ingress - Ingress
ingress: ingress:
......
{{ if .Values.networkPolicies.enabled }}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: NetworkPolicy kind: NetworkPolicy
metadata: metadata:
...@@ -16,4 +17,5 @@ spec: ...@@ -16,4 +17,5 @@ spec:
matchLabels: matchLabels:
app.kubernetes.io/name: nexus-repository-manager app.kubernetes.io/name: nexus-repository-manager
policyTypes: policyTypes:
- Egress - Egress
\ No newline at end of file {{- end }}
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