Skip to content

Conversation

@ryanzhang-oss
Copy link
Contributor

Description of your changes

Fix the issue that clusterProfile's CAData is not populated. No test can be easily added as the member agent use incluster usually which does not have CAData populated. This only happens if somehow a kubeConfig env is set for a controller.

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

Signed-off-by: Ryan Zhang <[email protected]>
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/propertyprovider/azure/provider.go 60.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

} else {
// throw an alert
_ = controller.NewUnexpectedBehaviorError(fmt.Errorf("cluster certificate authority data not found in member cluster %s status", mc.Name))
cp.Status.AccessProviders[0].Cluster.InsecureSkipTLSVerify = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we want to remove this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, actually there was a comment from @michaelawyu on the previous PR. It's better to play safe and not assume that we should use insecure mode since this is unexpected.

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