Skip to content

Question on initializer logic #6

@gotwarlost

Description

@gotwarlost

I'm trying to write an unrelated initializer for pods and looked to your really clean code to figure out the bits that need to be handled. Fair warning: I'm pretty new to the k8s API so my question may be nonsensical.

Given that the processing in the envoy initializer happens only when that initializer is the first element in the pending list, and that you are only using AddFunc to fixup the deployment, what would happen if there was a different initializer that needed to be run before the envoy one?

Seems to me that UpdateFunc should also be set to update the deployment for these cases?
What am I missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions