-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
309 changed files
with
64,936 additions
and
0 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,46 @@ | ||
name: Bug | ||
description: Report a bug | ||
labels: | ||
- kind/bug | ||
- needs-triage | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
value: | | ||
<!-- Please craft a detailed description of the documentation issue or suggestion --> | ||
<!-- Below are some suggestions but feel free to modify or remove them --> | ||
**Observed Behavior**: | ||
**Expected Behavior**: | ||
**Reproduction Steps** (Please include `ResourceGroup` and `Instances` files): | ||
**Versions**: | ||
- kro version: | ||
- Kubernetes Version (`kubectl version`): | ||
**Involved Controllers**: | ||
- Controller URLs and Versions (if applicable): | ||
**Error Logs** (if applicable)**: | ||
``` | ||
Paste any relevant logs here | ||
``` | ||
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request | ||
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request | ||
* If you are interested in working on this issue or have submitted a pull request, please leave a comment | ||
- type: dropdown | ||
id: issue_type | ||
attributes: | ||
label: Which option describes the most your issue? | ||
multiple: true | ||
options: | ||
- ResourceGroup (Create, Update, Deletion) | ||
- Instance (Create, Update, Deletion) | ||
- Directed Acyclic Graph inference | ||
- Common Expression Language (CEL) | ||
- Schema Validation | ||
- Others (please specify) |
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 @@ | ||
blank_issues_enabled: false |
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,24 @@ | ||
name: Documentation | ||
description: Report documentation issues or suggest improvements | ||
labels: | ||
- kind/documentation | ||
- needs-triage | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Documentation Issue | ||
value: | | ||
<!-- Please craft a detailed description of the documentation issue or suggestion --> | ||
<!-- Below are some suggestions but feel free to modify or remove them --> | ||
**Location**: | ||
<!-- Specify where the documentation issue is (URL, file path, etc.) --> | ||
**Current State**: | ||
<!-- What does the current documentation say? --> | ||
**Suggested Changes**: | ||
<!-- How should it be improved? --> | ||
**Additional Context**: | ||
<!-- Any additional information that might be helpful --> |
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,24 @@ | ||
name: Feature Request | ||
description: Suggest a new feature or enhancement | ||
labels: | ||
- kind/feature | ||
- needs-triage | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Feature Description | ||
value: | | ||
**Problem Statement**: | ||
<!-- What problem are you trying to solve? --> | ||
**Proposed Solution**: | ||
<!-- Describe your proposed solution --> | ||
**Alternatives Considered**: | ||
<!-- What alternatives have you considered? --> | ||
**Additional Context**: | ||
<!-- Add any other context about the feature request here --> | ||
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue | ||
* If you are interested in working on this feature, please leave a comment |
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,54 @@ | ||
name: Deploy docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "website/**" | ||
- "images/archiecture-diagrams" | ||
|
||
jobs: | ||
build: | ||
name: Build Docusaurus | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./website | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm install --frozen-lockfile | ||
- name: Build website | ||
run: npm run build | ||
|
||
- name: Upload Build Artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./website/build | ||
|
||
deploy: | ||
name: Deploy to GitHub Pages | ||
needs: build | ||
defaults: | ||
run: | ||
working-directory: ./website | ||
permissions: | ||
pages: write | ||
id-token: write | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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,28 @@ | ||
name: golangci-lint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: stable | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
args: --timeout=5m | ||
version: v1.60 | ||
only-new-issues: true |
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,32 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
integration: | ||
name: Integration Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
|
||
- name: Install setup-envtest | ||
run: go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | ||
|
||
- name: Configure envtest | ||
run: | | ||
KUBEBUILDER_ASSETS="$(setup-envtest use -p path 1.31.x)" | ||
echo "KUBEBUILDER_ASSETS=${KUBEBUILDER_ASSETS}" >> $GITHUB_ENV | ||
- name: Run integration tests | ||
run: make test WHAT=integration |
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,28 @@ | ||
name: Test docs deployment | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'website/**' | ||
|
||
jobs: | ||
test-deploy: | ||
name: Test deployment | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./website | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm install --frozen-lockfile | ||
- name: Test build website | ||
run: npm run build |
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,26 @@ | ||
name: unit tests | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go-version: [ '1.22', '1.23' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Go ${{ matrix.go-version }} | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Build | ||
run: go build cmd | ||
|
||
- name: Run unit tests | ||
run: make test WHAT=unit |
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,38 @@ | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
bin/* | ||
Dockerfile.cross | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Kubernetes Generated files - skip generated files, except for vendored files | ||
|
||
!vendor/**/zz_generated.* | ||
|
||
# editor and IDE paraphernalia | ||
.idea | ||
.vscode | ||
*.swp | ||
*.swo | ||
*~ | ||
|
||
kro-controller | ||
kro-chart* | ||
kro-* | ||
cover.html | ||
.read | ||
.snapshots | ||
.alpackages | ||
.design | ||
.DS_Store | ||
TODO.* | ||
# package-lock.json |
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,40 @@ | ||
run: | ||
deadline: 5m | ||
allow-parallel-runners: true | ||
|
||
issues: | ||
# don't skip warning about doc comments | ||
# don't exclude the default set of lint | ||
exclude-use-default: false | ||
# restore some of the defaults | ||
# (fill in the rest as needed) | ||
exclude-rules: | ||
- path: "api/*" | ||
linters: | ||
- lll | ||
- path: "internal/*" | ||
linters: | ||
- dupl | ||
- lll | ||
linters: | ||
disable-all: true | ||
enable: | ||
- dupl | ||
- errcheck | ||
- copyloopvar | ||
- goconst | ||
- gocyclo | ||
- gofmt | ||
- goimports | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- lll | ||
- misspell | ||
- nakedret | ||
- prealloc | ||
- staticcheck | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused |
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,9 @@ | ||
# gently copied from https://github.com/aws/karpenter-provider-aws/blob/main/.ko.yaml | ||
|
||
defaultBaseImage: public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base | ||
defaultPlatforms: | ||
- linux/arm64 | ||
- linux/amd64 | ||
defaultLdflags: | ||
- -s | ||
- -w |
Oops, something went wrong.