Documentation ¶
Index ¶
- Constants
- Variables
- func CreateConfigMapsFromLocal(localClusterInfos, namespace, clusterInfo string, client clientset.Interface) (*corev1.ConfigMap, error)
- func DeploymentsEventStatusFromRuntime(o runtime.Object) (string, error)
- func FilterDeploymentPodsByOwnerReference(deployment appsv1.Deployment, allRS []metav1.PartialObjectMetadata, ...) []corev1.Pod
- func FilterPodsByControllerRef(owner metav1.Object, remainingPods *[]corev1.Pod) []corev1.Pod
- func ListDeploymentPods(oldCtx context.Context, client clientset.Interface, ...) ([]corev1.Pod, error)
- func RuntimeObjectToUnstructured(o runtime.Object) (*unstructured.Unstructured, error)
- func RuntimeToConfigMap(o runtime.Object) (*corev1.ConfigMap, error)
- func Status(u *unstructured.Unstructured) (string, error)
- func StatusFromRuntime(o runtime.Object) (string, error)
Constants ¶
View Source
const ( StatusReady = "Ready" StatusInProgress = "InProgress" StatusUnknown = "Unknown" StatusDisabled = "Disabled" )
Constants defining labels
Variables ¶
View Source
var Std2Jsoniter = jsoniter.ConfigCompatibleWithStandardLibrary
Functions ¶
func FilterDeploymentPodsByOwnerReference ¶
func FilterDeploymentPodsByOwnerReference(deployment appsv1.Deployment, allRS []metav1.PartialObjectMetadata, allPods []corev1.Pod) []corev1.Pod
FilterDeploymentPodsByOwnerReference returns a subset of pods controlled by given deployment.
func FilterPodsByControllerRef ¶
FilterPodsByControllerRef returns a subset of pods controlled by given controller resource, excluding deployments.
func ListDeploymentPods ¶
func ListDeploymentPods(oldCtx context.Context, client clientset.Interface, deployment appsv1.Deployment) ([]corev1.Pod, error)
ListDeploymentPods returns a set of pods controlled by given deployment.
func RuntimeObjectToUnstructured ¶
func RuntimeObjectToUnstructured(o runtime.Object) (*unstructured.Unstructured, error)
func Status ¶
func Status(u *unstructured.Unstructured) (string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.