Skip to content

Commit

Permalink
Generate test CRDs
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Apr 19, 2024
1 parent a441232 commit 82fd87e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions scripts/crd_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: helmreleases.CRD_COUNT.helm.toolkit.fluxcd.io
name: crdtests.CRD_COUNT.toolkit.fluxcd.io
spec:
group: CRD_COUNT.helm.toolkit.fluxcd.io
group: CRD_COUNT.toolkit.fluxcd.io
names:
kind: HelmRelease
listKind: HelmReleaseList
plural: helmreleases
shortNames:
- hr
singular: helmrelease
kind: CrdTest
listKind: CrdTestList
plural: crdtests
singular: crdtest
scope: Namespaced
versions:
- additionalPrinterColumns:
Expand Down
3 changes: 2 additions & 1 deletion scripts/generate-crds.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
repo_root=$(git rev-parse --show-toplevel)
template_file="$repo_root/scripts/crd_template.yaml"
tmpdir="${TMPDIR:-/tmp}"
tmpdir="${repo_root}/bin/crds"
mkdir -p "${tmpdir}"
for ((i=1; i<=$CRD_COUNT; i++))
do
crd_name="$i"
Expand Down

0 comments on commit 82fd87e

Please sign in to comment.