Skip to content

circular dependency between writeResponse & writeAdmissionResponse #1829

@henrysecond1

Description

@henrysecond1

Environment

  • k8s version: v1.19.9 (on-prem)
  • controller-runvime version: v0.8.2

Problem

I'm not sure when it actually happens, but we suffered from a very large stack trace log when admission errors occur.
When we investigate the log, we saw the two functions (writeResponse and writeAdmissionResponse) are repeatedly calling each other.

Could you tell me any suggestions to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions