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

update observability to use masterHealth check #5300

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

bhpratt
Copy link
Contributor

@bhpratt bhpratt commented Apr 24, 2024

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes issue where observability is failing to install on a provisioning cluster. The observability plugin has a built-in check to see that masterHealth is normal. In edge cases with terraform and a provisioning cluster, the provider is attempting to install the plugin before the master is ready - this causes terraform to exit with an error.

Adding the check to masterHealth will give the master time to finish creating and then observability will be installed.

Summary of main changes:

  • update bluemix-go version to pull in new masterHealth field
  • change check to use masterHealth field for both VPC and Classic infra clusters
  • gofmt to fix pre-existing formatting issues fixed elsewhere

Output from acceptance testing:

$ make testacc TEST=./ibm/service/kubernetes TESTARGS='-run=TestAccIBMLogging_basic'
=== RUN   TestAccIBMLogging_basic
--- PASS: TestAccIBMLogging_basic (1094.05s)
PASS
ok      github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/kubernetes      1095.630s
...

I have also built the provider and tested locally w/classic and vpc clusters. It waits as expected until masterHealth is normal

@hkantare
Copy link
Collaborator

can the PR rebased on top of master

@bhpratt
Copy link
Contributor Author

bhpratt commented Apr 25, 2024

@hkantare done

@hkantare hkantare merged commit eb8067a into IBM-Cloud:master Apr 25, 2024
1 check passed
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