Skip to content

Commit

Permalink
Add Kustomization that requires source filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Jan 2, 2024
1 parent 6245b79 commit 696c87f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/testdata/cluster7/clusters/home/crds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: crds
namespace: flux-system
spec:
interval: 10m0s
path: /tests/testdata/cluster7/flux/crds
prune: true
sourceRef:
kind: GitRepository
name: flux-system
30 changes: 30 additions & 0 deletions tests/testdata/cluster7/flux/crds/crds-traefik/crds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: traefik-source
namespace: flux-system
spec:
interval: 12h
url: https://github.com/traefik/traefik-helm-chart.git
ref:
# renovate: registryUrl=https://helm.traefik.io/traefik chart=traefik
tag: v26.0.0
ignore: |
# exclude all
/*
# include crd directory
!/traefik/crds
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: crds-traefik
namespace: flux-system
spec:
interval: 30m
prune: false
wait: true
sourceRef:
kind: GitRepository
name: traefik-source

0 comments on commit 696c87f

Please sign in to comment.