Documentation ¶
Index ¶
- Constants
- func DeepHashObject(hasher hash.Hash, objectToWrite interface{})
- func DefaultCreateOptions() *client.CreateOptions
- func DefaultPatchOptions() *client.PatchOptions
- func DefaultSubResourceUpdateOptions() *client.UpdateOptions
- func DefaultUpdateOptions() *client.UpdateOptions
- func GetAnnotation(obj client.Object, key string) string
- func GetLabel(obj client.Object, key string) string
- func IsJobCompleted(job *batchv1.Job) bool
- func ObjectToGroupKind(s *runtime.Scheme, o client.Object) (schema.GroupKind, error)
- func ObjectToGroupVersionKind(s *runtime.Scheme, o client.Object) (schema.GroupVersionKind, error)
- func PodHash(podSpec corev1.PodSpec) string
- func PodIsReady(pod *corev1.Pod) bool
- func PodIsScheduled(pod *corev1.Pod) bool
- func ServerSideApply(ctx context.Context, cl client.Client, obj client.Object, ...) error
- func SetAnnotation(obj client.Object, key, value string)
- func SetLabel(obj client.Object, key, value string)
Constants ¶
View Source
const ManagerName = "kubeai-manager"
Variables ¶
This section is empty.
Functions ¶
func DeepHashObject ¶ added in v0.7.0
DeepHashObject writes specified object to hash using the spew library which follows pointers and prints actual values of the nested objects ensuring the hash does not change when a pointer changes. Copied from k8s.io/kubernetes/pkg/util/hash to avoid dependency on k8s.io/kubernetes.
func DefaultCreateOptions ¶ added in v0.6.0
func DefaultCreateOptions() *client.CreateOptions
func DefaultPatchOptions ¶ added in v0.6.0
func DefaultPatchOptions() *client.PatchOptions
func DefaultSubResourceUpdateOptions ¶ added in v0.6.0
func DefaultSubResourceUpdateOptions() *client.UpdateOptions
func DefaultUpdateOptions ¶ added in v0.6.0
func DefaultUpdateOptions() *client.UpdateOptions
func IsJobCompleted ¶ added in v0.9.0
func ObjectToGroupKind ¶
func PodHash ¶ added in v0.7.0
PodHash returns a hash value calculated from Pod spec. Inspired by k8s.io/kubernetes/pkg/controller.ComputeHash()
func PodIsReady ¶
func PodIsScheduled ¶ added in v0.7.0
func ServerSideApply ¶
func SetAnnotation ¶ added in v0.7.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.