Skip to content

Commit 0e011cc

Browse files
committed
Merge branch 'main'
2 parents 14f1bc7 + 2ed07b2 commit 0e011cc

File tree

309 files changed

+64936
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

309 files changed

+64936
-0
lines changed

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Bug
2+
description: Report a bug
3+
labels:
4+
- kind/bug
5+
- needs-triage
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Description
10+
value: |
11+
<!-- Please craft a detailed description of the documentation issue or suggestion -->
12+
<!-- Below are some suggestions but feel free to modify or remove them -->
13+
14+
**Observed Behavior**:
15+
16+
**Expected Behavior**:
17+
18+
**Reproduction Steps** (Please include `ResourceGroup` and `Instances` files):
19+
20+
**Versions**:
21+
- kro version:
22+
- Kubernetes Version (`kubectl version`):
23+
24+
**Involved Controllers**:
25+
- Controller URLs and Versions (if applicable):
26+
27+
**Error Logs** (if applicable)**:
28+
```
29+
Paste any relevant logs here
30+
```
31+
32+
* 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
33+
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
34+
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
35+
- type: dropdown
36+
id: issue_type
37+
attributes:
38+
label: Which option describes the most your issue?
39+
multiple: true
40+
options:
41+
- ResourceGroup (Create, Update, Deletion)
42+
- Instance (Create, Update, Deletion)
43+
- Directed Acyclic Graph inference
44+
- Common Expression Language (CEL)
45+
- Schema Validation
46+
- Others (please specify)

.github/ISSUE_TEMPLATE/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Documentation
2+
description: Report documentation issues or suggest improvements
3+
labels:
4+
- kind/documentation
5+
- needs-triage
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Documentation Issue
10+
value: |
11+
<!-- Please craft a detailed description of the documentation issue or suggestion -->
12+
<!-- Below are some suggestions but feel free to modify or remove them -->
13+
14+
**Location**:
15+
<!-- Specify where the documentation issue is (URL, file path, etc.) -->
16+
17+
**Current State**:
18+
<!-- What does the current documentation say? -->
19+
20+
**Suggested Changes**:
21+
<!-- How should it be improved? -->
22+
23+
**Additional Context**:
24+
<!-- Any additional information that might be helpful -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Feature Request
2+
description: Suggest a new feature or enhancement
3+
labels:
4+
- kind/feature
5+
- needs-triage
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Feature Description
10+
value: |
11+
**Problem Statement**:
12+
<!-- What problem are you trying to solve? -->
13+
14+
**Proposed Solution**:
15+
<!-- Describe your proposed solution -->
16+
17+
**Alternatives Considered**:
18+
<!-- What alternatives have you considered? -->
19+
20+
**Additional Context**:
21+
<!-- Add any other context about the feature request here -->
22+
23+
* 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
24+
* If you are interested in working on this feature, please leave a comment

.github/workflows/deploy-docs.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "website/**"
9+
- "images/archiecture-diagrams"
10+
11+
jobs:
12+
build:
13+
name: Build Docusaurus
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: ./website
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 18
25+
26+
- name: Install dependencies
27+
run: npm install --frozen-lockfile
28+
- name: Build website
29+
run: npm run build
30+
31+
- name: Upload Build Artifact
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: ./website/build
35+
36+
deploy:
37+
name: Deploy to GitHub Pages
38+
needs: build
39+
defaults:
40+
run:
41+
working-directory: ./website
42+
permissions:
43+
pages: write
44+
id-token: write
45+
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
14+
jobs:
15+
golangci:
16+
name: lint
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-go@v5
21+
with:
22+
go-version: stable
23+
- name: golangci-lint
24+
uses: golangci/golangci-lint-action@v6
25+
with:
26+
args: --timeout=5m
27+
version: v1.60
28+
only-new-issues: true
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Integration Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
integration:
11+
name: Integration Tests
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version-file: 'go.mod'
21+
cache: true
22+
23+
- name: Install setup-envtest
24+
run: go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
25+
26+
- name: Configure envtest
27+
run: |
28+
KUBEBUILDER_ASSETS="$(setup-envtest use -p path 1.31.x)"
29+
echo "KUBEBUILDER_ASSETS=${KUBEBUILDER_ASSETS}" >> $GITHUB_ENV
30+
31+
- name: Run integration tests
32+
run: make test WHAT=integration

.github/workflows/test-docs.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test docs deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- 'website/**'
9+
10+
jobs:
11+
test-deploy:
12+
name: Test deployment
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: ./website
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 18
24+
25+
- name: Install dependencies
26+
run: npm install --frozen-lockfile
27+
- name: Test build website
28+
run: npm run build

.github/workflows/unit-tests.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: unit tests
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
go-version: [ '1.22', '1.23' ]
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Setup Go ${{ matrix.go-version }}
18+
uses: actions/setup-go@v4
19+
with:
20+
go-version: ${{ matrix.go-version }}
21+
22+
- name: Build
23+
run: go build cmd
24+
25+
- name: Run unit tests
26+
run: make test WHAT=unit

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
# Binaries for programs and plugins
3+
*.exe
4+
*.exe~
5+
*.dll
6+
*.so
7+
*.dylib
8+
bin/*
9+
Dockerfile.cross
10+
11+
# Test binary, build with `go test -c`
12+
*.test
13+
14+
# Output of the go coverage tool, specifically when used with LiteIDE
15+
*.out
16+
17+
# Kubernetes Generated files - skip generated files, except for vendored files
18+
19+
!vendor/**/zz_generated.*
20+
21+
# editor and IDE paraphernalia
22+
.idea
23+
.vscode
24+
*.swp
25+
*.swo
26+
*~
27+
28+
kro-controller
29+
kro-chart*
30+
kro-*
31+
cover.html
32+
.read
33+
.snapshots
34+
.alpackages
35+
.design
36+
.DS_Store
37+
TODO.*
38+
# package-lock.json

0 commit comments

Comments
 (0)