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(local-k8s): ensure correct nginx status when getting env status #6696

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Dec 9, 2024

What this PR does / why we need it:

We use the clusterType config field to determine the status of the nginx ingress controller when applicable for the local-kubernetes provider.

Before this fix however, we'd set the clusterType on the provider config (if needed) in the prepareEnvironment handler and not the getEnvironmentStatus handler.

This basically resulted in the getEnvironmentStatus handler always returning that nginx wasn't ready, then the clusterType would be set in the prepareEnvironment and the status checked again, this time correctly.

Now we "correctly" set the clusterType in the getEnvironmentStatus (arguably it should be set in the configureProvider handler but that would be a bigger refactor and I believe this is a pattern we use in other places as well).

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

We use the `clusterType` config field to determine
the status of the nginx ingress controller when applicable for the
`local-kubernetes` provider.

Before this fix however, we'd set the `clusterType` on the provider
config (if needed) in the `prepareEnvironment` handler and not the
`getEnvironmentStatus` handler.

This basically resulted in the `getEnvironmentStatus` handler always
returning that nginx wasn't ready, then the `clusterType` would be
set in the `prepareEnvironment` and the status checked again, this time
correctly.
@eysi09 eysi09 marked this pull request as ready for review December 10, 2024 09:29
@eysi09 eysi09 requested review from vvagaytsev and thsig December 10, 2024 09:29
@eysi09 eysi09 enabled auto-merge December 10, 2024 09:30
@eysi09 eysi09 added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 3c65e49 Dec 10, 2024
40 checks passed
@eysi09 eysi09 deleted the ensure-cluster-type-on-local-k8s branch December 10, 2024 10:44
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

Successfully merging this pull request may close these issues.

2 participants