Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure new resources are created with non-initial status #41

Open
dafe-corporate-sap opened this issue Feb 27, 2024 · 0 comments
Open
Assignees

Comments

@dafe-corporate-sap
Copy link

Currently, new CROs are created with an initial status. Only after the first reconciliation through
the controller, the status will be populated. In the timeframe between creation and first reconciliation, the initial status will make certain observers (such as kstatus) treat the object as 'ready', although it is by far not.

Solution: do some (meaningful) defaulting in the CRD itself; then K8s apiserver will ensure upon creation that the status is not initial. For example, by defaulting status.observedGeneration: -1, with something like

      status:
        default:
          observedGeneration: -1

in the CRD schema specification.

Issue moved from https://github.tools.sap/cs-devops/clustersecret-controller/issues/61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants