Documentation ¶
Index ¶
- Constants
- func Client() (*kubernetes.Clientset, error)
- func DeploymentsIndexInformer(client kubernetes.Interface, namespace string, fieldSelector fields.Selector, ...) cache.SharedIndexInformer
- func EndpointsIndexInformer(client kubernetes.Interface, namespace string, fieldSelector fields.Selector, ...) cache.SharedIndexInformer
- func GetMinReplicas(annotations map[string]string, defaultVal int32) int32
- func NodesIndexInformer(client kubernetes.Interface, namespace string, fieldSelector fields.Selector, ...) cache.SharedIndexInformer
- func PodIsEligibleForProxyInjection(annotations map[string]string) bool
- func PodsIndexInformer(client kubernetes.Interface, namespace string, fieldSelector fields.Selector, ...) cache.SharedIndexInformer
- func ServiceIsEligibleForEndpointsManagement(annotations map[string]string) bool
- func ServicesIndexInformer(client kubernetes.Interface, namespace string, fieldSelector fields.Selector, ...) cache.SharedIndexInformer
- func StatefulSetsIndexInformer(client kubernetes.Interface, namespace string, fieldSelector fields.Selector, ...) cache.SharedIndexInformer
- func WorkloadIsEligibleForAutoScaling(annotations map[string]string) bool
- type PatchOperation
Constants ¶
View Source
const ( IgnoredPathsAnnotationName = "osiris.dm.gg/ignoredPaths" MetricsCollectorAnnotationName = "osiris.dm.gg/metricsCollector" MetricsCheckIntervalAnnotationName = "osiris.dm.gg/metricsCheckInterval" )
Variables ¶
This section is empty.
Functions ¶
func EndpointsIndexInformer ¶
func GetMinReplicas ¶
GetMinReplicas gets the minimum number of replicas required for scale up from the annotations. If it fails to do so, it returns the default value instead.
func NodesIndexInformer ¶
func PodIsEligibleForProxyInjection ¶
PodIsEligibleForProxyInjection checks the annotations to see if the pod is eligible for proxy injection or not.
func PodsIndexInformer ¶
func ServiceIsEligibleForEndpointsManagement ¶
ServiceIsEligibleForEndpointsManagement checks the annotations to see if the service is eligible for management of its endpoints by osiris or not.
func ServicesIndexInformer ¶
func WorkloadIsEligibleForAutoScaling ¶
WorkloadIsEligibleForAutoScaling checks the annotations to see if the workload (deployment or statefulset) is eligible for auto-scaling with osiris or not.
Types ¶
type PatchOperation ¶
type PatchOperation struct { Op string `json:"op"` Path string `json:"path"` Value interface{} `json:"value,omitempty"` }
PatchOperation represents a discreet change to be applied to a Kubernetes resource
Click to show internal directories.
Click to hide internal directories.