File tree Expand file tree Collapse file tree
cloudbeaver/23/chart/cloudbeaver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -516,8 +516,8 @@ ingress:
516516 extraRules : []
517517 # # @section Network Policy
518518
519- # # MySQL Nework Policy configuration
520- # #
519+ # # Nework Policy configuration
520+
521521networkPolicy :
522522 # # @param networkPolicy.enabled Enable creation of NetworkPolicy resources
523523 # #
Original file line number Diff line number Diff line change 1+ annotations :
2+ category : monitor
13apiVersion : v2
2- name : pmm
3- description : A Helm chart for Percona Monitoring and Management (PMM)
4- type : application
5- version : 1.3.11
6- appVersion : " 2.41.1"
7- home : https://github.com/percona/pmm
8- maintainers :
9- - name : tplavcic
10- email : tomislav.plavcic@percona.com
11- - name : bupychuk
12- email : nurlan.moldomurov@percona.com
13- - name : spron-in
14- email : sergey.pronin@percona.com
4+ appVersion : 2.41
5+ dependencies :
6+ - name : common
7+ repository : oci://registry.drycc.cc/charts
8+ tags :
9+ - drycc-common
10+ version : ~1.1.2
11+ description : Percona Monitoring and Management an open source database monitoring, observability and management tool
12+ engine : gotpl
13+ home : https://github.com/drycc/charts/tree/master/drycc/pmm
14+ icon : https://drycc.com/assets/stacks/pmm/img/pmm-stack-220x234.png
1515keywords :
16- - PMM
17- - Monitoring
18- icon : https://www.percona.com/sites/default/files/pmm-logo.png
16+ - mysql
17+ - postgres
18+ - mongodb
19+ - monitor
20+ maintainers :
21+ - name : Drycc
22+ url : https://github.com/drycc/charts
23+ name : pmm
24+ sources :
25+ - https://github.com/drycc/containers/tree/main/drycc/mysql
26+ - https://github.com/percona/pmm
27+ version : 2.41
Original file line number Diff line number Diff line change 1+ {{- /*
2+ Copyright Drycc Community.
3+ SPDX-License-Identifier : APACHE-2.0
4+ */}}
5+
6+ {{- if .Values.networkPolicy.enabled }}
7+ kind : NetworkPolicy
8+ apiVersion : {{ template "common.capabilities.networkPolicy.apiVersion" . }}
9+ metadata :
10+ name : {{ template "common.names.fullname" . }}
11+ namespace : {{ include "common.names.namespace" . | quote }}
12+ labels : {{- include "common.labels.standard" . | nindent 4 }}
13+ {{- if .Values.commonLabels }}
14+ {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
15+ {{- end }}
16+ {{- if .Values.commonAnnotations }}
17+ annotations : {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
18+ {{- end }}
19+ spec :
20+ podSelector :
21+ matchLabels :
22+ {{- include "common.labels.matchLabels" . | nindent 6 }}
23+ {{- if eq .Values.service.type "ClusterIP" }}
24+ ingress :
25+ # Allow inbound connections
26+ {{- with .Values.service.ports }}
27+ - ports :
28+ {{- toYaml . | nindent 8 }}
29+ {{- end }}
30+ {{- if or .Values.networkPolicy.allowCurrentNamespace .Values.networkPolicy.allowNamespaces }}
31+ from :
32+ {{- if .Values.networkPolicy.allowCurrentNamespace }}
33+ - namespaceSelector :
34+ matchLabels :
35+ kubernetes.io/metadata.name : {{ .Release.Namespace }}
36+ {{- end }}
37+ {{- range $namespace := .Values.networkPolicy.allowNamespaces }}
38+ {{- if $namespace }}
39+ - namespaceSelector :
40+ matchLabels :
41+ kubernetes.io/metadata.name : {{ $namespace }}
42+ {{- end }}
43+ {{- end }}
44+ {{- end }}
45+ {{- end }}
46+ {{- if eq .Values.service.type "LoadBalancer" }}
47+ ingress :
48+ - {}
49+ {{- end}}
50+ {{- end }}
Original file line number Diff line number Diff line change @@ -226,3 +226,18 @@ extraVolumeMounts: []
226226# # @param extraVolumes Optionally specify extra list of additional volumes
227227# #
228228extraVolumes : []
229+
230+ # # Nework Policy configuration
231+ # #
232+ networkPolicy :
233+ # # @param networkPolicy.enabled Enable creation of NetworkPolicy resources
234+ # #
235+ enabled : true
236+ # # @param networkPolicy.allowExternal The Policy model to apply.
237+ # # When set to false, only pods with the correct
238+ # # client label will have network access to the port MySQL is listening
239+ # # on. When true, MySQL will accept connections from any source
240+ # # (with the correct destination port).
241+ # #
242+ allowCurrentNamespace : true
243+ allowNamespaces : []
You can’t perform that action at this time.
0 commit comments