k8sutils

package module
v0.0.0-...-75192df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 5 Imported by: 0

README

k8sutils

Package aerf.io/k8sutils/gvks exports GVKs of particular types from k8s.io/api package. Apart from that there are some useful utility functions in the root package, k8stracing and utilreconcilers dirs and some binaries in cmd dir.

Contributing

Almost all .go files in this project are auto-generated by ./internal/cmd/gvk-dirs-generator/main.go. In order to add new type please add it in appropriate place in main.go and rerun make.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTypeInformationToObject

func AddTypeInformationToObject(scheme *runtime.Scheme, obj runtime.Object) error

func GetListObjects

func GetListObjects[V Object[T], T any](list ObjectList) ([]V, error)

func ToUnstructured

func ToUnstructured(arg any) (*unstructured.Unstructured, error)

Types

type Object

type Object[T any] interface {
	*T
	metav1.Object
	runtime.Object
}

type ObjectList

type ObjectList interface {
	metav1.ListInterface
	runtime.Object
}

Directories

Path Synopsis
cmd
gvks
appsv1beta1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
appsv1beta2gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
appsv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
autoscalingv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
autoscalingv2beta1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
autoscalingv2beta2gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
autoscalingv2gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
batchv1beta1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
batchv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
coordinationv1beta1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
coordinationv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
corev1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
discoveryv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
eventsv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
networkingv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
policyv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
rbacv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
schedulingv1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
storagev1gvk
Code generated by gvk-dirs-generator DO NOT EDIT.
Code generated by gvk-dirs-generator DO NOT EDIT.
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL