Skip to content

Commit

Permalink
feat(kubernetes): deploy k8s-digester
Browse files Browse the repository at this point in the history
  • Loading branch information
buroa committed Nov 29, 2023
1 parent 9384cb4 commit 1ec22ae
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 0 deletions.
25 changes: 25 additions & 0 deletions kubernetes/apps/digester-system/k8s-digester/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-k8s-digester
namespace: flux-system
spec:
targetNamespace: digester-system
path: ./manifests
prune: true
sourceRef:
kind: GitRepository
name: k8s-digester
wait: true
interval: 30m
retryInterval: 1m
timeout: 5m
patches:
- # Nanespace is already applied by Flux
patch: |
$patch: delete
apiVersion: v1
kind: Namespace
metadata:
name: digester-system
6 changes: 6 additions & 0 deletions kubernetes/apps/digester-system/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./k8s-digester/ks.yaml
9 changes: 9 additions & 0 deletions kubernetes/apps/digester-system/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: digester-system
labels:
digester-injection: disabled
digester/system: "yes"
kustomize.toolkit.fluxcd.io/prune: disabled
Empty file.
16 changes: 16 additions & 0 deletions kubernetes/flux/repositories/git/k8s-digester.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: k8s-digester
namespace: flux-system
spec:
interval: 30m
url: https://github.com/google/k8s-digester
ref:
tag: v0.1.13
ignore: |
# exclude all
/*
# include kubernetes directory
!/manifests
5 changes: 5 additions & 0 deletions kubernetes/flux/repositories/git/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./k8s-digester.yaml
1 change: 1 addition & 0 deletions kubernetes/flux/repositories/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./git
- ./helm
- ./oci

0 comments on commit 1ec22ae

Please sign in to comment.