Documentation ¶
Index ¶
- func Bool(b bool) *bool
- func ContextWithLogger(ctx context.Context, logger log.Logger) context.Context
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func Logger(ctx context.Context) log.Logger
- func String(s string) *string
- func Uint(u uint) *uint
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- type Operator
- type Option
- type Reconciler
- type ReconcilerFunc
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithLogger ¶
Types ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
func (*Operator) Clientset ¶
func (op *Operator) Clientset() *kubernetes.Clientset
type Option ¶
type Option func(op *Operator)
func WithConfig ¶
WithConfig configures an operator to use the specified config for creating Kubernetes clients.
func WithDefaultResync ¶ added in v2.1.0
WithDefaultResync configures an operator to resync after timeout is reached. By default or when an a timeout of 0 is set, the operator does not resync.
func WithLogger ¶
WithLogger configures an operator to use the specified logger. This option is optional and defaults to using the standard library's log package.
func WithNamespace ¶
WithNamespace configures an operator to only watch for resources in the specified namespace. By default, or when an empty namespace is specified, the operator watches for resources in all namespaces.
func WithReconciler ¶
func WithReconciler(r Reconciler) Option
WithReconciler configures the operator to use the specified reconciler. As an operator can only have one reconciler, when specifying this option multiple times, the last option wins.
func WithResource ¶
WithResource tells an operator the API group, version, and resource name (plural) and also specifies a prototype of the Go struct which represents the custom resource.