type LeaderMigrationOptions … // DefaultLeaderMigrationOptions returns a LeaderMigrationOptions with default values. func DefaultLeaderMigrationOptions() *LeaderMigrationOptions { … } // AddFlags adds all flags related to leader migration to given flag set. func (o *LeaderMigrationOptions) AddFlags(fs *pflag.FlagSet) { … } // ApplyTo applies the options of leader migration to generic configuration. func (o *LeaderMigrationOptions) ApplyTo(cfg *config.GenericControllerManagerConfiguration) error { … }