Skip to content

Commit

Permalink
fix: add kyverno source repo and ns to ArgoCD
Browse files Browse the repository at this point in the history
  • Loading branch information
chomatdam committed Nov 26, 2024
1 parent fd2e34f commit 7ebbda2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gitops/base-install/argocd/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ spec:
- https://kubernetes-sigs.github.io/aws-ebs-csi-driver
- https://stakater.github.io/stakater-charts
- https://fluent.github.io/helm-charts
- https://kyverno.github.io/kyverno
destinations:
- namespace: kube-system
server: https://kubernetes.default.svc
Expand All @@ -63,8 +62,6 @@ spec:
server: https://kubernetes.default.svc
- namespace: fluent-bit
server: https://kubernetes.default.svc
- namespace: kyverno
server: https://kubernetes.default.svc
sourceNamespaces:
- argocd
clusterResourceWhitelist:
Expand Down
16 changes: 16 additions & 0 deletions gitops/components/kyverno/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,19 @@ kind: Component

resources:
- ./resources.yaml

patches:
- target:
group: argoproj.io
version: v1alpha1
kind: AppProject
name: admins
patch: |-
- op: add
path: /spec/sourceRepos/-
value: https://kyverno.github.io/kyverno
- op: add
path: /spec/destinations/-
value:
namespace: kyverno
server: https://kubernetes.default.svc

0 comments on commit 7ebbda2

Please sign in to comment.