Documentation
¶
Index ¶
- func Create(ctx context.Context, cli client.Client, objects []runtime.Object, ...) error
- func Delete(ctx context.Context, cli client.Client, objects []runtime.Object, ...) error
- func GetPodLog(ctx context.Context, config *rest.Config, pod *corev1.Pod, ...) (string, error)
- func IsJobCompleted(job *batchv1.Job) bool
- func IsPodCompleted(pod *corev1.Pod) bool
- func IsPodRunning(pod *corev1.Pod) bool
- func ParseK8sObjects(y string) ([]runtime.Object, error)
- func PopNamespaceFromObjectList(objects []runtime.Object) (nsObject runtime.Object, otherObjects []runtime.Object)
- func RestartDeamonSet(ctx context.Context, cli client.Client, dsUpdate *appsv1.DaemonSet) error
- type KubeQuerySecretsMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsJobCompleted ¶
func IsPodCompleted ¶
func IsPodRunning ¶ added in v0.4.0
func PopNamespaceFromObjectList ¶ added in v0.5.0
Types ¶
type KubeQuerySecretsMethod ¶ added in v0.5.0
type KubeQuerySecretsMethod func(ctx context.Context) (*corev1.SecretList, error)
func QuerySecrets ¶ added in v0.5.0
func QuerySecrets(cli client.Client, opts ...client.ListOption) KubeQuerySecretsMethod
func QuerySecretsInNamespace ¶ added in v0.5.0
func QuerySecretsInNamespace(cli client.Client, namespace string) KubeQuerySecretsMethod
Click to show internal directories.
Click to hide internal directories.