Skip to content

containeranalysis: connection is not shared #5217

@thepwagner

Description

@thepwagner

Client

Grafeas

Go Environment

go version go1.17.5 darwin/arm64

Expected behavior

Documentation on containeranalysis.Client.GetGrafeasClient() states "Calling Close on either the grafeas or containeranalysis client will close the shared connection in both." source.

I expect calling close on either client to close the shared connection in both.

Actual behavior

containeranalysis.NewClient() initializes a connection pool, but it is not shared with grafeasclient source.
grafeas.NewClient() initializes an independent connection pool source.

Additional context

I think the comment should be removed, or the connection pool between these clients should be shared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: containeranalysisIssues related to the Container Analysis API.status: investigatingThe issue is under investigation, which is determined to be non-trivial.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions