Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrLocatingWorkload = "failed to locate the workload"
ErrLocatingService = "failed to locate any the services"
ErrCreatingService = "failed to create the services"
ErrUpdateStatus = "failed to update status"
)
error msg for common usage
View Source
const (
// LogInfo level is for most info logs, this is the default
// One should just call Info directly.
LogInfo klog.Level = iota
// LogDebug is for more verbose logs
LogDebug
// LogDebugWithContent is recommended if one wants to log with the content of the object,
// ie. http body, json/yaml file content
LogDebugWithContent
// LogTrace is the most verbose log level, don't add anything after this
LogTrace = 100
)
klog has multiple levels, you can set the log levels by klog.V() Basic examples:
klog.V(1).Info("Prepare to repel boarders")
klog.V(2).ErrorS(err, "Initialization failed")
View Source
const (
// RollingComponentsSep is the separator that divide the names in the newComponent annotation
RollingComponentsSep = ","
// DisableAllCaps disable all capabilities
DisableAllCaps = "all"
// DisableNoneCaps disable none of capabilities
DisableNoneCaps = ""
// ManualScalerTraitControllerName is the controller name of manual scaler trait
ManualScalerTraitControllerName = "manualscalertrait"
// ContainerizedWorkloadControllerName is the controller name of containerized workload
ContainerizedWorkloadControllerName = "containerizedwokrload"
// HealthScopeControllerName is the controller name of healthScope controller
HealthScopeControllerName = "healthscope"
// RolloutControllerName is the controller name of rollout controller
RolloutControllerName = "rollout"
// EnvBindingControllerName is the controller name of envbinding
EnvBindingControllerName = "envbinding"
)
Variables ¶
View Source
var (
// PerfEnabled identify whether to add performance log for controllers
PerfEnabled = false
)
Functions ¶
func NewReconcileContext ¶ added in v1.1.0
func NewReconcileContext(ctx context.Context) (context.Context, context.CancelFunc)
NewReconcileContext create context with default timeout (60s)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.