Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
e2e
.*
bin
dist
tmp
coverage*
*.log
os
example
config
docs
hack
CONTRIBUTING
Dockerfile
LICENSE
README.md
Taskfile.yaml
19 changes: 7 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,15 @@ repos:
language: system
pass_filenames: false

- id: gofmt
name: gofmt
entry: gofmt -w
language: system
types: [go]

- id: golangci-lint
name: golangci-lint
entry: golangci-lint run ./...
- id: dev-lint
name: task dev:lint
entry: task dev:lint
language: system
pass_filenames: false

- id: go-test
name: go test
entry: go test ./...
- id: dev-test
name: task dev:test
entry: task dev:test
language: system
pass_filenames: false

7 changes: 6 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,17 @@ tasks:
cmds:
- golangci-lint run ./...

dev:e2e:
desc: "Run E2E tests. Invoke with extra flags: `task dev:e2e -- -args --no-cleanup --stage=run`"
cmds:
- go test ./e2e -v -count=1 -p 1 {{.CLI_ARGS}}

dev:codegen:
desc: "Run all code generation scripts (client + CRDs) inside hack/"
cmds:
- addlicense -c "Patryk Rostkowski" -l apache -y 2025 .
- bash hack/update-codegen.sh
- bash hack/update-crds.sh
- addlicense -c "Patryk Rostkowski" -l apache -y 2025 .

dev:install:
desc: "Install controlplane CRDs into current kube context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2025 Patryk Rostkowski
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down
Loading