Skip to content

Commit a6f57f3

Browse files
committed
Refactor Makefile and GH workflows
- Refactor `Makefile` to a kubebuilder style format - Adapt GH workflows - Add dependabot configuration
1 parent f48b0fb commit a6f57f3

Some content is hidden

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

50 files changed

+1684
-751
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Bug report 🐞
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior e.g. provide example action definition.
14+
15+
**Expected behavior**
16+
A clear and concise description of what you expected to happen.
17+
18+
**Screenshots**
19+
If applicable, add screenshots to help explain your problem.
20+
21+
**Additional context**
22+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature Request 💡
3+
about: Suggest a new idea for the project.
4+
labels: enhancement
5+
---
6+
7+
# Summary
8+
9+
Brief explanation of the feature.
10+
11+
## Basic example
12+
13+
If the proposal involves a new or changed API, include a basic code example. Omit this section if it's not applicable.
14+
15+
## Motivation
16+
17+
Why are we doing this? What use cases does it support? What is the expected outcome?

.github/ISSUE_TEMPLATE/question.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Question ❓
3+
about: Is something unclear?
4+
labels: question
5+
---
6+
7+
# Question?

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "gomod"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
# Ignore K8 packages as these are done manually
9+
ignore:
10+
- dependency-name: "k8s.io/api"
11+
- dependency-name: "k8s.io/apiextensions-apiserver"
12+
- dependency-name: "k8s.io/apimachinery"
13+
- dependency-name: "k8s.io/apiserver"
14+
- dependency-name: "k8s.io/client-go"
15+
- dependency-name: "k8s.io/component-base"
16+
- dependency-name: "k8s.io/kube-aggregator"
17+
- dependency-name: "k8s.io/kubectl"
18+
- dependency-name: "sigs.k8s.io/controller-runtime"
19+
- package-ecosystem: "github-actions"
20+
directory: "/"
21+
schedule:
22+
interval: "weekly"
23+
- package-ecosystem: "docker"
24+
directory: "/"
25+
schedule:
26+
interval: "weekly"

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Proposed Changes
2+
3+
-
4+
-
5+
-
6+
7+
Fixes #

.github/release-drafter.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '⚠️ Breaking'
5+
labels:
6+
- 'breaking'
7+
- title: '🚀 Features'
8+
labels:
9+
- 'feature'
10+
- 'enhancement'
11+
- 'api-change'
12+
- title: '🐛 Bug Fixes'
13+
labels:
14+
- 'fix'
15+
- 'bugfix'
16+
- 'bug'
17+
- title: '🧰 Maintenance'
18+
labels:
19+
- 'chore'
20+
- 'dependencies'
21+
- 'marketing'
22+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
23+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
24+
version-resolver:
25+
major:
26+
labels:
27+
- 'major'
28+
minor:
29+
labels:
30+
- 'minor'
31+
patch:
32+
labels:
33+
- 'patch'
34+
default: patch
35+
exclude-labels:
36+
- 'skip-changelog'
37+
autolabeler:
38+
- label: 'api-change'
39+
files:
40+
- '/api/*'
41+
- label: 'documentation'
42+
files:
43+
- '*.md'
44+
branch:
45+
- '/docs{0,1}\/.+/'
46+
- label: 'bug'
47+
branch:
48+
- '/fix\/.+/'
49+
title:
50+
- '/fix/i'
51+
- label: 'enhancement'
52+
branch:
53+
- '/feature\/.+/'
54+
body:
55+
- '/JIRA-[0-9]{1,4}/'
56+
- label: 'enhancement'
57+
branch:
58+
- '/enh\/.+/'
59+
- label: 'chore'
60+
branch:
61+
- '/chore\/.+/'
62+
template: |
63+
## Changes
64+
$CHANGES

.github/renovate.json

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Check Codegen
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- 'docs/**'
7+
- '**/*.md'
8+
9+
jobs:
10+
check-codegen:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v5
15+
with:
16+
go-version-file: 'go.mod'
17+
- name: Run make generate
18+
run: make generate
19+
- name: Run make docs
20+
run: make docs
21+
- name: Run make helm
22+
run: make helm
23+
- name: Compare the expected and actual generated/* directories
24+
run: |
25+
if [ "$(git diff | wc -l)" -gt "0" ]; then
26+
echo "Detected uncommitted changes after build. Consider running 'make generate && make docs && make helm'."
27+
echo "See status below:"
28+
git diff
29+
exit 1
30+
fi

.github/workflows/checks.yaml

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)