Skip to content

Add Option to Patch Status Subresource Field with Collection #1029

@neevnuv

Description

@neevnuv
SUMMARY

Feature Request -
Add an option to one of the collection to allow us to run a command to patch the status field of a resource. Using the CLI it is possible by running: kubectl patch MyCrd myresource --type=merge --subresource status --patch '{"status": {...}}'.

At this moment we use the builtin command module to do so.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

kubernetes.core.k8s_json_patch

ADDITIONAL INFORMATION

This feature would allow patching the status field.

Could be something like

- name: Apply multiple patch operations to an existing Pod
  kubernetes.core.k8s_json_patch:
    kind: Pod
    namespace: testing
    name: mypod
    type: merge
    subresource: status
    subresource_patch: 
      status:
        conditions:
        - type: Ready
          status: "True"
          reason: ControllerReconciled
          message: "Resource is ready."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions