-
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 #7 from SovereignCloudStack/syself/bootstrap-csmctl
🌱 bootstrap csmctl repo
- Loading branch information
Showing
130 changed files
with
15,220 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,12 @@ | ||
{ | ||
"dirs_to_skip" : [ | ||
"hack/boilerplate/testdata/", | ||
"hack/tools/", | ||
"vendor", | ||
".cache", | ||
".pkg" | ||
], | ||
"not_generated_files_to_skip" : [ | ||
"hack/boilerplate/boilerplate.py" | ||
] | ||
} |
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 @@ | ||
0.2.0 |
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,23 @@ | ||
--- | ||
name: 'Bug report' | ||
about: Tell us about a problem you are experiencing. | ||
|
||
--- | ||
|
||
/kind bug | ||
|
||
**What steps did you take and what happened:** | ||
[A clear and concise description of what the bug is.] | ||
|
||
|
||
**What did you expect to happen:** | ||
|
||
|
||
**Anything else you would like to add:** | ||
[Miscellaneous information that will assist in solving the issue.] | ||
|
||
|
||
**Environment:** | ||
|
||
- csmctl version: (use `csmctl version`) | ||
- OS (e.g. from `/etc/os-release`): |
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,19 @@ | ||
--- | ||
name: 'Feature request' | ||
about: Suggest an idea for this project. | ||
|
||
--- | ||
|
||
/kind feature | ||
|
||
**Describe the solution you'd like** | ||
[A clear and concise description of what you want to happen.] | ||
|
||
|
||
**Anything else you would like to add:** | ||
[Miscellaneous information that will assist in solving the issue.] | ||
|
||
|
||
**Environment:** | ||
|
||
- csmctl version: (use `kubectl version`) |
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,23 @@ | ||
--- | ||
name: Enhancement Proposal | ||
about: Propose larger efforts, breaking changes, or new features | ||
|
||
--- | ||
|
||
***Goals*** | ||
1. Goal 1 | ||
2. Goal 2 | ||
|
||
***Non-Goals/Future Work*** | ||
1. Non-Goal 1 | ||
1. Non-Goal 2 | ||
|
||
**User Story** | ||
|
||
As a [developer/user/operator] I would like to [high level description] for [reasons] | ||
|
||
**Detailed Description** | ||
|
||
[A clear and concise description of what you want to happen.] | ||
|
||
/kind proposal |
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,30 @@ | ||
name: "Setup Go" | ||
description: "Setup Go" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install go | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version-file: "go.mod" | ||
cache: true | ||
cache-dependency-path: go.sum | ||
- id: go-cache-paths | ||
shell: bash | ||
run: | | ||
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT | ||
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT | ||
- name: Go Mod Cache | ||
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | ||
with: | ||
path: ${{ steps.go-cache-paths.outputs.go-mod }} | ||
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-mod- | ||
- name: Go Build Cache | ||
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | ||
with: | ||
path: ${{ steps.go-cache-paths.outputs.go-build }} | ||
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-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,22 @@ | ||
--- | ||
area/code: | ||
- changed-files: | ||
- any-glob-to-any-file: "controllers/**/*" | ||
- any-glob-to-any-file: "pkg/**/*" | ||
area/api: | ||
- changed-files: | ||
- any-glob-to-any-file: "api/**/*" | ||
- any-glob-to-any-file: "config/crd/**/*" | ||
area/github: | ||
- changed-files: | ||
- any-glob-to-any-file: ".github/**/*" | ||
area/hack: | ||
- changed-files: | ||
- any-glob-to-any-file: "hack/**/*" | ||
- any-glob-to-any-file: "Makefile" | ||
area/test: | ||
- changed-files: | ||
- any-glob-to-any-file: "test/**/*" | ||
area/templates: | ||
- changed-files: | ||
- any-glob-to-any-file: "templates/**/*" |
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,80 @@ | ||
--- | ||
# Area | ||
- name: area/code | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the code directory | ||
- name: area/api | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the api directory | ||
- name: area/github | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the github directory | ||
- name: area/hack | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the hack directory | ||
- name: area/test | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the test directory | ||
- name: area/templates | ||
color: "72ccf3" | ||
description: >- | ||
Changes made in the templates directory | ||
# Update | ||
- name: update/container | ||
color: "ffc300" | ||
- name: update/github-action | ||
color: "ffc300" | ||
- name: update/helm | ||
color: "ffc300" | ||
- name: update/go | ||
color: "ffc300" | ||
# Semantic Type | ||
- name: type/patch | ||
color: "FFEC19" | ||
- name: type/minor | ||
color: "FF9800" | ||
- name: type/major | ||
color: "F6412D" | ||
# Size | ||
- name: size/XS | ||
color: "009900" | ||
description: >- | ||
Denotes a PR that changes 0-20 lines, ignoring generated files. | ||
- name: size/S | ||
color: "77bb00" | ||
description: >- | ||
Denotes a PR that changes 20-50 lines, ignoring generated files. | ||
- name: size/M | ||
color: "eebb00" | ||
description: >- | ||
Denotes a PR that changes 50-200 lines, ignoring generated files. | ||
- name: size/L | ||
color: "ee9900" | ||
description: >- | ||
Denotes a PR that changes 200-800 lines, ignoring generated files. | ||
- name: size/XL | ||
color: "ee5500" | ||
description: >- | ||
Denotes a PR that changes 800-2000 lines, ignoring generated files. | ||
- name: size/XXL | ||
color: "ee0000" | ||
description: >- | ||
Denotes a PR that changes 2000+ lines, ignoring generated files. | ||
# Uncategorized | ||
- name: bug | ||
color: "ee0701" | ||
- name: do-not-merge | ||
color: "ee0701" | ||
- name: docs | ||
color: "F4D1B7" | ||
- name: enhancement | ||
color: "84b6eb" | ||
- name: link-checker | ||
color: "7B55D7" | ||
- name: question | ||
color: "cc317c" |
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,19 @@ | ||
<!-- If this is your first PR, welcome! Please make sure you read the [contributing guidelines](../CONTRIBUTING.md#contributing-a-patch). --> | ||
<!-- please add an icon to the title of this PR and delete this line and similar ones --> | ||
<!-- the icon will be either ⚠️ (:warning:, major or breaking changes), ✨ (:sparkles:, feature additions), 🐛 (:bug:, patches and bugfixes), 📖 (:book:, documentation or proposals), or 🌱 (:seedling:, minor or other) --> | ||
|
||
**What this PR does / why we need it**: | ||
|
||
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: | ||
Fixes # | ||
|
||
**Special notes for your reviewer**: | ||
|
||
_Please confirm that if this PR changes any image versions, then that's the sole change this PR makes._ | ||
|
||
**TODOs**: | ||
|
||
- [ ] squash commits | ||
- [ ] include documentation | ||
- [ ] add unit tests | ||
|
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,47 @@ | ||
{ | ||
extends: [ | ||
":dependencyDashboard", | ||
":semanticPrefixFixDepsChoreOthers", | ||
":autodetectRangeStrategy", | ||
":disableRateLimiting", | ||
":semanticCommits", | ||
"helpers:pinGitHubActionDigests", | ||
"github>whitesource/merge-confidence:beta", | ||
"github>SovereignCloudStack/csmctl//.github/renovate/commitMessage.json5", | ||
"github>SovereignCloudStack/csmctl//.github/renovate/approval.json5", | ||
"github>SovereignCloudStack/csmctl//.github/renovate/golang.json5", | ||
"github>SovereignCloudStack/csmctl//.github/renovate/groups.json5", | ||
"github>SovereignCloudStack/csmctl//.github/renovate/labels.json5", | ||
"github>SovereignCloudStack/csmctl//.github/renovate/regexManagers.json5" | ||
], | ||
platform: "github", | ||
baseBranches: ["main"], | ||
onboarding: false, | ||
requireConfig: "ignored", | ||
timezone: "Europe/Berlin", | ||
// repo config | ||
repositories: ["SovereignCloudStack/csmctl"], | ||
ignorePaths: [ | ||
"**/vendor/**", | ||
"**/test/**", | ||
"**/tests/**" | ||
], | ||
username: "csmctl-bot[bot]", | ||
// TODO: gitAuthor: "csmctl-bot[bot] <-bot[bot]@users.noreply.github.com>", | ||
// PR config | ||
dependencyDashboardTitle: "Dependency Dashboard 🤖", | ||
dependencyDashboardHeader: "", | ||
prFooter: "", | ||
suppressNotifications: ["prIgnoreNotification"], | ||
rebaseWhen: "conflicted", | ||
commitBodyTable: true, | ||
prHourlyLimit: 1, | ||
printConfig: true, | ||
pruneStaleBranches: true, | ||
allowPostUpgradeCommandTemplating: true, | ||
separateMajorMinor: true, | ||
separateMultipleMajor: true, | ||
separateMinorPatch: true, | ||
enabledManagers: ["dockerfile", "gomod", "github-actions", "regex"], | ||
recreateClosed: 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,11 @@ | ||
{ | ||
packageRules: [ | ||
{ | ||
matchUpdateTypes: ["major", "minor"], | ||
matchManagers: ["gomod"], | ||
matchDepTypes: ["golang"], | ||
description: "Ask for approval for golang updates", | ||
dependencyDashboardApproval: 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,18 @@ | ||
{ | ||
"commitMessagePrefix": ":seedling: ", | ||
"commitMessageTopic": "{{depName}}", | ||
"commitMessageExtra": "to {{newVersion}}", | ||
"commitMessageSuffix": "", | ||
"group": { commitMessageTopic: "{{{groupName}}} group" }, | ||
"packageRules": [ | ||
{ | ||
"matchDatasources": ["helm"], | ||
"commitMessageTopic": "chart {{depName}}" | ||
}, | ||
{ | ||
"matchDatasources": ["docker"], | ||
"commitMessageTopic": "image {{depName}}", | ||
"commitMessageExtra": "to {{#if isSingleVersion}}v{{{newVersion}}}{{else}}{{{newValue}}}{{/if}}" | ||
} | ||
] | ||
} |
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,31 @@ | ||
{ | ||
golang: { | ||
postUpdateOptions: ["gomodTidy", "gomodUpdateImportPaths"], | ||
}, | ||
// https://docs.renovatebot.com/configuration-options/#constraints | ||
"constraints": { | ||
"go": "1.21" | ||
}, | ||
packageRules: [ | ||
{ | ||
description: "Disable Golang update for major and minor versions", | ||
matchManagers: ["dockerfile"], | ||
matchDepNames: ["docker.io/library/golang"], | ||
matchUpdateTypes: ["major", "minor"], | ||
enabled: false, | ||
}, | ||
{ | ||
description: "Disable slim-sprig", | ||
matchManagers: ["gomod"], | ||
matchDepNames: ["github.com/go-task/slim-sprig"], | ||
matchPaths: ["hack/tools/**"], | ||
enabled: false, | ||
}, | ||
{ | ||
description: "Disable update k8s packages", | ||
matchManagers: ["gomod"], | ||
matchDepNames: ["k8s.io/api", "k8s.io/apimachinery", "k8s.io/apiserver", "k8s.io/client-go", "k8s.io/kubectl", "k8s.io/code-generator"], | ||
enabled: false, | ||
}, | ||
], | ||
} |
Oops, something went wrong.