Skip to content

Enable the status subresource for k8s 1.12 #809

Closed
@hasbro17

Description

@hasbro17

Feature Request

The status subresource for CRDs is beta and enabled by default for k8s 1.12 clusters
https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#subresources

Once the SDK updates to k8s 1.12 it should support enabling the status subresource for CRDs by default when generating the CRD yaml manifest.
See for more details: https://blog.openshift.com/kubernetes-custom-resources-grow-up-in-v1-10/

Along with that the examples using the client should be updated to use the status client c.Status().Update() to only update the status when needed.
https://github.com/kubernetes-sigs/controller-runtime/blob/master/pkg/client/interfaces.go#L88

With the status subresource enabled controllers can update the status, and ignore any events that don't have changes to metadata.Generation (only updates when spec changes) by filtering them out via predicates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions