Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { OsirisNamespace string `envconfig:"OSIRIS_NAMESPACE" required:"true"` ActivatorPodLabelSelectorKey string `envconfig:"ACTIVATOR_POD_LABEL_SELECTOR_KEY" required:"true"` ActivatorPodLabelSelectorValue string `envconfig:"ACTIVATOR_POD_LABEL_SELECTOR_VALUE" required:"true"` ResyncInterval time.Duration `envconfig:"INFORMERS_RESYNC_INTERVAL" required:"true"` }
Config represents configuration options for the Osiris endpoints controller nolint: lll
func GetConfigFromEnvironment ¶
GetConfigFromEnvironment returns configuration derived from environment variables
func NewConfigWithDefaults ¶
func NewConfigWithDefaults() Config
NewConfigWithDefaults returns a Config object with default values already applied. Callers are then free to set custom values for the remaining fields and/or override default values.
type Controller ¶
type Controller interface { // Run causes the controller to manage endpoints resources corresponding to // selector-less, Osiris-enabled services. This function will not return // until the context it has been passed expires or is canceled. Run(ctx context.Context) }
Controller is an interface for a component that can take over management of endpoints resources corresponding to selector-less, Osiris-enabled services
func NewController ¶
func NewController( config Config, kubeClient kubernetes.Interface, ) Controller
NewController returns a new component that can take over management of endpoints resources corresponding to selector-less, Osiris-enabled services