mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 01:03:40 +00:00
d7c6c5461f
* Add auth_connector api resources - Add the go types in `operator/apis` - Add the OIDCConnector, SAMLConnector and GithubConnector resources to `protoc-gen-crd` - Add `wrappers.StringValues` support to `protoc-gen-crd` - Update crdgen test fixtures * Regenerate CRD manifests * Introduce the teleport reconciler abstraction * operator: Add auth_connector resources support - Reconcile OIDC, SAML and Github authconnectors - Make the oidc, saml and github interfaces implement `ResourceWithOrigin` * operator: Add standard tests for auth connectors This Commit introduces a set of default tests that can be reused for each controller based on `TeleportResourceReconciler`. * Bump CRD manifests to go 1.19 * operator: make Makefile OSX friendly * Add newKubeResource tests and fix godocs
64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
issues:
|
|
exclude-rules:
|
|
- linters:
|
|
- gosimple
|
|
text: "S1002: should omit comparison to bool constant"
|
|
- linters:
|
|
- revive
|
|
text: "exported: exported const"
|
|
# TODO(hugoShaka): Remove once https://github.com/dominikh/go-tools/issues/1294 is fixed
|
|
- linters:
|
|
- unused
|
|
path: 'operator/controllers/resources/(.+)_controller_test\.go'
|
|
# TODO(codingllama): Remove ignore after the new golangci-lint image lands.
|
|
# For some reason this particular files causes problems between different
|
|
# goimports versions.
|
|
- path: lib/services/role_test.go
|
|
linters:
|
|
- goimports
|
|
exclude-use-default: true
|
|
max-same-issues: 0
|
|
max-issues-per-linter: 0
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- depguard
|
|
- gci
|
|
- goimports
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unused
|
|
|
|
linters-settings:
|
|
depguard:
|
|
list-type: denylist
|
|
include-go-root: true # check against stdlib
|
|
packages-with-error-message:
|
|
- io/ioutil: 'use "io" or "os" packages instead'
|
|
- github.com/golang/protobuf: 'use "google.golang.org/protobuf"'
|
|
- github.com/siddontang/go-log/log: 'use "github.com/sirupsen/logrus" instead'
|
|
- go.uber.org/atomic: 'use "sync/atomic" instead'
|
|
misspell:
|
|
locale: US
|
|
gci:
|
|
sections:
|
|
- standard # Standard section: captures all standard packages.
|
|
- default # Default section: contains all imports that could not be matched to another section type.
|
|
- prefix(github.com/gravitational/teleport) # Custom section: groups all imports with the specified Prefix.
|
|
skip-generated: true # Skip generated files.
|
|
custom-order: true # Required for "sections" to take effect.
|
|
output:
|
|
uniq-by-line: false
|
|
|
|
run:
|
|
skip-dirs-use-default: false
|
|
timeout: 5m
|
|
go: '1.18'
|