Documentation ¶
Overview ¶
Package k8sutils provides Kubernetes utility functions that are specific to Portworx
Index ¶
- type Instance
- func (k *Instance) GetPXSharedApps() ([]apps_api.Deployment, []apps_api.StatefulSet, error)
- func (k *Instance) GetPXSharedSCs() ([]string, error)
- func (k *Instance) GetSecret(sel *core_api.SecretKeySelector, namespace string) ([]byte, error)
- func (k *Instance) IsAnyPXAppPodUnmanaged() (bool, error)
- func (k *Instance) RestoreScaledAppsReplicas() error
- func (k *Instance) ScaleSharedAppsToZero() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance represents an instance of k8sutils
func (*Instance) GetPXSharedApps ¶
func (k *Instance) GetPXSharedApps() ([]apps_api.Deployment, []apps_api.StatefulSet, error)
GetPXSharedApps returns all deployments and statefulsets using Portworx storage class for shared volumes
func (*Instance) GetPXSharedSCs ¶
GetPXSharedSCs returns all storage classes that have the shared parameter set to true
func (*Instance) IsAnyPXAppPodUnmanaged ¶
IsAnyPXAppPodUnmanaged checks if any application pod using PX volumes is not managed by a kubernetes controller
func (*Instance) RestoreScaledAppsReplicas ¶
RestoreScaledAppsReplicas restores PX shared apps that were scaled down to 0 replicas
func (*Instance) ScaleSharedAppsToZero ¶
ScaleSharedAppsToZero scales down PX shared apps to 0 replicas
Click to show internal directories.
Click to hide internal directories.