Skip to content

Commit 0a3cf8d

Browse files
merllsvcAPLBot
andauthored
feat: custom kubernetes manifest in the values repo (#2893)
Co-authored-by: svcAPLBot <[email protected]>
1 parent 111f885 commit 0a3cf8d

File tree

7 files changed

+715
-35
lines changed

7 files changed

+715
-35
lines changed

charts/apl-network-policies/templates/networkpolicies/gitea.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ spec:
3131
- namespaceSelector:
3232
matchLabels:
3333
name: apl-operator
34+
# Allow ArgoCD GitOps access
35+
- from:
36+
- namespaceSelector:
37+
matchLabels:
38+
name: argocd
39+
podSelector:
40+
matchLabels:
41+
app.kubernetes.io/name: argocd-repo-server
3442
# Allow APL API access
3543
- from:
3644
- namespaceSelector:

charts/team-ns/templates/argocd/argocd-gitops.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{{- $v := .Values }}
2-
{{- $a := $v.apps.argocd }}
3-
{{- if $a.enabled }}
42
apiVersion: argoproj.io/v1alpha1
53
kind: Application
64
metadata:
75
name: team-{{ $v.teamId }}-values-gitops
86
namespace: argocd
7+
labels:
8+
otomi.io/app: team-gitops
99
finalizers:
1010
- resources-finalizer.argocd.argoproj.io
1111
spec:
@@ -40,4 +40,3 @@ spec:
4040
# maxDuration - Max retry backoff duration. Input needs to be a duration (e.g. 2m, 1h) (default 3m0s)
4141
duration: 10s
4242
factor: 2
43-
{{- end }}

0 commit comments

Comments
 (0)