pomerium/pomerium-operator

View on GitHub
internal/controller/policy.go

Summary

Maintainability
A
0 mins
Test Coverage
A
90%

Method Reconciler.policyFromObj has 5 return statements (exceeds 4 allowed).
Wontfix

func (r *Reconciler) policyFromObj(obj runtime.Object) ([]pomeriumconfig.Policy, error) {

    metaObj, ok := obj.(metav1.Object)
    if !ok {
        return nil, fmt.Errorf("passed an object which is not of type meta/v1/Object")
Severity: Major
Found in internal/controller/policy.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status