cloudfoundry-incubator/eirini

View on GitHub
k8s/webhook/instance_index_injector.go

Summary

Maintainability
A
35 mins
Test Coverage
A
90%

Method InstanceIndexEnvInjector.Handle has 5 return statements (exceeds 4 allowed).
Open

func (i *InstanceIndexEnvInjector) Handle(ctx context.Context, req admission.Request) admission.Response {
    logger := i.logger.Session("handle-webhook-request")

    if req.Operation != admissionv1.Create {
        return admission.Allowed("pod was already created")
Severity: Major
Found in k8s/webhook/instance_index_injector.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status