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

fix: update status even without statefulset #5891

Conversation

simonpasquier
Copy link
Contributor

The controllers aren't able to create the statefulsets if the input spec contains invalid fields (like missing secret/configmap key references).

In this case, they should still update the object's status to reflect the issue to the end-users.

Description

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

Update the status subresource even when the statefulset doesn't exist.

@simonpasquier simonpasquier force-pushed the fix-empty-status-on-sts-creation-error branch 3 times, most recently from dfd9736 to a3a978c Compare September 5, 2023 12:39
The controllers aren't able to create the statefulsets if the input spec
contains invalid fields (like missing secret/configmap key references).

In this case, they should still update the object's status to reflect
the issue to the end-users.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier force-pushed the fix-empty-status-on-sts-creation-error branch from a3a978c to cd748b1 Compare September 5, 2023 13:51
@simonpasquier simonpasquier marked this pull request as ready for review September 5, 2023 14:19
@simonpasquier simonpasquier requested a review from a team as a code owner September 5, 2023 14:19
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

Good job :)

@simonpasquier simonpasquier merged commit 74505c3 into prometheus-operator:main Sep 7, 2023
17 checks passed
@simonpasquier simonpasquier deleted the fix-empty-status-on-sts-creation-error branch September 7, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants