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

Bug 2033489: Use a list of platforms where config sync is required #158

Merged
merged 1 commit into from
Dec 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions pkg/controllers/cloud_config_sync_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,14 @@ func (r *CloudConfigReconciler) isCloudConfigSyncNeeded(platformStatus *configv1
return false, fmt.Errorf("platformStatus is required")
}
switch platformStatus.Type {
case configv1.AWSPlatformType, configv1.BareMetalPlatformType: // aws ccm does not use cloud-config at the moment
return false, nil
default:
case configv1.AzurePlatformType,
configv1.GCPPlatformType,
configv1.VSpherePlatformType,
configv1.AlibabaCloudPlatformType,
configv1.IBMCloudPlatformType:
return true, nil
default:
return false, nil
}
}

Expand Down