Skip to content

Add support to disable networkPolicy creation on the helm-chart #302

@carlospiazza

Description

@carlospiazza

Description
It would be nice to add to the helm-charts the option of disabling the network policy that they create by default.

Describe the solution you'd like
Add to all helm-charts an option to control the network-policy creation via a seteable value like:

Values.yaml:
[...]
global:
  networkPolicy:
    enabled: false
[...]

and add that to the networkPolicies created by the helm-charts like:

{{ if .Values.global.networkPolicy.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-access-to-intents-operator-webhook
  namespace: {{ .Release.Namespace }}
[...]

It can be defaulted to ´true´, but it would be nice to have the ability to have them disabled for some scenarios .

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions