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

Add CAPI status/conditions to deployment status #230

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

kylewuolle
Copy link
Contributor

Resolves #219. This PR adds a new function that fetches the CAPI status / conditions of the cluster and places them in the deployment status/conditions. To ensure the conditions are updated the controller now requeues until the CAPI cluster conditions are all true.

internal/controller/deployment_controller.go Outdated Show resolved Hide resolved
internal/controller/deployment_controller.go Outdated Show resolved Hide resolved
internal/controller/deployment_controller.go Outdated Show resolved Hide resolved
internal/controller/deployment_controller.go Outdated Show resolved Hide resolved
internal/controller/deployment_controller.go Outdated Show resolved Hide resolved
@kylewuolle kylewuolle force-pushed the capi-status branch 3 times, most recently from 2eadd5c to 0d5a594 Compare August 27, 2024 21:46
@squizzi squizzi requested a review from wahabmk August 27, 2024 23:25
config/dev/deployment.yaml Outdated Show resolved Hide resolved
internal/controller/deployment_controller.go Outdated Show resolved Hide resolved
internal/controller/deployment_controller.go Show resolved Hide resolved
@kylewuolle kylewuolle force-pushed the capi-status branch 2 times, most recently from 53f8648 to e95147a Compare August 28, 2024 20:41
@kylewuolle kylewuolle requested a review from squizzi August 28, 2024 20:42
@kylewuolle kylewuolle dismissed Kshatrix’s stale review August 28, 2024 20:42

I've made the changes but github doesn't detect this!

@kylewuolle kylewuolle requested a review from squizzi August 29, 2024 14:58
internal/controller/deployment_controller.go Outdated Show resolved Hide resolved
internal/controller/deployment_controller.go Outdated Show resolved Hide resolved
@kylewuolle kylewuolle requested a review from squizzi August 29, 2024 15:26
@kylewuolle kylewuolle dismissed squizzi’s stale review August 29, 2024 15:27

Github thinks the changes weren't made

@squizzi
Copy link

squizzi commented Aug 29, 2024

@kylewuolle just need to rebase to get rid of this merge commit: 0635d50 and it lgtm

cmd/main.go Outdated Show resolved Hide resolved
@kylewuolle kylewuolle merged commit 10cbff6 into Mirantis:main Aug 30, 2024
1 check passed
bnallapeta pushed a commit to bnallapeta/hmc that referenced this pull request Nov 15, 2024
Add CAPI status/conditions to deployment status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Update Deployment status based on CAPI objects condition
4 participants