Skip to content

Commit 0487c80

Browse files
authored
Merge pull request #622 from 27149chen/update-featuregate-name
featureGate: IgnoreLeaseSync => IgnoreSyncLease
2 parents 392400d + aef84ab commit 0487c80

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/synchromanager/clustersynchro/resource_negotiator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (negotiator *ResourceNegotiator) NegotiateSyncResources(syncResources []clu
8888
for _, resource := range groupResources.Resources {
8989
syncGR := schema.GroupResource{Group: groupResources.Group, Resource: resource}
9090

91-
if clusterpediafeature.FeatureGate.Enabled(features.IgnoreLeaseSync) {
91+
if clusterpediafeature.FeatureGate.Enabled(features.IgnoreSyncLease) {
9292
// skip leases.coordination.k8s.io
9393
if syncGR.String() == "leases.coordination.k8s.io" {
9494
continue

pkg/synchromanager/features/features.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ const (
6262
// alpha: v0.8.0
6363
StreamHandlePaginatedListForResourceSync featuregate.Feature = "StreamHandlePaginatedListForResourceSync"
6464

65-
// IgnoreLeaseSync is a feature gate for the ClusterSynchro to skip syncing leases.coordination.k8s.io,
65+
// IgnoreSyncLease is a feature gate for the ClusterSynchro to skip syncing leases.coordination.k8s.io,
6666
// if you enable this feature, these resources will not be synced no matter what `syncResources` are defined.
6767
//
6868
// owner: @27149chen
6969
// alpha: v0.8.0
70-
IgnoreLeaseSync featuregate.Feature = "IgnoreLeaseSync"
70+
IgnoreSyncLease featuregate.Feature = "IgnoreSyncLease"
7171
)
7272

7373
func init() {
@@ -85,5 +85,5 @@ var defaultClusterSynchroManagerFeatureGates = map[featuregate.Feature]featurega
8585

8686
ForcePaginatedListForResourceSync: {Default: false, PreRelease: featuregate.Alpha},
8787
StreamHandlePaginatedListForResourceSync: {Default: false, PreRelease: featuregate.Alpha},
88-
IgnoreLeaseSync: {Default: false, PreRelease: featuregate.Alpha},
88+
IgnoreSyncLease: {Default: false, PreRelease: featuregate.Alpha},
8989
}

0 commit comments

Comments
 (0)