Skip to content

Commit

Permalink
Merge pull request #15 from InseeFrLab/metabase-clean-and-add-cert-ma…
Browse files Browse the repository at this point in the history
…nager

metabase - clean and add use of certmanager
  • Loading branch information
ihiverlet authored Feb 8, 2024
2 parents 67895e0 + bb70b78 commit b1a6e02
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 47 deletions.
4 changes: 2 additions & 2 deletions charts/metabase/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.2.1
version: 1.2.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand All @@ -31,7 +31,7 @@ appVersion: 1.0.1

dependencies:
- name: library-chart
version: 1.5.17
version: 1.5.19
repository: https://inseefrlab.github.io/helm-charts-interactive-services
- name: postgresql
version: 11.6.15
Expand Down
18 changes: 1 addition & 17 deletions charts/metabase/templates/networkpolicy-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
{{- if .Values.security.networkPolicy.enabled -}}
{{- if .Values.ingress.enabled -}}
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: {{ include "library-chart.fullname" . }}-2
spec:
podSelector:
matchLabels:
{{- include "library-chart.selectorLabels" . | nindent 6 }}
ingress:
- from:
{{- toYaml .Values.security.networkPolicy.from | nindent 4 }}
policyTypes:
- Ingress
{{- end }}
{{- end }}
{{ include "library-chart.networkPolicyIngress" . }}
16 changes: 1 addition & 15 deletions charts/metabase/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
{{- if .Values.security.networkPolicy.enabled -}}
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: {{ include "library-chart.fullname" . }}
spec:
podSelector:
matchLabels:
{{- include "library-chart.selectorLabels" . | nindent 6 }}
ingress:
- from:
- podSelector: {}
policyTypes:
- Ingress
{{- end }}
{{ include "library-chart.networkPolicy" . }}
13 changes: 1 addition & 12 deletions charts/metabase/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "library-chart.serviceAccountName" . }}
labels:
{{- include "library-chart.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{ include "library-chart.serviceAccount" . }}
4 changes: 3 additions & 1 deletion charts/metabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ ingress:
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

useCertManager: false
certManagerClusterIssuer: ""

route:
enabled: false
annotations: []
Expand Down

0 comments on commit b1a6e02

Please sign in to comment.