Skip to content

Commit 33ddc6d

Browse files
committed
Initial commit
0 parents  commit 33ddc6d

File tree

404 files changed

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

404 files changed

+52381
-0
lines changed

.editorconfig

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[{*.go,Makefile,.gitmodules,go.mod,go.sum}]
10+
indent_style = tab
11+
12+
[*.md]
13+
indent_style = tab
14+
trim_trailing_whitespace = false
15+
16+
[*.{yml,yaml,json}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.{js,jsx,ts,tsx,css,less,sass,scss,vue,py}]
21+
indent_style = space
22+
indent_size = 4
23+
24+
[{*.sh,pre-push}]
25+
# we choose the google style guide here: https://google.github.io/styleguide/shellguide.html
26+
indent_style = space
27+
indent_size = 2
28+
29+
shell_variant = posix # like -ln=posix
30+
binary_next_line = true # like -bn
31+
switch_case_indent = true # like -ci
32+
space_redirects = true # like -sr
33+
keep_padding = true # like -kp
34+
function_next_line = true # like -fn

.githooks/pre-push

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
STAGED_GO_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep "\.go$")
4+
5+
# only lint if Go files have changed
6+
if [ "$STAGED_GO_FILES" = "" ]; then
7+
exit 0
8+
fi
9+
10+
# inform about failed linting step
11+
function failed {
12+
echo ''
13+
echo -e "Linting failed... You can not push!"
14+
echo ''
15+
16+
exit 1
17+
}
18+
19+
trap 'failed' ERR
20+
21+
make lint
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Bug report
3+
about: Report a bug in the gardener-extension-provider-stackit
4+
---
5+
6+
## Description
7+
8+
_Please add a clear and concise description of what the bug is._
9+
10+
## Steps to reproduce
11+
12+
_Please provide us with the steps to reproduce the behavior._
13+
14+
1. Run ...
15+
2. ...
16+
17+
## Actual behavior
18+
19+
_Please describe the current behavior of the gardener-extension-provider-stackit. Don't forget to add detailed information like error messages._
20+
21+
## Expected behavior
22+
23+
_Please describe the behavior which you would expect from the gardener-extension-provider-stackit in that case._
24+
25+
## Environment
26+
27+
- Kubernetes version:
28+
- Version of the gardener-extension-provider-stackit:
29+
30+
## Additional information
31+
32+
_Feel free to add any additional information here._
33+
34+
/kind bug
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for the gardener-extension-provider-stackit
4+
---
5+
6+
## Problem description
7+
8+
_Is your feature request related to a problem? If so, please give us a clear and concise description of what the problem is._
9+
10+
## Proposed solution
11+
12+
_A clear and concise description of what you want to happen._
13+
14+
## Alternative solutions (optional)
15+
16+
_A clear and concise description of any alternative solutions or features you've considered. (optional)_
17+
18+
## Additional information
19+
20+
_Feel free to add any additional information here._
21+
22+
/kind enhancement

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**How to categorize this PR?**
2+
3+
<!--
4+
Please select the kind of this pull request, e.g.:
5+
/kind enhancement
6+
7+
Tide will not merge your PR, if it is missing a `kind/*` label.
8+
"/kind" identifiers: api-change|bug|cleanup|discussion|enhancement|epic|impediment|poc|post-mortem|question|regression|task|technical-debt|test
9+
-->
10+
11+
**What this PR does / why we need it**:
12+
13+
**Special notes for your reviewer**:
14+
15+
**Breaking changes**:
16+
17+
<!--
18+
If your PR contains breaking changes, list the changes in detail here.
19+
This could be:
20+
- removing a documented feature, that we need to announce properly
21+
- a change of the configuration, that needs to be adopted in the provider-stackit
22+
23+
Additionally, add the breaking label for the release note generation via:
24+
/label breaking
25+
-->

.github/release.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- no-release-note
5+
categories:
6+
- title: ⚠️ Breaking Changes
7+
labels:
8+
- breaking
9+
- title: ✨ Features
10+
labels:
11+
- kind/enhancement
12+
- title: 🐛 Bug Fixes
13+
labels:
14+
- kind/bug
15+
- title: 🧹 Cleanups
16+
labels:
17+
- kind/cleanup
18+
- title: 🤖 Dependencies
19+
labels:
20+
- kind/upgrade
21+
- title: ℹ️ Other Changes
22+
labels:
23+
- "*"

