Skip to content

Commit

Permalink
chore(base-cluster/oauth-proxy): adjust labels for proxies chore(base…
Browse files Browse the repository at this point in the history
…-cluster/oauth-proxy): adjust CiliumNetworkPolicy to correctly filter requests from ingress (#1116)
  • Loading branch information
cwrau committed Aug 21, 2024
1 parent a6919ca commit 4f58b28
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cluster-{{ $host }}-oauth-proxy
name: {{ printf "cluster-%s-oauth-proxy" $host }}
namespace: monitoring
labels: {{- include "common.labels.standard" $ | nindent 4 }}
app.kubernetes.io/component: oauth-proxy
app.kubernetes.io/part-of: prometheus
app.kubernetes.io/part-of: {{ $host }}
spec:
chart:
spec: {{- include "base-cluster.helm.chartSpec" (dict "repo" "bitnami" "chart" "oauth2-proxy" "context" $) | nindent 6 }}
Expand Down Expand Up @@ -73,17 +73,17 @@ spec:
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: cluster-{{ $host }}-oauth-proxy
name: {{ printf "cluster-%s-oauth-proxy" $host }}
namespace: monitoring
labels: {{- include "common.labels.standard" $ | nindent 4 }}
app.kubernetes.io/component: oauth
app.kubernetes.io/part-of: prometheus
app.kubernetes.io/part-of: {{ $host }}
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/instance: monitoring-cluster-{{ $host }}-oauth-proxy
app.kubernetes.io/instance: {{ printf "monitoring-cluster-%s-oauth-proxy" $host }}
ingress:
- fromRequires:
- fromEndpoints:
- matchLabels: {{- include "common.tplvalues.render" (dict "value" $.Values.global.networkPolicy.ingressLabels "context" $) | nindent 12 }}
toPorts:
- ports:
Expand Down

0 comments on commit 4f58b28

Please sign in to comment.