Documentation ¶
Index ¶
- Variables
- func CreateOrUpdate(ctx context.Context, c client.Client, obj client.Object) error
- func NewControllerRuntimeLogger(level zapcore.Level) logr.Logger
- func NewK8sClient(options ClientOptions) (client.Client, error)
- func NewRestConfig(options ClientOptions) (*rest.Config, error)
- type ClientOptions
- type RequeueOp
Constants ¶
This section is empty.
Variables ¶
View Source
var EncoderConfig = zapcore.EncoderConfig{ MessageKey: "M", LevelKey: "L", TimeKey: "T", NameKey: "N", CallerKey: "C", FunctionKey: "", StacktraceKey: "S", ConsoleSeparator: " ", EncodeLevel: zapcore.CapitalColorLevelEncoder, EncodeCaller: func(ec zapcore.EntryCaller, enc zapcore.PrimitiveArrayEncoder) { enc.AppendString(chalk.Dim.TextStyle(ec.TrimmedPath())) }, EncodeName: func(name string, enc zapcore.PrimitiveArrayEncoder) { enc.AppendString(chalk.Dim.TextStyle( strings.Replace(name, "controller-runtime.manager.", "", 1))) }, EncodeTime: func(t time.Time, enc zapcore.PrimitiveArrayEncoder) { enc.AppendString(t.Format("[15:04:05]")) }, EncodeDuration: zapcore.SecondsDurationEncoder, }
Functions ¶
func CreateOrUpdate ¶
func NewControllerRuntimeLogger ¶ added in v0.9.2
func NewK8sClient ¶
func NewK8sClient(options ClientOptions) (client.Client, error)
func NewRestConfig ¶
func NewRestConfig(options ClientOptions) (*rest.Config, error)
Types ¶
type ClientOptions ¶
type RequeueOp ¶
type RequeueOp struct {
// contains filtered or unexported fields
}
func DoNotRequeue ¶
func DoNotRequeue() RequeueOp
func RequeueAfter ¶
func RequeueErr ¶
func (RequeueOp) ShouldRequeue ¶
Click to show internal directories.
Click to hide internal directories.