Skip to content

Commit

Permalink
add git-source "trivy-operator"
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-keinan committed Dec 23, 2024
1 parent 65ad938 commit 95f5d85
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
27 changes: 27 additions & 0 deletions resources/codefresh/trivy-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: trivy-operator
labels:
codefresh.io/entity: 'git-source'
codefresh.io/internal: 'false'
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: cf-git-sources
sources:
- repoURL: https://github.com/chen-keinan/trivy-operator.git
path: deploy
targetRevision: main
directory:
include: '*'
exclude: ''
recurse: true
destination:
namespace: codefresh
server: https://kubernetes.default.svc
syncPolicy:
automated:
allowEmpty: true
prune: true
selfHeal: true
7 changes: 4 additions & 3 deletions runtimes/codefresh/in-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
- resources-finalizer.argocd.argoproj.io
labels:
codefresh.io/entity: internal-config
codefresh.io/internal: "true"
codefresh.io/internal: 'true'
name: in-cluster
spec:
destination:
Expand All @@ -14,7 +14,8 @@ spec:
project: default
source:
directory:
include: '{all-runtimes-all-clusters/*.yaml,all-runtimes-all-clusters/**/*.yaml,runtimes/codefresh/*.yaml,runtimes/codefresh/**/*.yaml,control-planes/*.yaml,control-planes/**/*.yaml}'
include: >-
{all-runtimes-all-clusters/**/*.yaml,all-runtimes-all-clusters/*.yaml,codefresh/trivy-operator.yaml,control-planes/**/*.yaml,control-planes/*.yaml,runtimes/codefresh/**/*.yaml,runtimes/codefresh/*.yaml}
recurse: true
path: resources
repoURL: https://github.com/chen-keinan/kube-beacon.git
Expand All @@ -25,4 +26,4 @@ spec:
prune: true
selfHeal: true
syncOptions:
- allowEmpty=true
- allowEmpty=true

0 comments on commit 95f5d85

Please sign in to comment.