Documentation ¶
Index ¶
- func CreateOrUpdateJob(client clientset.Interface, job *batchv1.Job) (*batchv1.Job, error)
- func CreateOrUpdateNetworkPolicy(client clientset.Interface, np *netv1.NetworkPolicy) (*netv1.NetworkPolicy, error)
- func CreateOrUpdatePod(client clientset.Interface, service *corev1.Pod) (*corev1.Pod, error)
- func CreateOrUpdateService(client clientset.Interface, service *corev1.Service) (*corev1.Service, error)
- func DeleteNetworkPolicyForeground(client clientset.Interface, np *netv1.NetworkPolicy) error
- func DeleteServiceForeground(client clientset.Interface, service *corev1.Service) error
- func WaitForObject(cli rest.Interface, obj metav1.Common) error
- func WaitForURL(request *rest.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateJob ¶
CreateOrUpdateJob creates a Job if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.
func CreateOrUpdateNetworkPolicy ¶
func CreateOrUpdateNetworkPolicy(client clientset.Interface, np *netv1.NetworkPolicy) (*netv1.NetworkPolicy, error)
CreateOrUpdateNetworkPolicy returns the NetworkPolicy
func CreateOrUpdatePod ¶
CreateOrUpdatePod creates or updates a Pod object
func CreateOrUpdateService ¶
func CreateOrUpdateService(client clientset.Interface, service *corev1.Service) (*corev1.Service, error)
CreateOrUpdateService creates a Deployment if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.
func DeleteNetworkPolicyForeground ¶
func DeleteNetworkPolicyForeground(client clientset.Interface, np *netv1.NetworkPolicy) error
DeleteNetworkPolicyForeground deletes a NetworkPolicy Deletion is performed in foreground mode; i.e. it blocks until/makes sure all the resources are deleted.
func DeleteServiceForeground ¶
DeleteServiceForeground deletes a Service Deletion is performed in foreground mode; i.e. it blocks until/makes sure all the resources are deleted.
func WaitForObject ¶
WaitForObject waits for an object to be ready in the apiserver
func WaitForURL ¶
WaitForURL waits for an URL to be GET'able
Types ¶
This section is empty.