Documentation ¶
Index ¶
- func AddFinalizer(o client.Object, finalizer string) bool
- func Condition(conds []metav1.Condition, typ string) *metav1.Condition
- func ContainsFinalizer(o client.Object, finalizer string) bool
- func ContainsLabel(obj client.Object, key, value string) bool
- func DeepEqual(lhs interface{}, rhs interface{}) bool
- func IgnoreNotFound(err error) error
- func IsAlreadyExists(err error) bool
- func IsAvailable(conds []metav1.Condition) bool
- func IsConflict(err error) bool
- func IsNotFound(err error) bool
- func Key(namespace, name string) types.NamespacedName
- func PodCondition(pod *v1.Pod, typ v1.PodConditionType) v1.PodCondition
- func RemoveFinalizer(o client.Object, finalizer string) bool
- func RemoveLabel(obj client.Object, key string) bool
- func ToString(obj client.Object) string
- func UpdateConditions(now metav1.Time, current []metav1.Condition, toUpdate ...*metav1.Condition) []metav1.Condition
- func UpdateLabel(obj client.Object, key, value string) bool
- type Client
- func (c *Client) Apply(ctx context.Context, obj client.Object, opts ...client.PatchOption) error
- func (c *Client) ApplyStatus(ctx context.Context, obj client.Object, opts ...client.SubResourcePatchOption) error
- func (c *Client) Merge(ctx context.Context, modified, original client.Object, ...) error
- func (c *Client) MergeStatus(ctx context.Context, modified, original client.Object, ...) error
- func (c *Client) Upsert(ctx context.Context, obj client.Object, dryRun bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreNotFound ¶
func IsAlreadyExists ¶
func IsAvailable ¶
func IsConflict ¶
func IsNotFound ¶
func Key ¶
func Key(namespace, name string) types.NamespacedName
func PodCondition ¶
func PodCondition(pod *v1.Pod, typ v1.PodConditionType) v1.PodCondition
func UpdateConditions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.