Documentation ¶
Index ¶
- Variables
- func CopyStringMap(src map[string]string) map[string]string
- func CreateOrUpdate(ctx context.Context, log logr.Logger, cli client.Client, obj runtime.Object) error
- func LogSync(log logr.Logger, op controllerutil.OperationResult, err error, ...)
- type Applier
- type ClusterApplier
- type ConcurrentApplier
- type NoChangeNeededError
- type Plan
- type PrintablePlan
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoChangeNeeded = NoChangeNeededError(errors.New("no change needed"))
Functions ¶
func CreateOrUpdate ¶
func CreateOrUpdate( ctx context.Context, log logr.Logger, cli client.Client, obj runtime.Object, ) error
CreateOrUpdate safely performs a standard CreateOrUpdate for known types. my kingdom for go generics
func LogSync ¶
func LogSync(log logr.Logger, op controllerutil.OperationResult, err error, resource runtime.Object)
Types ¶
type Applier ¶
func NewClusterApplier ¶
type ClusterApplier ¶
type ClusterApplier struct {
// contains filtered or unexported fields
}
type ConcurrentApplier ¶
type ConcurrentApplier struct {
// contains filtered or unexported fields
}
type NoChangeNeededError ¶
type NoChangeNeededError error
type Plan ¶
type PrintablePlan ¶
type PrintablePlan interface {
Printable() interface{}
}
Click to show internal directories.
Click to hide internal directories.