Documentation
¶
Index ¶
Constants ¶
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")
Variables ¶
View Source
var ( // ApplicationReSyncPeriod re-sync period to reconcile application ApplicationReSyncPeriod = time.Minute * 5 // ApplicationDefaultAutoRevision is whether policy-rendered spec changes cut a new // ApplicationRevision for apps without the policy.oam.dev/auto-revision annotation. ApplicationDefaultAutoRevision = false // ApplicationDefaultApplyPolicyUpdates is whether apps without the // policy.oam.dev/apply-policy-updates annotation adopt new policy versions. ApplicationDefaultApplyPolicyUpdates = false // ApplicationDefaultApplyDataChanges is whether apps without the // policy.oam.dev/apply-data-changes annotation take changed policy output. ApplicationDefaultApplyDataChanges = false // AllowNamespaceGlobalPolicies is whether global Application-scoped PolicyDefinitions outside // vela-system apply (to the Applications in their namespace). Off, global policies are // platform-wide only: they live in vela-system, and the webhook refuses new ones elsewhere. // On by default in 1.11 so a patch upgrade keeps namespace globals working. AllowNamespaceGlobalPolicies = true // AllowSkipGlobalPolicies is whether an Application may opt out of global policies with the // policy.oam.dev/skip-global annotation. Off, global policies are mandatory: the webhook // refuses adding the annotation and the controller ignores it. On by default in 1.11 so a patch // upgrade keeps the opt-out working. AllowSkipGlobalPolicies = true )
View Source
var ( // PerfEnabled identify whether to add performance log for controllers PerfEnabled = false )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.