Skip to content

Commit 9a9e817

Browse files
committed
initial
On-behalf-of: @SAP christoph.mewes@sap.com
0 parents  commit 9a9e817

File tree

148 files changed

+11241
-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.

148 files changed

+11241
-0
lines changed

.gimps.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright 2026 The kcp Authors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# This is the configuration for https://codeberg.org/xrstf/gimps.
16+
17+
importOrder: [std, external, project, kcp, kubernetes]
18+
sets:
19+
- name: kubernetes
20+
patterns:
21+
- 'k8s.io/**'
22+
- 'sigs.k8s.io/controller-runtime/**'
23+
- 'sigs.k8s.io/controller-tools/**'
24+
- 'sigs.k8s.io/multicluster-runtime/**'
25+
- 'sigs.k8s.io/yaml/**'
26+
- 'github.com/kcp-dev/client-go/**'
27+
- 'github.com/kcp-dev/kubernetes/**'
28+
- name: kcp
29+
patterns:
30+
- 'github.com/kcp-dev/kcp/**'
31+
- 'github.com/kcp-dev/sdk/**'
32+
- 'github.com/kcp-dev/logicalcluster/**'
33+
- 'github.com/kcp-dev/code-generator/**'
34+
- 'github.com/kcp-dev/multicluster-provider/**'
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
title: "bug: "
4+
labels:
5+
- kind/bug
6+
body:
7+
- type: textarea
8+
id: description
9+
attributes:
10+
label: Describe the bug
11+
description: Please provide a clear and concise description of the bug.
12+
placeholder: |
13+
Add logs and screenshots if any.
14+
validations:
15+
required: true
16+
17+
- type: textarea
18+
id: reproducing
19+
attributes:
20+
label: Steps To Reproduce
21+
description: Steps to reproduce the behavior.
22+
placeholder: |
23+
1. Go to '...'
24+
2. Click on '...'
25+
3. Scroll down to '...'
26+
4. See the error
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
id: expected
32+
attributes:
33+
label: Expected Behaviour
34+
description: A clear and concise description of what you expected to happen.
35+
validations:
36+
required: true
37+
38+
- type: textarea
39+
id: additional
40+
attributes:
41+
label: Additional Context
42+
description: Add any other context about the problem here.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Feature Request
2+
description: Suggest an idea for this project
3+
title: "feature: "
4+
labels:
5+
- kind/feature
6+
body:
7+
- type: textarea
8+
id: problem
9+
attributes:
10+
label: Feature Description
11+
description: Is your feature request related to a problem? A clear and concise description of what the problem is.
12+
placeholder: I'm always frustrated when [...]
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
id: solution
18+
attributes:
19+
label: Proposed Solution
20+
description: A clear and consise description of what you want to happen.
21+
placeholder: We can do [...]
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
id: alternatives
27+
attributes:
28+
label: Alternative Solutions
29+
description: A clear and consise description of any alternative solutions or features that you've considered.
30+
placeholder: I think another approach would be [...]
31+
validations:
32+
required: false
33+
34+
- type: checkboxes
35+
id: contribute
36+
attributes:
37+
label: Want to contribute?
38+
options:
39+
- label: I would like to work on this issue.
40+
required: false
41+
42+
- type: textarea
43+
id: additional
44+
attributes:
45+
label: Additional Context
46+
description: Add any other context or screenshots about the feature request here.
47+
validations:
48+
required: false

.github/pull_request_template.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!--
2+
3+
Thanks for creating a pull request!
4+
If this is your first time, please make sure to review CONTRIBUTING.MD.
5+
6+
-->
7+
8+
## Summary
9+
10+
## What Type of PR Is This?
11+
12+
<!--
13+
14+
Add one of the following kinds:
15+
/kind bug
16+
/kind cleanup
17+
/kind documentation
18+
/kind feature
19+
20+
Optionally add one or more of the following kinds if applicable:
21+
/kind api-change
22+
/kind deprecation
23+
/kind failing-test
24+
/kind flake
25+
/kind regression
26+
27+
-->
28+
29+
## Related Issue(s)
30+
31+
Fixes #
32+
33+
## Release Notes
34+
35+
<!--
36+
Please add a release note in the block below. Leave NONE only if no user-facing changes are in this PR.
37+
-->
38+
39+
```release-note
40+
NONE
41+
```
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Documentation
2+
3+
on:
4+
# So we can trigger manually if needed
5+
workflow_dispatch:
6+
# To confirm any changes to docs build successfully, without deploying them
7+
pull_request:
8+
# Pushes to branches do the full build + deployment
9+
push:
10+
branches:
11+
- main
12+
- "release-*"
13+
paths:
14+
- "cmd/**"
15+
- "docs/**"
16+
- "pkg/**"
17+
- ".github/workflows/docs-gen-and-push.yaml"
18+
19+
permissions:
20+
contents: write
21+
22+
concurrency:
23+
group: ${{ github.workflow }}
24+
25+
jobs:
26+
generate-and-push:
27+
name: Generate and push
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # tag=v6.0.1
32+
33+
- run: git fetch origin gh-pages
34+
- run: git fetch origin '+refs/tags/v*:refs/tags/v*' --no-tags
35+
36+
- name: Setup Go
37+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # tag=v6.1.0
38+
with:
39+
go-version: v1.25.5
40+
cache: true
41+
42+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 #tag=v6.1.0
43+
with:
44+
python-version: '3.10'
45+
cache: 'pip'
46+
47+
# mike does not support giving CLI flags for mkdocs, but we also do not
48+
# want to permanently enable strict mode, so here we enable it just for this
49+
# task
50+
- run: |
51+
echo "strict: true" >> docs/mkdocs.yml
52+
53+
- run: make generate-api-docs deploy-docs

.github/workflows/release.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: goreleaser
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/release.yml
7+
- .goreleaser.yaml
8+
push:
9+
tags:
10+
- "v*"
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
release:
17+
runs-on: ubuntu-latest
18+
19+
permissions:
20+
contents: write
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # tag=v6.0.1
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Setup Go
29+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # tag=v6.1.0
30+
with:
31+
go-version: v1.25.5
32+
cache: true
33+
34+
- name: Delete non-semver tags
35+
run: 'git tag -d $(git tag -l | grep -v "^v")'
36+
37+
- name: Set LDFLAGS
38+
run: echo LDFLAGS="$(make ldflags)" >> $GITHUB_ENV
39+
40+
- name: Run GoReleaser on tag
41+
if: github.event_name != 'pull_request'
42+
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # tag=v6.4.0
43+
with:
44+
distribution: goreleaser
45+
version: "~> v2"
46+
args: release --timeout 60m
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
50+
- name: Run GoReleaser on pull request
51+
if: github.event_name == 'pull_request'
52+
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # tag=v6.4.0
53+
with:
54+
distribution: goreleaser
55+
version: "~> v2"
56+
args: release --timeout 60m --snapshot
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
60+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # tag=v5.0.0
61+
if: github.event_name == 'pull_request'
62+
with:
63+
name: binaries
64+
path: dist/*.tar.gz

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/_build/
2+
/dist/
3+
/_tools/
4+
/vendor/
5+
/.kcp.e2e/
6+
/.e2e/
7+
/.kcp/
8+
.cover
9+
*.kubeconfig
10+
*.pem
11+
*.key
12+
.DS_Store
13+
/docs/__pycache__
14+
.idea/

0 commit comments

Comments
 (0)