Skip to content

Commit 8f2bfc3

Browse files
committed
Initial commit
0 parents  commit 8f2bfc3

32 files changed

+583
-0
lines changed

.cruft.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"template": "https://github.com/projectsyn/commodore-component-template.git",
3+
"commit": "7803d07f1d79fc8b902fcafbb336b6b0a4b57b90",
4+
"checkout": "main",
5+
"context": {
6+
"cookiecutter": {
7+
"name": "cloudscale-cloud-controller-manager",
8+
"slug": "cloudscale-cloud-controller-manager",
9+
"parameter_key": "cloudscale_cloud_controller_manager",
10+
"test_cases": "defaults",
11+
"add_lib": "n",
12+
"add_pp": "n",
13+
"add_golden": "y",
14+
"add_matrix": "y",
15+
"add_go_unit": "n",
16+
"copyright_holder": "VSHN AG <info@vshn.ch>",
17+
"copyright_year": "2024",
18+
"github_owner": "projectsyn",
19+
"github_name": "component-cloudscale-cloud-controller-manager",
20+
"github_url": "https://github.com/projectsyn/component-cloudscale-cloud-controller-manager",
21+
"_template": "https://github.com/projectsyn/commodore-component-template.git"
22+
}
23+
},
24+
"directory": null
25+
}

.editorconfig

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at https://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.{y*ml,*json}]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.*sonnet]
17+
# C-style doc comments
18+
block_comment_start = /*
19+
block_comment = *
20+
block_comment_end = */
21+
22+
[.gitkeep]
23+
insert_final_newline = false
24+
25+
[Makefile]
26+
indent_style = tab
27+
28+
; Ignore golden test outputs
29+
[tests/golden/**]
30+
indent_size = unset
31+
indent_style = unset
32+
insert_final_newline = unset
33+
trim_trailing_whitespace = unset
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: 🐜 Bug report
3+
about: Create a report to help us improve 🔧
4+
labels: bug
5+
---
6+
7+
<!-- Place a general description or your issue here. -->
8+
9+
## Steps to Reproduce the Problem
10+
<!-- Tell us how to reproduce your issue -->
11+
12+
1.
13+
1.
14+
1.
15+
16+
## Actual Behavior
17+
<!-- What did happen as a result of the above? -->
18+
19+
## Expected Behavior
20+
<!-- What is your expectation of the result? -->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: 🚀 Feature request
3+
about: Suggest an idea for this project 💡
4+
labels: enhancement
5+
---
6+
7+
## Context
8+
<!--
9+
Please let us know what you are trying to do and how you would want to do it differently?
10+
Is it something you currently cannot do?
11+
Is this related to an issue/problem?
12+
-->
13+
14+
## Alternatives
15+
<!--
16+
Can you achieve the same result doing it in an alternative way?
17+
Is the alternative considerable?
18+
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: ❓ Help and Support RocketChat Channel
4+
url: https://community.appuio.ch
5+
about: Please ask and answer questions here. 🏥

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
3+
4+
## Checklist
5+
6+
- [ ] The PR has a meaningful title. It will be used to auto-generate the
7+
changelog.
8+
The PR has a meaningful description that sums up the change. It will be
9+
linked in the changelog.
10+
- [ ] PR contains a single logical change (to build a better changelog).
11+
- [ ] Update the documentation.
12+
- [ ] Categorize the PR by adding one of the labels:
13+
`bug`, `enhancement`, `documentation`, `change`, `breaking`, `dependency`
14+
as they show up in the changelog.
15+
- [ ] Link this PR to related issues or PRs.
16+
17+
<!--
18+
Thank you for your pull request. Please provide a description above and
19+
review the checklist.
20+
21+
Contributors guide: ./CONTRIBUTING.md
22+
23+
Remove items that do not apply. For completed items, change [ ] to [x].
24+
These things are not required to open a PR and can be done afterwards
25+
while the PR is open.
26+
-->

.github/changelog-configuration.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
{
3+
"pr_template": "- ${{TITLE}} (#${{NUMBER}})",
4+
"categories": [
5+
{
6+
"title": "## 🚀 Features",
7+
"labels": ["enhancement", "feature"]
8+
},
9+
{
10+
"title": "## 🛠️ Minor Changes",
11+
"labels": ["change"]
12+
},
13+
{
14+
"title": "## 🔎 Breaking Changes",
15+
"labels": ["breaking"]
16+
},
17+
{
18+
"title": "## 🐛 Fixes",
19+
"labels": ["bug", "fix"]
20+
},
21+
{
22+
"title": "## 📄 Documentation",
23+
"labels": ["documentation"]
24+
},
25+
{
26+
"title": "## 🔗 Dependency Updates",
27+
"labels": ["dependency"]
28+
}
29+
],
30+
"template": "${{CATEGORIZED_COUNT}} changes since ${{FROM_TAG}}\n\n${{CHANGELOG}}"
31+
}
32+

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: "0"
14+
- name: Build changelog from PRs with labels
15+
id: build_changelog
16+
uses: mikepenz/release-changelog-builder-action@v4
17+
with:
18+
configuration: ".github/changelog-configuration.json"
19+
# PreReleases still get a changelog, but the next full release gets a diff since the last full release,
20+
# combining possible changelogs of all previous PreReleases in between.
21+
# PreReleases show a partial changelog since last PreRelease.
22+
ignorePreReleases: "${{ !contains(github.ref, '-rc') }}"
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Create Release
26+
uses: ncipollo/release-action@v1
27+
with:
28+
body: ${{steps.build_changelog.outputs.changelog}}
29+
prerelease: "${{ contains(github.ref, '-rc') }}"
30+
# Ensure target branch for release is "master"
31+
commit: master
32+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Pull Request
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
7+
env:
8+
COMPONENT_NAME: cloudscale-cloud-controller-manager
9+
10+
jobs:
11+
linting:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
command:
16+
- lint_jsonnet
17+
- lint_yaml
18+
- lint_adoc
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Run ${{ matrix.command }}
22+
run: make ${{ matrix.command }}
23+
editorconfig:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: snow-actions/eclint@v1.0.1
28+
with:
29+
args: 'check'
30+
test:
31+
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
instance:
35+
- defaults
36+
defaults:
37+
run:
38+
working-directory: ${{ env.COMPONENT_NAME }}
39+
steps:
40+
- uses: actions/checkout@v4
41+
with:
42+
path: ${{ env.COMPONENT_NAME }}
43+
- name: Compile component
44+
run: make test -e instance=${{ matrix.instance }}
45+
golden:
46+
runs-on: ubuntu-latest
47+
strategy:
48+
matrix:
49+
instance:
50+
- defaults
51+
defaults:
52+
run:
53+
working-directory: ${{ env.COMPONENT_NAME }}
54+
steps:
55+
- uses: actions/checkout@v4
56+
with:
57+
path: ${{ env.COMPONENT_NAME }}
58+
- name: Golden diff
59+
run: make golden-diff -e instance=${{ matrix.instance }}

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Commodore
2+
/.cache
3+
/dependencies
4+
/helmcharts
5+
/manifests
6+
/vendor
7+
/jsonnetfile.lock.json
8+
/crds
9+
/compiled
10+
11+
# Antora
12+
/_archive
13+
/_public
14+
15+
# Additional entries

0 commit comments

Comments
 (0)