Skip to content

Commit caf7d18

Browse files
committed
add gardener-extension-traefik
0 parents  commit caf7d18

132 files changed

Lines changed: 28622 additions & 0 deletions

File tree

Some content is hidden

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

.dockerignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file
2+
# Ignore unnecessary files to optimize Docker build context
3+
4+
# Development and local files
5+
bin/
6+
.git/
7+
.github/
8+
dev/
9+
10+
# Test files
11+
**/*_test.go
12+
**/suite_test.go
13+
test/
14+
15+
# Documentation
16+
docs/
17+
*.md
18+
!README.md
19+
20+
# Examples and development setup
21+
examples/
22+
23+
# Build artifacts and tools
24+
internal/tools/
25+
coverage.txt
26+
27+
# Configuration files
28+
.golangci.yaml
29+
renovate.json
30+
api-ref-docs.yaml
31+
.dockerignore
32+
Dockerfile
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug
4+
labels: kind/bug
5+
6+
---
7+
8+
**What happened**:
9+
10+
**What you expected to happen**:
11+
12+
**How to reproduce it (as minimally and precisely as possible)**:
13+
14+
**Anything else we need to know**:
15+
16+
**Environment**:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Enhancement Request
3+
about: Suggest an enhancement
4+
labels: kind/enhancement
5+
6+
---
7+
8+
**What would you like to be added**:
9+
10+
**Why is this needed**:

.github/pull_request_template.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
**What this PR does / why we need it**:
2+
3+
**Which issue(s) this PR fixes**:
4+
Fixes #
5+
6+
**Special notes for your reviewer**:
7+
8+
**Release note**:
9+
<!-- Write your release note:
10+
1. Enter your release note in the below block.
11+
2. If no release note is required, just write "NONE" within the block.
12+
13+
Format of block header: <category> <target_group>
14+
Possible values:
15+
- category: breaking|feature|bugfix|doc|other
16+
- target_group: user|operator|developer|dependency
17+
-->
18+
```feature user
19+
20+
```
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: build-and-test
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'renovate/**'
6+
- 'dependabot/**'
7+
8+
pull_request:
9+
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
14+
jobs:
15+
run-tests:
16+
strategy:
17+
matrix:
18+
go-version: [1.25.x]
19+
os: [ubuntu-latest]
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- uses: actions/checkout@v6
23+
- uses: actions/setup-go@v6
24+
with:
25+
go-version: ${{ matrix.go-version }}
26+
check-latest: true
27+
- name: Check Go module dependencies
28+
run: |
29+
set -eu
30+
make gotidy
31+
git diff -s --exit-code || ( echo 'Go module dependencies are of date, please run "make gotidy"' && exit 1 )
32+
- name: Check API reference docs
33+
run: |
34+
set -eu
35+
make api-ref-docs
36+
git diff -s --exit-code || ( echo 'Generated API reference docs are of date, please run "make api-ref-docs"' && exit 1 )
37+
- name: Check generate
38+
run: |
39+
set -eu
40+
make generate
41+
git diff -s --exit-code || ( echo 'Generated files are of date, please run "make generate"' && exit 1 )
42+
- name: Check license headers
43+
run: |
44+
set -eu
45+
make checklicense
46+
- name: Check for vulnerabilities
47+
run: |
48+
set -eu
49+
make govulncheck
50+
- name: Run linter
51+
run: |
52+
set -eu
53+
make goimports-reviser lint
54+
- name: Run tests
55+
run: |
56+
set -eu
57+
make test
58+
- name: Build binary
59+
run: |
60+
set -eu
61+
make build
62+
- name: Set up Docker Buildx
63+
uses: docker/setup-buildx-action@v3
64+
- name: Build OCI image
65+
uses: docker/build-push-action@v6
66+
with:
67+
push: false
68+
tags: gardener-extension-traefik:latest
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Check Example Resources
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'renovate/**'
6+
- 'dependabot/**'
7+
paths:
8+
- 'examples/**'
9+
10+
pull_request:
11+
paths:
12+
- 'examples/**'
13+
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
18+
jobs:
19+
check-examples:
20+
strategy:
21+
matrix:
22+
go-version: [1.25.x]
23+
os: [ubuntu-latest]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v6
27+
- uses: actions/setup-go@v6
28+
with:
29+
go-version: ${{ matrix.go-version }}
30+
check-latest: true
31+
- name: Check Example Resources
32+
run: |
33+
set -eu
34+
make check-examples

.github/workflows/check-helm.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Check Helm Templates
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'renovate/**'
6+
- 'dependabot/**'
7+
paths:
8+
- 'charts/**'
9+
10+
pull_request:
11+
paths:
12+
- 'charts/**'
13+
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
18+
jobs:
19+
check-helm:
20+
strategy:
21+
matrix:
22+
go-version: [1.25.x]
23+
os: [ubuntu-latest]
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v6
27+
- uses: actions/setup-go@v6
28+
with:
29+
go-version: ${{ matrix.go-version }}
30+
check-latest: true
31+
- name: Check Helm Templates
32+
run: |
33+
set -eu
34+
make check-helm

.github/workflows/release.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
next-version:
6+
type: choice
7+
options:
8+
- bump-minor
9+
- bump-patch
10+
11+
jobs:
12+
build:
13+
uses: ./.github/workflows/build-and-test.yaml
14+
permissions:
15+
contents: write
16+
id-token: write
17+
packages: write
18+
with:
19+
mode: release
20+
21+
release-to-github-and-bump:
22+
uses: gardener/cc-utils/.github/workflows/release.yaml@master
23+
needs:
24+
- build
25+
secrets: inherit
26+
permissions:
27+
contents: write
28+
id-token: write
29+
packages: write
30+
with:
31+
release-commit-target: branch
32+
next-version: ${{ inputs.next-version }}
33+
next-version-callback-action-path:
34+
slack-channel-id: C9CEBQPGE # #sap-tech-gardener

.github/workflows/shellcheck.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Shellcheck
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'renovate/**'
7+
- 'dependabot/**'
8+
9+
pull_request:
10+
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
15+
jobs:
16+
shellcheck:
17+
name: Shellcheck
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v6
21+
- name: Run ShellCheck
22+
uses: ludeeus/action-shellcheck@2.0.0

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Binaries for programs and plugins
2+
*.exe
3+
*.exe~
4+
*.dll
5+
*.so
6+
*.dylib
7+
8+
# Test binary, built with `go test -c`
9+
*.test
10+
11+
# Output of the go coverage tool, specifically when used with LiteIDE
12+
*.out
13+
14+
# Dependency directories (remove the comment below to include it)
15+
vendor/
16+
bin/
17+
18+
# Go workspace file
19+
go.work
20+
go.work.sum
21+
22+
# Editor backup files
23+
*~
24+
*.swp
25+
26+
# direnv
27+
.envrc
28+
29+
# Test coverage files
30+
coverage.txt

0 commit comments

Comments
 (0)