-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from Skarlso/crds-from-helm-charts
feat: add helm as a crd source
- Loading branch information
Showing
15 changed files
with
787 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Check for diff after manifest and generated targets | ||
|
||
on: | ||
pull_request: {} | ||
|
||
jobs: | ||
diff-check-manifests: | ||
name: Check for diff | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Make manifests && generate | ||
run: | | ||
make manifests && make generate | ||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: '${{ github.workspace }}/go.mod' | ||
- name: Restore Go cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: /home/runner/work/_temp/_github_home/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: go mod tidy | ||
run: | | ||
go mod tidy | ||
- name: Check for diff | ||
run: | | ||
git diff --exit-code --shortstat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: test and lint | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'CODE_OF_CONDUCT.md' | ||
- 'README.md' | ||
- 'Contributing.md' | ||
workflow_call: | ||
|
||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
|
||
jobs: | ||
run-test-suite: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: '${{ github.workspace }}/go.mod' | ||
- uses: acifani/setup-tinygo@v2 | ||
with: | ||
tinygo-version: '0.29.0' | ||
- name: Restore Go cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: /home/runner/work/_temp/_github_home/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run lint | ||
run: make lint | ||
- name: Run tests | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ linters: | |
- scopelint | ||
- structcheck | ||
- varcheck | ||
- gci | ||
|
||
linters-settings: | ||
gci: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: delivery.crd-bootstrap/v1alpha1 | ||
kind: Bootstrap | ||
metadata: | ||
name: bootstrap-sample-helm | ||
namespace: crd-bootstrap-system | ||
spec: | ||
interval: 10s | ||
source: | ||
helm: | ||
chartReference: oci://ghcr.io/skarlso/helm/crd-bootstrap | ||
chartName: crd-bootstrap | ||
version: | ||
semver: v0.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: delivery.crd-bootstrap/v1alpha1 | ||
kind: Bootstrap | ||
metadata: | ||
name: bootstrap-sample-helm | ||
namespace: crd-bootstrap-system | ||
spec: | ||
interval: 10s | ||
source: | ||
helm: | ||
chartReference: https://ibm.github.io/helm101/ | ||
chartName: guestbook | ||
version: | ||
semver: 0.2.1 |
Oops, something went wrong.