Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateStatefulset ¶
func CreateOrUpdateStatefulset(cli *kubernetes.Clientset, statefulSet *appsv1.StatefulSet) (*appsv1.StatefulSet, error)
func GetStatefulsetResource ¶
func GetStatefulsetResource(cli client.ResourceHandler, statefulSet *appsv1.StatefulSet) (*common.ResourceList, error)
GetStatefulsetResource get StatefulSet resource statistics
Types ¶
type Statefulset ¶
type Statefulset struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` Pods common.PodInfo `json:"pods"` }
func GetStatefulsetDetail ¶
func GetStatefulsetDetail(cli *kubernetes.Clientset, indexer *client.CacheFactory, name, namespace string) (*Statefulset, error)
Click to show internal directories.
Click to hide internal directories.