const apiserverService … var cfgScheme … var codecs … func init() { … } func init() { … } type TracingOptions … // NewTracingOptions creates a new instance of TracingOptions func NewTracingOptions() *TracingOptions { … } // AddFlags adds flags related to tracing to the specified FlagSet func (o *TracingOptions) AddFlags(fs *pflag.FlagSet) { … } // ApplyTo fills up Tracing config with options. func (o *TracingOptions) ApplyTo(es *egressselector.EgressSelector, c *server.Config) error { … } // Validate verifies flags passed to TracingOptions. func (o *TracingOptions) Validate() (errs []error) { … } // ReadTracingConfiguration reads the tracing configuration from a file func ReadTracingConfiguration(configFilePath string) (*tracingapi.TracingConfiguration, error) { … }