Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply is a functional interface for interacting with the K8s apiserver in a consistent way. Each sigs.k8s.io/controller-runtime/pkg/client.Object argument must implement the necessary Reader/Writer interfaces implemented by sigs.k8s.io/controller-runtime/pkg/client.Client.
func CreateOrUpdate ¶
CreateOrUpdate is an Action that applies a resource in the K8s apiserver.
Types ¶
type ActionFunc ¶
ActionFunc is a type of function that makes a sequence of API calls to a K8s apiserver. If any API call fails, the ActionFunc should return a string describing the failed call, plus the error returned by the sigs.k8s.io/controller-runtime/pkg/client.Client. Otherwise, the ActionFunc should return a string describing its successful result, and a nil error.
func MkPatchAction ¶
func MkPatchAction(patch func(client.Object) client.Object) ActionFunc
MkPatchAction returns an Action that applies the patch specified when called.