Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekm committed Mar 1, 2024
1 parent 89cd168 commit 138849f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
# CRDs-catalog

For those CRDs not in https://github.com/datreeio/CRDs-catalog

## Usage

To add a new CRD see https://github.com/datreeio/CRDs-catalog?tab=readme-ov-file#usage

Sample github action steps:

```yaml
- name: Set up kube tools
uses: yokawasa/action-setup-kube-tools@v0.9.3
with:
kubeconform: 0.6.4

- name: Validate helm chart
shell: bash
run: |
PARAMS=(
"-schema-location"
"default"
"-schema-location"
"https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json"
"-schema-location"
"https://git:${{ secrets.READ_ONLY_GITHUB_TOKEN }}@raw.githubusercontent.com/FundingCircle/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json"
"-verbose"
"-strict"
)
cd chart
for file in $(ls -1 values-*.yaml); do
env=${file#*-}
env=${env%.*}
echo "validating ${env}..."
helm template -f ${file} . 2>/dev/null | kubeconform "${PARAMS[@]}"
done
```

0 comments on commit 138849f

Please sign in to comment.