Skip to content

Webhook fails when metadata.annotations is missing #71

Description

@jclab-joseph

When a Pod has no metadata.annotations, fails because /metadata/annotations does not exist, causing ReplicaSet Pod creation to fail with:

Warning FailedCreate 2s (x15 over 84s) replicaset-controller Error creating: Internal error occurred: add operation does not apply: doc is missing path: "/metadata/annotations/original-configuration": missing value

related code:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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