-
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.
- Loading branch information
Stephan Feurer
committed
Jan 29, 2023
0 parents
commit 1c86843
Showing
31 changed files
with
568 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,25 @@ | ||
{ | ||
"template": "https://github.com/projectsyn/commodore-component-template.git", | ||
"commit": "2e09191ab5f2b26f2098a1215594b561c6a59d97", | ||
"checkout": "main", | ||
"context": { | ||
"cookiecutter": { | ||
"name": "CSI Hetznercloud", | ||
"slug": "csi-hetznercloud", | ||
"parameter_key": "csi_hetznercloud", | ||
"test_cases": "defaults", | ||
"add_lib": "n", | ||
"add_pp": "n", | ||
"add_golden": "y", | ||
"add_matrix": "y", | ||
"add_go_unit": "n", | ||
"copyright_holder": "VSHN AG <info@vshn.ch>", | ||
"copyright_year": "2023", | ||
"github_owner": "tegridy-io", | ||
"github_name": "component-csi-hetznercloud", | ||
"github_url": "https://github.com/tegridy-io/component-csi-hetznercloud", | ||
"_template": "https://github.com/projectsyn/commodore-component-template.git" | ||
} | ||
}, | ||
"directory": null | ||
} |
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,33 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at https://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{y*ml,*json}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.*sonnet] | ||
# C-style doc comments | ||
block_comment_start = /* | ||
block_comment = * | ||
block_comment_end = */ | ||
|
||
[.gitkeep] | ||
insert_final_newline = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
; Ignore golden test outputs | ||
[tests/golden/**] | ||
indent_size = unset | ||
indent_style = unset | ||
insert_final_newline = unset | ||
trim_trailing_whitespace = unset |
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,20 @@ | ||
--- | ||
name: 🐜 Bug report | ||
about: Create a report to help us improve 🔧 | ||
labels: bug | ||
--- | ||
|
||
<!-- Place a general description or your issue here. --> | ||
|
||
## Steps to Reproduce the Problem | ||
<!-- Tell us how to reproduce your issue --> | ||
|
||
1. | ||
1. | ||
1. | ||
|
||
## Actual Behavior | ||
<!-- What did happen as a result of the above? --> | ||
|
||
## Expected Behavior | ||
<!-- What is your expectation of the result? --> |
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 @@ | ||
--- | ||
name: 🚀 Feature request | ||
about: Suggest an idea for this project 💡 | ||
labels: enhancement | ||
--- | ||
|
||
## Context | ||
<!-- | ||
Please let us know what you are trying to do and how you would want to do it differently? | ||
Is it something you currently cannot do? | ||
Is this related to an issue/problem? | ||
--> | ||
|
||
## Alternatives | ||
<!-- | ||
Can you achieve the same result doing it in an alternative way? | ||
Is the alternative considerable? | ||
--> |
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,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: ❓ Help and Support RocketChat Channel | ||
url: https://community.appuio.ch | ||
about: Please ask and answer questions here. 🏥 |
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,26 @@ | ||
|
||
|
||
|
||
## Checklist | ||
|
||
- [ ] The PR has a meaningful title. It will be used to auto generate the | ||
changelog. | ||
The PR has a meaningful description that sums up the change. It will be | ||
linked in the changelog. | ||
- [ ] PR contains a single logical change (to build a better changelog). | ||
- [ ] Update the documentation. | ||
- [ ] Categorize the PR by adding one of the labels: | ||
`bug`, `enhancement`, `documentation`, `change`, `breaking`, `dependency` | ||
as they show up in the changelog. | ||
- [ ] Link this PR to related issues or PRs. | ||
|
||
<!-- | ||
Thank you for your pull request. Please provide a description above and | ||
review the checklist. | ||
Contributors guide: ./CONTRIBUTING.md | ||
Remove items that do not apply. For completed items, change [ ] to [x]. | ||
These things are not required to open a PR and can be done afterwards, | ||
while the PR is open. | ||
--> |
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,32 @@ | ||
|
||
{ | ||
"pr_template": "- ${{TITLE}} (#${{NUMBER}})", | ||
"categories": [ | ||
{ | ||
"title": "## 🚀 Features", | ||
"labels": ["enhancement", "feature"] | ||
}, | ||
{ | ||
"title": "## 🛠️ Minor Changes", | ||
"labels": ["change"] | ||
}, | ||
{ | ||
"title": "## 🔎 Breaking Changes", | ||
"labels": ["breaking"] | ||
}, | ||
{ | ||
"title": "## 🐛 Fixes", | ||
"labels": ["bug", "fix"] | ||
}, | ||
{ | ||
"title": "## 📄 Documentation", | ||
"labels": ["documentation"] | ||
}, | ||
{ | ||
"title": "## 🔗 Dependency Updates", | ||
"labels": ["dependency"] | ||
} | ||
], | ||
"template": "${{CATEGORIZED_COUNT}} changes since ${{FROM_TAG}}\n\n${{CHANGELOG}}" | ||
} | ||
|
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,32 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" | ||
- name: Build changelog from PRs with labels | ||
id: build_changelog | ||
uses: mikepenz/release-changelog-builder-action@v3 | ||
with: | ||
configuration: ".github/changelog-configuration.json" | ||
# PreReleases still get a changelog, but the next full release gets a diff since the last full release, | ||
# combining possible changelogs of all previous PreReleases in between. | ||
# PreReleases show a partial changelog since last PreRelease. | ||
ignorePreReleases: "${{ !contains(github.ref, '-rc') }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
body: ${{steps.build_changelog.outputs.changelog}} | ||
prerelease: "${{ contains(github.ref, '-rc') }}" | ||
# Ensure target branch for release is "master" | ||
commit: master | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,59 @@ | ||
name: Pull Request | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
COMPONENT_NAME: csi-hetznercloud | ||
|
||
jobs: | ||
linting: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
command: | ||
- lint_jsonnet | ||
- lint_yaml | ||
- lint_adoc | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run ${{ matrix.command }} | ||
run: make ${{ matrix.command }} | ||
editorconfig: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: snow-actions/eclint@v1.0.1 | ||
with: | ||
args: 'check' | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
instance: | ||
- defaults | ||
defaults: | ||
run: | ||
working-directory: ${{ env.COMPONENT_NAME }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: ${{ env.COMPONENT_NAME }} | ||
- name: Compile component | ||
run: make test -e instance=${{ matrix.instance }} | ||
golden: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
instance: | ||
- defaults | ||
defaults: | ||
run: | ||
working-directory: ${{ env.COMPONENT_NAME }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: ${{ env.COMPONENT_NAME }} | ||
- name: Golden diff | ||
run: make golden-diff -e instance=${{ matrix.instance }} |
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,15 @@ | ||
# Commodore | ||
/.cache | ||
/dependencies | ||
/helmcharts | ||
/manifests | ||
/vendor | ||
/jsonnetfile.lock.json | ||
/crds | ||
/compiled | ||
|
||
# Antora | ||
/_archive | ||
/_public | ||
|
||
# Additional entries |
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,14 @@ | ||
extends: default | ||
|
||
rules: | ||
# 80 chars should be enough, but don't fail if a line is longer | ||
line-length: | ||
max: 80 | ||
level: warning | ||
|
||
ignore: | | ||
dependencies/ | ||
helmcharts/ | ||
manifests/ | ||
vendor/ | ||
compiled/ |
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,4 @@ | ||
# Code of Conduct | ||
|
||
This code repository is part of Project Syn and the code of conduct at | ||
https://syn.tools/syn/about/code_of_conduct.html does apply. |
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,6 @@ | ||
# How to contribute | ||
|
||
This code repository is part of Project Syn and the contribution guide at | ||
https://syn.tools/syn/about/contribution_guide.html does apply. | ||
|
||
Submit Pull Requests at https://github.com/tegridy-io/component-csi-hetznercloud/pulls. |
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,27 @@ | ||
Copyright 2023, VSHN AG <info@vshn.ch> | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
* Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Oops, something went wrong.