mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
This adds a new resource which deploys a Kubernetes API server proxy that can be used to access the API server without tokens through Netbird. Part of #274 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added ClusterProxy custom resource for cluster API proxying capabilities * **Documentation** * Added ClusterProxy API reference documentation with schema details * **Examples** * Added example ClusterProxy configuration and RBAC setup for cluster proxy targets <!-- review_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/netbirdio/kubernetes-operator/pull/279?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
114 lines
3.1 KiB
YAML
114 lines
3.1 KiB
YAML
version: "2"
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- copyloopvar
|
|
- dupl
|
|
- errcheck
|
|
- ginkgolinter
|
|
- gocyclo
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- nakedret
|
|
- prealloc
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- importas
|
|
- goheader
|
|
settings:
|
|
revive:
|
|
rules:
|
|
- name: comment-spacings
|
|
staticcheck:
|
|
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-QF1008", "-SA1019"]
|
|
importas:
|
|
alias:
|
|
- pkg: github.com/netbirdio/netbird/shared/management/client/rest
|
|
alias: netbird
|
|
|
|
- pkg: github.com/netbirdio/kubernetes-operator/internal/webhook/v1
|
|
alias: nbwebhookv1
|
|
- pkg: github.com/netbirdio/kubernetes-operator/api/v1
|
|
alias: nbv1
|
|
- pkg: github.com/netbirdio/kubernetes-operator/api/v1alpha1
|
|
alias: nbv1alpha1
|
|
- pkg: github.com/netbirdio/kubernetes-operator/pkg/applyconfigurations/api/v1alpha1
|
|
alias: nbv1alpha1ac
|
|
|
|
- pkg: sigs.k8s.io/controller-runtime
|
|
alias: ctrl
|
|
- pkg: sigs.k8s.io/controller-runtime/pkg/log
|
|
alias: logf
|
|
- pkg: k8s.io/apimachinery/pkg/api/errors
|
|
alias: kerrors
|
|
- pkg: k8s.io/client-go/kubernetes/scheme
|
|
alias: clientgoscheme
|
|
- pkg: k8s.io/apimachinery/pkg/runtime
|
|
alias: kruntime
|
|
- pkg: k8s.io/apimachinery/pkg/util/runtime
|
|
alias: kruntimeutil
|
|
- pkg: sigs.k8s.io/controller-runtime/pkg/metrics/server
|
|
alias: metricsserver
|
|
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
|
|
alias: metav1
|
|
- pkg: k8s.io/api/core/v1
|
|
alias: corev1
|
|
- pkg: k8s.io/api/rbac/v1
|
|
alias: rbacv1
|
|
- pkg: k8s.io/api/apps/v1
|
|
alias: appsv1
|
|
- pkg: k8s.io/api/admission/v1
|
|
alias: admissionv1
|
|
- pkg: k8s.io/api/policy/v1
|
|
alias: policyv1
|
|
- pkg: k8s.io/client-go/applyconfigurations/meta/v1
|
|
alias: metav1ac
|
|
- pkg: k8s.io/client-go/applyconfigurations/core/v1
|
|
alias: corev1ac
|
|
- pkg: k8s.io/client-go/applyconfigurations/rbac/v1
|
|
alias: rbacv1ac
|
|
- pkg: k8s.io/client-go/applyconfigurations/apps/v1
|
|
alias: appsv1ac
|
|
- pkg: k8s.io/client-go/applyconfigurations/policy/v1
|
|
alias: policyv1ac
|
|
|
|
- pkg: sigs.k8s.io/gateway-api/apis/v1
|
|
alias: gwv1
|
|
- pkg: sigs.k8s.io/gateway-api/apis/v1alpha2
|
|
alias: gwv1alpha2
|
|
no-extra-aliases: true
|
|
goheader:
|
|
template: |-
|
|
SPDX-License-Identifier: BSD-3-Clause
|
|
exclusions:
|
|
generated: lax
|
|
rules:
|
|
- linters:
|
|
- dupl
|
|
path: internal/*
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
settings:
|
|
gci:
|
|
sections:
|
|
- blank
|
|
- standard
|
|
- prefix(golang.org/x)
|
|
- default
|
|
- prefix(github.com/netbirdio)
|
|
- localmodule
|
|
no-inline-comments: true
|
|
no-prefix-comments: true
|
|
custom-order: true
|
|
|