Documentation ¶
Index ¶
- Variables
- func ApplyUpdate(orig, update *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func MakeControllerRef(parent *unstructured.Unstructured) *metav1.OwnerReference
- func ManageChildren(dynClient *dynamicclientset.Clientset, updateStrategy ChildUpdateStrategy, ...) error
- func ParseAPIVersion(apiVersion string) (group, version string)
- func ParseChildMapKey(key string) (apiVersion, kind string)
- type ChildMap
- type ChildUpdateStrategy
- type GroupKindMap
- type InformerMap
Constants ¶
This section is empty.
Variables ¶
View Source
var (
KeyFunc = cache.DeletionHandlingMetaNamespaceKeyFunc
)
Functions ¶
func ApplyUpdate ¶
func ApplyUpdate(orig, update *unstructured.Unstructured) (*unstructured.Unstructured, error)
func MakeControllerRef ¶
func MakeControllerRef(parent *unstructured.Unstructured) *metav1.OwnerReference
func ManageChildren ¶
func ManageChildren(dynClient *dynamicclientset.Clientset, updateStrategy ChildUpdateStrategy, parent *unstructured.Unstructured, observedChildren, desiredChildren ChildMap) error
func ParseAPIVersion ¶
func ParseChildMapKey ¶
Types ¶
type ChildMap ¶
type ChildMap map[string]map[string]*unstructured.Unstructured
func MakeChildMap ¶
func MakeChildMap(list []*unstructured.Unstructured) ChildMap
func (ChildMap) FindGroupKindName ¶
func (m ChildMap) FindGroupKindName(apiGroup, kind, name string) *unstructured.Unstructured
func (ChildMap) Insert ¶
func (m ChildMap) Insert(obj *unstructured.Unstructured)
func (ChildMap) ReplaceChild ¶
func (m ChildMap) ReplaceChild(child *unstructured.Unstructured)
type ChildUpdateStrategy ¶
type ChildUpdateStrategy interface {
GetMethod(apiGroup, kind string) v1alpha1.ChildUpdateMethod
}
type GroupKindMap ¶
type GroupKindMap map[string]*dynamicdiscovery.APIResource
func (GroupKindMap) Get ¶
func (m GroupKindMap) Get(apiGroup, kind string) *dynamicdiscovery.APIResource
func (GroupKindMap) Set ¶
func (m GroupKindMap) Set(apiGroup, kind string, resource *dynamicdiscovery.APIResource)
type InformerMap ¶
type InformerMap map[string]*dynamicinformer.ResourceInformer
func (InformerMap) Get ¶
func (m InformerMap) Get(apiVersion, resource string) *dynamicinformer.ResourceInformer
func (InformerMap) Set ¶
func (m InformerMap) Set(apiVersion, resource string, informer *dynamicinformer.ResourceInformer)
Click to show internal directories.
Click to hide internal directories.