Documentation ¶
Index ¶
- func GetCrdKindFromKindName(kindName string) (v1alpha1.CrdKind, error)
- func GetNextOrdinalPodName(podName string, ordinal int32) string
- func GetOrdinalFromPodName(podName string) (int32, error)
- func IsPodOrdinalNotExceedReplicas(pod *corev1.Pod, specReplicas int32) (bool, error)
- func NewCustomResourceDefinition(crdKind v1alpha1.CrdKind, group string, labels map[string]string, ...) *extensionsobj.CustomResourceDefinition
- func OrdinalPVCName(memberType v1alpha1.MemberType, setName string, ordinal int32) string
- func ResourceRequirement(spec v1alpha1.ContainerSpec, defaultRequests ...corev1.ResourceRequirements) corev1.ResourceRequirements
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCrdKindFromKindName ¶ added in v1.1.0
func GetNextOrdinalPodName ¶ added in v0.4.0
func GetOrdinalFromPodName ¶ added in v0.4.0
func IsPodOrdinalNotExceedReplicas ¶ added in v1.1.0
func NewCustomResourceDefinition ¶ added in v1.1.0
func NewCustomResourceDefinition(crdKind v1alpha1.CrdKind, group string, labels map[string]string, validation bool) *extensionsobj.CustomResourceDefinition
func OrdinalPVCName ¶ added in v1.1.0
func OrdinalPVCName(memberType v1alpha1.MemberType, setName string, ordinal int32) string
func ResourceRequirement ¶
func ResourceRequirement(spec v1alpha1.ContainerSpec, defaultRequests ...corev1.ResourceRequirements) corev1.ResourceRequirements
ResourceRequirement creates ResourceRequirements for MemberSpec Optionally pass in a default value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.