.github/renovate.json5

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: [
4+
'config:recommended',
5+
],
6+
dependencyDashboard: true,
7+
postUpdateOptions: [
8+
'gomodTidy',
9+
],
10+
separateMinorPatch: true,
11+
additionalReviewers: [
12+
'team:ske-infrastructure',
13+
],
14+
labels: [
15+
'kind/upgrade',
16+
],
17+
commitMessagePrefix: '🤖',
18+
customManagers: [
19+
{
20+
description: 'Update `_VERSION` and `_version` variables in Makefiles and scripts. Inspired by `regexManagers:dockerfileVersions` preset.',
21+
customType: 'regex',
22+
managerFilePatterns: [
23+
'/Makefile$/',
24+
'/\\.mk$/',
25+
'/\\.sh$/',
26+
],
27+
matchStrings: [
28+
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s.+?_(VERSION|version) *[?:]?= *"?(?<currentValue>.+?)"?\\s',
29+
],
30+
},
31+
{
32+
description: 'Update `imagevector/images.yaml`',
33+
customType: 'regex',
34+
managerFilePatterns: [
35+
'/imagevector/images.yaml$/',
36+
],
37+
matchStrings: [
38+
'# renovate(?:\w|\W|)*?repository: (?<depName>.*)(?:\w|\W)*?tag: "?(?<currentValue>(?:\w|\d|\.|-)*)"?',
39+
],
40+
datasourceTemplate: 'docker',
41+
versioningTemplate: 'semver'
42+
}
43+
],
44+
packageRules: [
45+
{
46+
description: 'dependencies are updated alongside g/g',
47+
enabled: false,
48+
matchDatasources: ['go'],
49+
matchPackageNames: [
50+
'/k8s.io/',
51+
'/sigs.k8s.io/controller-runtime/',
52+
'/github.com/gardener/etcd-druid/',
53+
'/github.com/gardener/machine-controller-manager/',
54+
],
55+
},
56+
{
57+
description: 'dependencies are pined to a dedicated version minor',
58+
enabled: false,
59+
matchUpdateTypes: [
60+
'minor',
61+
'major',
62+
],
63+
matchPackageNames: [
64+
'ghcr.io/stackitcloud/cloud-provider-stackit/stackit-csi-plugin',
65+
'ghcr.io/stackitcloud/cloud-provider-stackit/cloud-controller-manager',
66+
'registry.ske.stackit.cloud/stackitcloud/cinder-csi-plugin',
67+
'registry.k8s.io/provider-os/openstack-cloud-controller-manager',
68+
],
69+
},
70+
{
71+
groupName: 'cloud-provider-stackit',
72+
matchUpdateTypes: [
73+
'patch',
74+
],
75+
matchPackageNames: [
76+
'ghcr.io/stackitcloud/cloud-provider-stackit/stackit-csi-plugin',
77+
'ghcr.io/stackitcloud/cloud-provider-stackit/cloud-controller-manager',
78+
],
79+
},
80+
{
81+
groupName: 'cloud-provider-openstack',
82+
matchUpdateTypes: [
83+
'patch',
84+
],
85+
matchPackageNames: [
86+
'registry.ske.stackit.cloud/stackitcloud/cinder-csi-plugin',
87+
'registry.k8s.io/provider-os/openstack-cloud-controller-manager'
88+
],
89+
},
90+
{
91+
groupName: 'Internal',
92+
matchFileNames: [
93+
'charts/internal/**/requirements.yaml',
94+
],
95+
enabled: false,
96+
},
97+
{
98+
groupName: 'Go testing',
99+
matchUpdateTypes: [
100+
'minor',
101+
'patch',
102+
],
103+
addLabels: [
104+
'skip-review',
105+
],
106+
matchSourceUrls: [
107+
'https://github.com/onsi/gomega{/,}**',
108+
'https://github.com/onsi/ginkgo{/,}**',
109+
],
110+
},
111+
],
112+
}

0 commit comments

Comments
 (0)