Skip to content

Issue when mutating native sidecar init containers #53

Open
@hhollenstain

Description

@hhollenstain

When mutating a init container that is native side car we run into a few issues. It comes from the fact the patch is removing the restartPolicy.

  {
    "op": "remove",
    "path": "/spec/initContainers/0/restartPolicy"
  },

This causes the replicaset to fail

spec.initContainers[1].lifecycle: Forbidden: may not be set for init containers without restartPolicy=Always, spec.initContainers[1].livenessProbe: Forbidden: may not be set for init containers without restartPolicy=Always, spec.initContainers[1].startupProbe: Forbidden: may not be set for init containers without restartPolicy=Always

Digging into this appears we need to update the core/v1 /update to go 1.23.

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