Documentation ¶
Index ¶
- func Annotations(object k8sutil.Object) map[string]string
- func GVK(object k8sutil.Object) schema.GroupVersionKind
- func HPAMinReplicas(obj k8sutil.Object) (int32, bool)
- func HPAScaleTargetRefName(obj k8sutil.Object) (string, bool)
- func Labels(object k8sutil.Object) map[string]string
- func PodSpec(obj k8sutil.Object) (customtypes.PodSpec, bool)
- func PodTemplateSpec(obj k8sutil.Object) (coreV1.PodTemplateSpec, bool)
- func Replicas(obj k8sutil.Object) (int32, bool)
- func SCCallowPrivilegedContainer(obj k8sutil.Object) (bool, bool)
- func Selector(obj k8sutil.Object) (*metaV1.LabelSelector, bool)
- type UpdateStrategyValues
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotations ¶
Annotations extracts annotations from the given object.
func GVK ¶
func GVK(object k8sutil.Object) schema.GroupVersionKind
GVK extracts the GroupVersionKind of an object.
func HPAMinReplicas ¶
HPAMinReplicas extracts minReplicas from the given object, if available.
func HPAScaleTargetRefName ¶ added in v0.6.6
HPAScaleTargetRefName extracts Spec.ScaleTargetRef.Name
func PodSpec ¶
func PodSpec(obj k8sutil.Object) (customtypes.PodSpec, bool)
PodSpec extracts a pod spec from the given object, if available.
func PodTemplateSpec ¶
func PodTemplateSpec(obj k8sutil.Object) (coreV1.PodTemplateSpec, bool)
PodTemplateSpec extracts a pod template spec from the given object, if available.
func SCCallowPrivilegedContainer ¶ added in v0.6.5
SCCallowPrivilegedContainer extracts allowPrivilegedContainer from the given object, if available.
Types ¶
type UpdateStrategyValues ¶
type UpdateStrategyValues struct { Type string TypeExists bool RollingConfigExists bool RollingConfigValid bool MaxSurgeExists bool MaxSurge *intstr.IntOrString }
UpdateStrategyValues contains testable data from an UpdateStrategy struct
func UpdateStrategy ¶
func UpdateStrategy(obj k8sutil.Object) (*UpdateStrategyValues, bool)
UpdateStrategy will extract the data from an UpdateStrategy into a common struct
Source Files ¶
Click to show internal directories.
Click to hide internal directories.