Skip to content

Commit 924c2ae

Browse files
Initial commit
0 parents  commit 924c2ae

File tree

17 files changed

+870
-0
lines changed

17 files changed

+870
-0
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These owners will be the default owners for everything in
2+
# the repo. Unless a later match takes precedence,
3+
* @cloudoperators/Administrators
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: "🐛 Bug Report"
2+
description: Create a new ticket for a bug experienced in Greenhouse.
3+
title: "🐛 [BUG] - <title>"
4+
labels: [
5+
"bug",
6+
]
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for reporting an issue you experienced with the Greenhouse platform.
12+
13+
Please complete the below form to ensure we have the necessary details to assist you.
14+
- type: dropdown
15+
id: priority
16+
attributes:
17+
label: Priority
18+
description: Let us know how this issue is affecting you
19+
options:
20+
- (Low) Something is a little off
21+
- (Medium) I'm annoyed but I'll live
22+
- (Urgent) I can't use Greenhouse
23+
- type: textarea
24+
id: description
25+
attributes:
26+
label: "Description"
27+
description: Please enter an explicit description of your issue
28+
placeholder: Short and explicit description of your incident...
29+
validations:
30+
required: true
31+
- type: textarea
32+
id: reprod
33+
attributes:
34+
label: "Reproduction steps"
35+
description: Please enter an explicit description of your issue
36+
value: |
37+
1. Go to '...'
38+
2. Click on '....'
39+
3. Scroll down to '....'
40+
4. See error
41+
render: bash
42+
validations:
43+
required: true
44+
- type: textarea
45+
id: manifests
46+
attributes:
47+
label: "Manifests"
48+
description: If applicable, add manifests to help reproduce your problem.
49+
value: |
50+
```yaml
51+
apiVersion: greenhouse.sap/v1alpha1
52+
kind: ...
53+
```
54+
render: yaml
55+
validations:
56+
required: false
57+
- type: textarea
58+
id: screenshot
59+
attributes:
60+
label: "Screenshots"
61+
description: If applicable, add screenshots to help explain your problem.
62+
value: |
63+
![DESCRIPTION](LINK.png)
64+
render: bash
65+
validations:
66+
required: false

.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: true
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "💡 Feature Request"
2+
description: Create a ticket requesting a new feature
3+
title: "[FEAT] - <title>"
4+
labels: [
5+
"feature"
6+
]
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for requesting an awesome new feature!
12+
13+
Your input means a lot to us, and we're excited to explore the possibilities and see how we can make it happen.
14+
- type: dropdown
15+
id: priority
16+
attributes:
17+
label: Priority
18+
description: Let us know how the lack of this feature is affecting you
19+
options:
20+
- (Low) Something is a little off
21+
- (Medium) I'm annoyed but I'll live
22+
- (Urgent) I can't use the Greenhouse without
23+
- type: textarea
24+
id: description
25+
attributes:
26+
label: "Description"
27+
description: Provide a clear and concise description of the feature you're requesting
28+
placeholder: Short and explicit description of your feature.
29+
validations:
30+
required: true
31+
- type: textarea
32+
id: reference_issues
33+
attributes:
34+
label: "Reference Issues"
35+
description: Common issues
36+
placeholder: "#Issues IDs"
37+
validations:
38+
required: false
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## Description
2+
<!--
3+
Please do not leave this blank
4+
This PR [adds/removes/fixes/replaces] the [feature/bug/etc].
5+
-->
6+
7+
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
8+
9+
## What type of PR is this? (check all applicable)
10+
11+
- [ ] 🍕 Feature
12+
- [ ] 🐛 Bug Fix
13+
- [ ] 📝 Documentation Update
14+
- [ ] 🎨 Style
15+
- [ ] 🧑‍💻 Code Refactor
16+
- [ ] 🔥 Performance Improvements
17+
- [ ] ✅ Test
18+
- [ ] 🤖 Build
19+
- [ ] 🔁 CI
20+
- [ ] 📦 Chore (Release)
21+
- [ ] ⏩ Revert
22+
23+
## Related Tickets & Documents
24+
25+
<!--
26+
Please use this format link issue numbers: Fixes #123
27+
https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
28+
-->
29+
- Related Issue # (issue)
30+
- Closes # (issue)
31+
- Fixes # (issue)
32+
33+
> Remove if not applicable
34+
35+
## Added tests?
36+
37+
- [ ] 👍 yes
38+
- [ ] 🙅 no, because they aren't needed
39+
- [ ] 🙋 no, because I need help
40+
- [ ] Separate ticket for tests # (issue/pr)
41+
42+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
43+
44+
## Added to documentation?
45+
46+
- [ ] 📜 README.md
47+
- [ ] 🤝 Documentation pages updated
48+
- [ ] 🙅 no documentation needed
49+
- [ ] (if applicable) generated OpenAPI docs for CRD changes
50+
51+
## Checklist
52+
53+
- [ ] My code follows the style guidelines of this project
54+
- [ ] I have performed a self-review of my code
55+
- [ ] I have commented my code, particularly in hard-to-understand areas
56+
- [ ] I have made corresponding changes to the documentation
57+
- [ ] My changes generate no new warnings
58+
- [ ] I have added tests that prove my fix is effective or that my feature works
59+
- [ ] New and existing unit tests pass locally with my changes

.github/licenserc.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
content: |
5+
SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors
6+
SPDX-License-Identifier: Apache-2.0
7+
8+
paths: # `paths` are the path list that will be checked (and fixed) by license-eye, default is ['**'].
9+
- '**'
10+
11+
paths-ignore:
12+
- '.github/**'
13+
- '.reuse/dep5'
14+
- 'LICENSES/*.txt'
15+
- 'grafana/*.json'
16+
- 'website/scripts/**'
17+
- 'hack/**'
18+
- 'hack/openapi-generator/openapi-info.yaml'
19+
- 'hack/boilerplate.go.txt'
20+
- 'docs/**'
21+
- '**/*.md'
22+
- 'LICENSE'
23+
- 'NOTICE'
24+
- 'PROJECT'
25+
- '**/*.gitignore'
26+
- '**/*.helmignore'
27+
- '**/*.tpl'
28+
- '**/go.mod'
29+
- '**/go.sum'
30+
- '**/*.lock'
31+
- '**/*.json'
32+
- '**/.gitkeep'
33+
- '**/*.txt'
34+
- '*Dockerfile*'
35+
- 'Makefile'
36+
- 'pkg/idproxy/web/**'
37+
- 'pkg/apis/scheme_builder.go' # Belongs to the Kubernetes authors
38+
- 'cmd/tcp-proxy/main.go' # MIT License
39+
- 'pkg/tcp-proxy/proxy/*.go' # MIT License
40+
- '**/zz_generated.deepcopy.go' # Generated by Kubebuilder
41+
- 'charts/**/templates/*.yaml' # license headers on helm templates are causing issues
42+
43+
44+
comment: on-failure
45+
46+
# license-location-threshold specifies the index threshold where the license header can be located,
47+
# after all, a "header" cannot be TOO far from the file start.
48+
license-location-threshold: 80
49+
50+
language:
51+
JSX:
52+
extensions:
53+
- ".jsx"
54+
comment_style_id: SlashAsterisk

.github/renovate.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"assigneesFromCodeOwners": true,
4+
"extends": [
5+
"config:recommended"
6+
],
7+
"constraints": {
8+
"go": "1.23"
9+
},
10+
"packageRules": [
11+
{
12+
"groupName": "github actions",
13+
"matchManagers": ["github-actions"],
14+
"matchUpdateTypes": ["major", "minor"],
15+
"extends": [
16+
"helpers:pinGitHubActionDigests"
17+
],
18+
"minimumReleaseAge": "14 days"
19+
},
20+
{
21+
"groupName": "npm dependencies",
22+
"matchDatasources": [
23+
"npm"
24+
],
25+
"minimumReleaseAge": "14 days"
26+
},
27+
{
28+
"groupName": "golang",
29+
"matchDatasources": ["docker", "go-version"],
30+
"matchPackagePatterns": ["golang"],
31+
"minimumReleaseAge": "14 days"
32+
},
33+
{
34+
"groupName": "kubernetes packages",
35+
"groupSlug": "kubernetes-go",
36+
"matchDatasources": [
37+
"go"
38+
],
39+
"matchUpdateTypes": ["major", "minor"],
40+
"matchPackagePrefixes": [
41+
"k8s.io/api",
42+
"k8s.io/apiextensions-apiserver",
43+
"k8s.io/apimachinery",
44+
"k8s.io/apiserver",
45+
"k8s.io/cli-runtime",
46+
"k8s.io/client-go",
47+
"k8s.io/cloud-provider",
48+
"k8s.io/cluster-bootstrap",
49+
"k8s.io/code-generator",
50+
"k8s.io/component-base",
51+
"k8s.io/controller-manager",
52+
"k8s.io/cri-api",
53+
"k8s.io/csi-translation-lib",
54+
"k8s.io/kube-aggregator",
55+
"k8s.io/kube-controller-manager",
56+
"k8s.io/kube-proxy",
57+
"k8s.io/kube-scheduler",
58+
"k8s.io/kubectl",
59+
"k8s.io/kubelet",
60+
"k8s.io/legacy-cloud-providers",
61+
"k8s.io/metrics",
62+
"k8s.io/mount-utils",
63+
"k8s.io/pod-security-admission",
64+
"k8s.io/sample-apiserver",
65+
"k8s.io/sample-cli-plugin",
66+
"k8s.io/sample-controller",
67+
"sigs.k8s.io/controller-runtime"
68+
],
69+
"minimumReleaseAge": "14 days"
70+
}
71+
],
72+
"postUpdateOptions": [
73+
"gomodTidy",
74+
"gomodUpdateImportPaths"
75+
],
76+
"separateMinorPatch": true,
77+
"customManagers": [
78+
{
79+
"customType": "regex",
80+
"fileMatch": ["Makefile$", "\\.sh$"],
81+
"matchStrings": [
82+
"# 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"
83+
]
84+
}
85+
]
86+
}

.github/workflows/codeql.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CodeQL
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
pull_request:
6+
types: [ opened, synchronize, reopened ]
7+
schedule:
8+
- cron: '20 08 * * 1'
9+
10+
jobs:
11+
codeql:
12+
permissions:
13+
security-events: write
14+
actions: read
15+
contents: read
16+
uses: cloudoperators/common/.github/workflows/shared-codeql.yaml@main
17+
with:
18+
runs-on: "['default']"
19+
language: "['go']"
20+
go-check: true
21+
go-version: "['1.23']"
22+
node-check: false
23+
# node-version : "['node']"
24+
# fail-fast: false
25+
# timeout: 30
26+
autobuild: true
27+
# build_query: "make something"

.github/workflows/license.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Check & Fix License Header
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
6+
jobs:
7+
build-license-eye:
8+
permissions:
9+
contents: write # Only used when `apply_header: true` else the permission is `read` see: https://github.com/cloudoperators/common/blob/8f15c13b6f4c1631c7e6f6dff5c3300452e9b5b6/.github/workflows/shared-license.yaml#L21-L22
10+
uses: cloudoperators/common/.github/workflows/shared-license.yaml@main
11+
# with:
12+
# apply_header: false

.github/workflows/reuse.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
name: REUSE Compliance Check
6+
7+
on: [pull_request]
8+
9+
jobs:
10+
reuse:
11+
uses: cloudoperators/common/.github/workflows/shared-reuse.yaml@main

0 commit comments

Comments
 (0)