Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amineabri committed Sep 25, 2024
1 parent 11ef935 commit 666dbad
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion templates/admin-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
template:
metadata:
labels:
role: wordpress
app: {{ .Values.name }}
{{- include "adminSelectorLabels" . | nindent 8 }}
spec:
securityContext:
Expand Down
6 changes: 1 addition & 5 deletions templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ metadata:
spec:
podSelector:
matchLabels:
{{- if .Values.static.enabled }}
role: wordpress
{{- else }}
role: nginx
{{- end }}
app: {{ .Values.name }}
policyTypes:
- Ingress
- Egress
Expand Down
1 change: 0 additions & 1 deletion templates/nginx-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec:
template:
metadata:
labels:
role: nginx
app: {{ .Values.name }}
{{- include "selectorLabels" . | nindent 8 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion templates/wordpress-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
template:
metadata:
labels:
role: wordpress
app: {{ .Values.name }}
{{- include "selectorLabels" . | nindent 8 }}
spec:
securityContext:
Expand Down

0 comments on commit 666dbad

Please sign in to comment.