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 phase field not updating #614

Merged
merged 4 commits into from
Mar 9, 2022
Merged

Conversation

gkrenn
Copy link
Contributor

@gkrenn gkrenn commented Mar 4, 2022

Description

The oneagent reconciler references the wrong daemonset and therefore never updates the phase field.

How can this be tested?

Deploy full stack monitoring and watch the phase field. => Should be "Running" after dynakube reconciliation.

Checklist

  • Unit tests have been updated/added
  • PR is labeled accordingly

@chrismuellner chrismuellner added bug Something isn't working oneagent Changes related to Oneagent labels Mar 7, 2022
src/controllers/dynakube/dynakube_controller_test.go Outdated Show resolved Hide resolved
src/controllers/dynakube/dynakube_controller_test.go Outdated Show resolved Hide resolved
src/api/v1beta1/properties.go Outdated Show resolved Hide resolved
@meik99
Copy link
Contributor

meik99 commented Mar 8, 2022

The phase field is updated initially while the deamonset is first deployed. However, if a oneagent pod is deleted after the phase has been set to running, it is not updated to read "Deploying" again. Is this expected behaviour?

@gkrenn
Copy link
Contributor Author

gkrenn commented Mar 8, 2022

It should reset the phase to "Deploying" as the phase is determined on every oneagent reconcile which happens on every dynakube reconcile.

The phase field in general is not implemented well, a more structured phase handling is done in the following PR: #609

@chrismuellner chrismuellner enabled auto-merge (squash) March 8, 2022 19:15
@chrismuellner chrismuellner merged commit 3b75dad into master Mar 9, 2022
@chrismuellner chrismuellner deleted the fix/phase_status_reset branch March 9, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working oneagent Changes related to Oneagent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants