Skip to content

Commit c96b544

Browse files
committed
Working version
1 parent ae8b097 commit c96b544

File tree

106 files changed

+6126
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+6126
-1
lines changed

.cruft.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"template": "https://github.com/vshn/appcat-cookiecutter",
3+
"commit": "128d270ba199a581122ff74c2f82b8e3019490f0",
4+
"checkout": null,
5+
"context": {
6+
"cookiecutter": {
7+
"app_name": "provider-s3",
8+
"component_repo": "vshn/component-appcat",
9+
"push_upbound": true,
10+
"push_package": true,
11+
"push_image": false,
12+
"_copy_without_render": [
13+
".github/workflows/cruft-update.yml",
14+
".github/changelog-configuration.json"
15+
],
16+
"_template": "https://github.com/vshn/appcat-cookiecutter"
17+
}
18+
},
19+
"directory": null
20+
}

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
8+
[Makefile]
9+
indent_style = tab
10+
11+
[{*.go, go.mod}]
12+
indent_style = tab
13+
14+
[{*.yml, *.yaml, *.json, *.css, *.js}]
15+
indent_style = space
16+
indent_size = 2
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 🐛 Bug report
2+
description: Create a report to help us improve 🎉
3+
labels:
4+
- bug
5+
6+
body:
7+
- type: textarea
8+
id: description
9+
attributes:
10+
label: Description
11+
description: A clear and concise description of what the bug is.
12+
validations:
13+
required: true
14+
- type: textarea
15+
id: context
16+
attributes:
17+
label: Additional Context
18+
description: Add any other context about the problem here.
19+
validations:
20+
required: false
21+
- type: textarea
22+
id: logs
23+
attributes:
24+
label: Logs
25+
description: If applicable, add logs to help explain the bug.
26+
render: shell
27+
validations:
28+
required: false
29+
- type: textarea
30+
id: expected_behavior
31+
attributes:
32+
label: Expected Behavior
33+
description: A clear and concise description of what you expected to happen.
34+
validations:
35+
required: true
36+
- type: textarea
37+
id: reproduction_steps
38+
attributes:
39+
label: Steps To Reproduce
40+
description: Describe steps to reproduce the behavior
41+
validations:
42+
required: false
43+
- type: textarea
44+
id: version
45+
attributes:
46+
label: Versions
47+
placeholder: v1.2.3 [, Kubernetes 1.21]
48+
validations:
49+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
blank_issues_enabled: false
2+
3+
contact_links:
4+
- name: ❓ Question
5+
url: https://github.com/vshn/provider-s3/discussions
6+
about: Ask or discuss with us, we're happy to help 🙋
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: 🚀 Feature request
2+
description: Suggest an idea for this project 💡
3+
labels:
4+
- enhancement
5+
6+
body:
7+
- type: textarea
8+
id: summary
9+
attributes:
10+
label: Summary
11+
value: |
12+
**As** role name\
13+
**I want** a feature or functionality\
14+
**So that** I get certain business value
15+
description: This user story helps us to quickly understand what this idea is about.
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: context
20+
attributes:
21+
label: Context
22+
description: Add more information here. You are completely free regarding form and length.
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: out_of_scope
27+
attributes:
28+
label: Out of Scope
29+
description: List aspects that are explicitly not part of this feature
30+
placeholder: |
31+
- ...
32+
- ...
33+
- ...
34+
validations:
35+
required: false
36+
- type: textarea
37+
id: links
38+
attributes:
39+
label: Further links
40+
description: URLs of relevant Git repositories, PRs, Issues, etc.
41+
placeholder: |
42+
- #567
43+
- https://kubernetes.io/docs/reference/
44+
validations:
45+
required: false
46+
- type: textarea
47+
id: acceptance_criteria
48+
attributes:
49+
label: Acceptance Criteria
50+
description: If you already have ideas what the detailed requirements are, please list them below in given-when-then expressions.
51+
placeholder: |
52+
- Given a precondition, when an action happens, then expect a result
53+
54+
```gherkin
55+
Given a precondition
56+
When an action happens
57+
Then expect a result
58+
```
59+
validations:
60+
required: false
61+
- type: textarea
62+
id: implementation_idea
63+
attributes:
64+
label: Implementation Ideas
65+
description: If applicable, shortly list possible implementation ideas
66+
validations:
67+
required: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Summary
2+
3+
* Short summary of what's included in the PR
4+
* Give special note to breaking changes
5+
6+
## Checklist
7+
8+
- [ ] Categorize the PR by setting a good title and adding one of the labels:
9+
`bug`, `enhancement`, `documentation`, `change`, `breaking`, `dependency`
10+
as they show up in the changelog
11+
- [ ] Update tests.
12+
- [ ] Link this PR to related issues.
13+
14+
<!--
15+
Remove items that do not apply. For completed items, change [ ] to [x].
16+
17+
NOTE: these things are not required to open a PR and can be done afterwards,
18+
while the PR is open.
19+
-->

.github/boilerplate.go.txt

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

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
go-build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
14+
15+
- name: Determine Go version from go.mod
16+
run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV
17+
18+
- uses: actions/setup-go@v4
19+
with:
20+
go-version: ${{ env.GO_VERSION }}
21+
22+
- uses: actions/cache@v3
23+
with:
24+
path: ~/go/pkg/mod
25+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26+
restore-keys: |
27+
${{ runner.os }}-go-
28+
29+
- name: Run build
30+
run: make build -e IMG_TAG=${GITHUB_REF##*/}

.github/workflows/cruft-update.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# /.github/workflows/cruft-update.yml
2+
name: Update repository with Cruft
3+
permissions:
4+
contents: write
5+
pull-requests: write
6+
actions: write
7+
on:
8+
schedule:
9+
- cron: "0 * * * *" # Once per hour
10+
workflow_dispatch: {}
11+
12+
jobs:
13+
update:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: true
17+
matrix:
18+
include:
19+
- add-paths: .
20+
body: Use this to merge the changes to this repository.
21+
branch: cruft/update
22+
commit-message: "chore: accept new Cruft update"
23+
title: New updates detected with Cruft
24+
- add-paths: .cruft.json
25+
body: Use this to reject the changes in this repository.
26+
branch: cruft/reject
27+
commit-message: "chore: reject new Cruft update"
28+
title: Reject new updates detected with Cruft
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
token: ${{ secrets.COMPONENT_ACCESS_TOKEN }}
33+
34+
- uses: actions/setup-python@v5
35+
with:
36+
python-version: "3.10"
37+
38+
- name: Install Cruft
39+
run: pip3 install cruft
40+
41+
- name: Check if update is available
42+
continue-on-error: false
43+
id: check
44+
run: |
45+
CHANGES=0
46+
if [ -f .cruft.json ]; then
47+
if ! cruft check; then
48+
CHANGES=1
49+
fi
50+
else
51+
echo "No .cruft.json file"
52+
fi
53+
54+
echo "has_changes=$CHANGES" >> "$GITHUB_OUTPUT"
55+
56+
- name: Run update if available
57+
if: steps.check.outputs.has_changes == '1'
58+
run: |
59+
git config --global user.email "githubbot@vshn.ch"
60+
git config --global user.name "GitHubBot"
61+
62+
cruft update --skip-apply-ask --refresh-private-variables
63+
git restore --staged .
64+
65+
- name: Create pull request
66+
if: steps.check.outputs.has_changes == '1'
67+
uses: peter-evans/create-pull-request@v6
68+
with:
69+
token: ${{ secrets.COMPONENT_ACCESS_TOKEN }}
70+
add-paths: ${{ matrix.add-paths }}
71+
commit-message: ${{ matrix.commit-message }}
72+
branch: ${{ matrix.branch }}
73+
delete-branch: true
74+
title: ${{ matrix.title }}
75+
labels: dependency
76+
body: |
77+
This is an autogenerated PR. ${{ matrix.body }}
78+
79+
[Cruft](https://cruft.github.io/cruft/) has detected updates from the Cookiecutter repository.

0 commit comments

Comments
 (0)