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

Set default observedGeneration to -1 #189

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

tomhuang12
Copy link
Contributor

This sets the status.observedGeneration field to -1 by default. This is to address issue outlined by fluxcd/flux2#2007.

Signed-off-by: Tom Huang [email protected]

@tomhuang12
Copy link
Contributor Author

/assign makkes

Copy link
Member

@makkes makkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tomhuang12

@hiddeco hiddeco force-pushed the default-observed-generation branch from 614df3c to 637f83c Compare November 22, 2021 12:41
This ensures tools like `kstatus` do not consider the resource to be in
a `Ready` state premataturely due to `generation` and
`observedGeneration` equaling to `0` for a short period of time.

Signed-off-by: Tom Huang <[email protected]>
@hiddeco hiddeco force-pushed the default-observed-generation branch from 637f83c to 293bf80 Compare November 22, 2021 12:42
@hiddeco hiddeco added the enhancement New feature or request label Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants