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

use external CCM for GCE #347

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions pkg/cloudprovider/cloudprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,11 @@ func GetCloudConfig(pconfig providerconfigtypes.Config, kubeletVersion string) (

func KubeletCloudProviderConfig(cloudProvider providerconfigtypes.CloudProvider, external bool) (inTreeCCM bool, outOfTree bool, err error) {
switch osmv1alpha1.CloudProvider(cloudProvider) {
case osmv1alpha1.CloudProviderAWS, osmv1alpha1.CloudProviderAzure, osmv1alpha1.CloudProviderVsphere:
if external {
return false, true, nil
}

return true, false, nil

case osmv1alpha1.CloudProviderGoogle:
return true, false, nil
case osmv1alpha1.CloudProviderAWS,
osmv1alpha1.CloudProviderAzure,
osmv1alpha1.CloudProviderGoogle,
osmv1alpha1.CloudProviderVsphere:
return !external, external, nil

default:
return false, external, nil
Expand Down
Loading