feat(fed-hpa): add federated hpa controller #1074
Annotations
10 errors
lint:
pkg/controllers/federatedhpa/controller.go#L274
cyclomatic complexity 43 of func `(*FederatedHPAController).reconcile` is high (> 30) (gocyclo)
|
lint:
pkg/controllers/federatedhpa/util_test.go#L1
Missed header for check (goheader)
|
lint:
pkg/controllers/federatedhpa/util_test.go#L30
Error return value of `encoding/json.Marshal` is not checked: unsafe type `k8s.io/apimachinery/pkg/apis/meta/v1.Time` found (errchkjson)
|
lint:
pkg/controllers/sync/util_test.go#L44
Error return value of `encoding/json.Marshal` is not checked: unsafe type `k8s.io/apimachinery/pkg/apis/meta/v1.Time` found (errchkjson)
|
lint:
pkg/controllers/sync/util_test.go#L47
Error return value of `encoding/json.Marshal` is not checked: unsafe type `k8s.io/apimachinery/pkg/apis/meta/v1.Time` found (errchkjson)
|
lint:
pkg/controllers/federatedhpa/util_test.go#L15
import "github.com/kubewharf/kubeadmiral/pkg/apis/core/v1alpha1" imported without alias but must be with alias "fedcorev1a1" according to config (importas)
|
lint:
pkg/controllers/sync/util_test.go#L28
import "github.com/kubewharf/kubeadmiral/pkg/apis/core/v1alpha1" imported without alias but must be with alias "fedcorev1a1" according to config (importas)
|
lint:
pkg/controllers/federatedhpa/util_test.go#L30
ST1003: var hpaJson should be hpaJSON (stylecheck)
|
lint:
pkg/controllers/sync/util_test.go#L44
ST1003: var fedHPAObjectJson should be fedHPAObjectJSON (stylecheck)
|
lint:
pkg/controllers/sync/util_test.go#L47
ST1003: var notFedHPAObjectJson should be notFedHPAObjectJSON (stylecheck)
|