Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerConfig ¶
type ControllerConfig struct {
//nolint:stylecheck
// Request requeue time(seconds) in case the system still needs to be reconciled
RequeueTimeSeconds uint `env:"CONTROLLER_REQUEST_REQUEUE_SECONDS" envDefault:"5"`
}
Controller related configurations
type OperatorConfig ¶
type OperatorConfig struct {
State StateConfig
Controller ControllerConfig
// disable migration logic in the operator.
DisableMigration bool `env:"DISABLE_MIGRATION" envDefault:"false"`
}
Operator related configurations
func FromEnv ¶
func FromEnv() *OperatorConfig
type StateConfig ¶
type StateConfig struct {
NetworkOperatorResourceNamespace string `env:"POD_NAMESPACE" envDefault:"nvidia-network-operator"`
ManifestBaseDir string `env:"STATE_MANIFEST_BASE_DIR" envDefault:"./manifests"`
}
state related configurations
Click to show internal directories.
Click to hide internal directories.