diff --git a/charts/backingservices/charts/srs/templates/srsservice_networkpolicy.yaml b/charts/backingservices/charts/srs/templates/srsservice_networkpolicy.yaml index bb8d968ca..9e97b88b6 100644 --- a/charts/backingservices/charts/srs/templates/srsservice_networkpolicy.yaml +++ b/charts/backingservices/charts/srs/templates/srsservice_networkpolicy.yaml @@ -1,4 +1,4 @@ -{{ if .Values.enabled }} +{{ if .Values.networkPolicy.enabled }} apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: diff --git a/charts/backingservices/charts/srs/values.yaml b/charts/backingservices/charts/srs/values.yaml index 60ae64954..7228d353e 100644 --- a/charts/backingservices/charts/srs/values.yaml +++ b/charts/backingservices/charts/srs/values.yaml @@ -27,3 +27,7 @@ srsRuntime: AuthEnabled: false # When `AuthEnabled` is `true`, enter the appropriate public key URL. When `AuthEnabled` is `false`(default), leave this parameter empty. OAuthPublicKeyURL: "" + +# Enable the Network Policy for SRS +networkPolicy: + enabled: true \ No newline at end of file diff --git a/charts/backingservices/values.yaml b/charts/backingservices/values.yaml index 59d0df1a3..a2af838ce 100644 --- a/charts/backingservices/values.yaml +++ b/charts/backingservices/values.yaml @@ -85,6 +85,10 @@ srs: # set the requireInternetAccess parameter to "true". requireInternetAccess: false + # Enable the Network Policy for SRS + networkPolicy: + enabled: true + constellation: enabled: false