Documentation ¶
Index ¶
- func AddAnnotationToPod(ctx context.Context, c clientset.Interface, namespace, podName string, ...) (*corev1.Pod, error)
- func CleanupClusterRole(ctx context.Context, c clientset.Interface, nsBaseName string) error
- func CleanupClusterRoleBinding(ctx context.Context, c clientset.Interface, nsBaseName string) error
- func CleanupRole(ctx context.Context, c clientset.Interface, nsBaseName, ns string) error
- func CleanupRoleBinding(ctx context.Context, c clientset.Interface, nsBaseName, ns string) error
- func CreateConfigMap(c clientset.Interface, ns, name string, data map[string]string) (*v1.ConfigMap, error)
- func CreateDaemonset(c clientset.Interface, ns string, DaemonSet *apps.DaemonSet) (*apps.DaemonSet, error)
- func CreateDeployment(c clientset.Interface, ns string, deployment *apps.Deployment) (*apps.Deployment, error)
- func CreateNamespace(ctx context.Context, c clientset.Interface, name string) error
- func CreateNamespaceWithAnnotation(ctx context.Context, c clientset.Interface, namespace string, ...) error
- func CreateNamespaceWithLabel(ctx context.Context, c clientset.Interface, namespace string, ...) error
- func CreatePod(c clientset.Interface, ns, name string) (*corev1.Pod, error)
- func CreatePodWithEnvFromConfigmap(c clientset.Interface, ns, name, configName string) (*corev1.Pod, error)
- func CreatePodWithEnvFromSecret(c clientset.Interface, ns, name, secretName string) (*corev1.Pod, error)
- func CreatePodWithEnvValueConfigmap(c clientset.Interface, ns, name, configName string) (*corev1.Pod, error)
- func CreatePodWithEnvValueSecret(c clientset.Interface, ns, name, secretName string) (*corev1.Pod, error)
- func CreatePodWithServiceAccount(c clientset.Interface, ns, name, serviceAccountName string) (*corev1.Pod, error)
- func CreateRBACWithBindingSA(ctx context.Context, c clientset.Interface, namespace string, ...) error
- func CreateRBACWithBindingSAWithRole(ctx context.Context, c clientset.Interface, saNamespace string, ...) error
- func CreateSecret(c clientset.Interface, ns, name string, labels map[string]string) (*v1.Secret, error)
- func CreateSecretWithData(c clientset.Interface, ns, name string, labels map[string]string, ...) (*v1.Secret, error)
- func CreateService(c clientset.Interface, ns, name string) (*corev1.Service, error)
- func CreateServiceAccount(ctx context.Context, c clientset.Interface, ns string, serviceaccount string) error
- func CreateStatefulset(c clientset.Interface, ns string, statefulSet *apps.StatefulSet) (*apps.StatefulSet, error)
- func CreateStorageClass(c clientset.Interface, name string) (*v1.StorageClass, error)
- func CreateVCCredentialSecret(c clientset.Interface, veleroNamespace string) error
- func DeleteConfigmap(c clientset.Interface, ns, name string) error
- func DeleteDaemonSet(c clientset.Interface, name, ns string) error
- func DeleteDeployment(c clientset.Interface, name, ns string) error
- func DeleteNamespace(ctx context.Context, c clientset.Interface, namespace string, wait bool) error
- func DeletePod(ctx context.Context, c clientset.Interface, namespace, podName string) error
- func DeleteSecret(c clientset.Interface, ns, name string) error
- func DeleteService(c clientset.Interface, namespace, name string) error
- func DeleteServiceAccount(ctx context.Context, c clientset.Interface, name, ns string) error
- func DeleteStatefulSet(c clientset.Interface, name, ns string) error
- func DeleteStorageClass(c clientset.Interface, name string) error
- func GetClusterRole(ctx context.Context, c clientset.Interface, role string) (*v1.ClusterRole, error)
- func GetClusterRoleBinding(ctx context.Context, c clientset.Interface, rolebinding string) (*v1.ClusterRoleBinding, error)
- func GetConfigmap(c clientset.Interface, ns, name string) (*v1.ConfigMap, error)
- func GetDaemonset(c clientset.Interface, ns, name string) (*apps.DaemonSet, error)
- func GetDeployment(c clientset.Interface, ns, name string) (*apps.Deployment, error)
- func GetNamespace(ctx context.Context, c clientset.Interface, namespace string) (*corev1api.Namespace, error)
- func GetPod(ctx context.Context, c clientset.Interface, namespace string, pod string) (*corev1.Pod, error)
- func GetRole(ctx context.Context, c clientset.Interface, role, ns string) (*v1.Role, error)
- func GetRoleBinding(ctx context.Context, c clientset.Interface, rolebinding, ns string) (*v1.RoleBinding, error)
- func GetSecret(c clientset.Interface, ns, secretName string) (*v1.Secret, error)
- func GetService(c clientset.Interface, name, namespace string) (*corev1.Service, error)
- func GetServiceAccount(ctx context.Context, c clientset.Interface, ns string, serviceAccount string) (*corev1.ServiceAccount, error)
- func GetStatefulset(c clientset.Interface, ns, name string) (*apps.StatefulSet, error)
- func GetStorageClass(c clientset.Interface, name string) (*v1.StorageClass, error)
- func NewConfigMap() *v1.ConfigMap
- func NewDaemonset(name, ns string, labels map[string]string, image string) (*apps.DaemonSet, error)
- func NewDaemonsetWithEnvFromConfigmap(name, ns string, labels map[string]string, image string, configName string) (*apps.DaemonSet, error)
- func NewDaemonsetWithEnvFromSecret(name, ns string, labels map[string]string, image string, secretName string) (*apps.DaemonSet, error)
- func NewDaemonsetWithEnvValConfigmap(name, ns string, labels map[string]string, image string, configName string) (*apps.DaemonSet, error)
- func NewDaemonsetWithEnvValSecret(name, ns string, labels map[string]string, image string, secretName string) (*apps.DaemonSet, error)
- func NewDeployment(name, ns string, replicas int32, labels map[string]string, image string) *apps.Deployment
- func NewDeploymentWithEnvFromConfigmap(name, ns string, replicas int32, labels map[string]string, image string, ...) *apps.Deployment
- func NewDeploymentWithEnvFromsecret(name, ns string, replicas int32, labels map[string]string, image string, ...) *apps.Deployment
- func NewDeploymentWithEnvValConfigmap(name, ns string, replicas int32, labels map[string]string, image string, ...) *apps.Deployment
- func NewDeploymentWithEnvValsecret(name, ns string, replicas int32, labels map[string]string, image string, ...) *apps.Deployment
- func NewNameSpace(c clientset.Interface, namespace string) *corev1api.Namespace
- func NewPod() *corev1.Pod
- func NewStatefulset(name, ns string, replicas int32, labels map[string]string, image string) (*apps.StatefulSet, error)
- func NewStatefulsetWithEnvFromConfigmap(name, ns string, replicas int32, labels map[string]string, image string, ...) (*apps.StatefulSet, error)
- func NewStatefulsetWithEnvFromSecret(name, ns string, replicas int32, labels map[string]string, image string, ...) (*apps.StatefulSet, error)
- func NewStatefulsetWithEnvValConfigmap(name, ns string, replicas int32, labels map[string]string, image string, ...) (*apps.StatefulSet, error)
- func NewStatefulsetWithEnvValSecret(name, ns string, replicas int32, labels map[string]string, image string, ...) (*apps.StatefulSet, error)
- func WaitForConfigMapComplete(c clientset.Interface, ns, configmapName string) error
- func WaitForConfigmapDelete(c clientset.Interface, ns, name string) error
- func WaitForDaemonsetComplete(c clientset.Interface, ns, name string) error
- func WaitForDaemonsetDelete(c clientset.Interface, ns, name string) error
- func WaitForPodComplete(c clientset.Interface, ns, name string) error
- func WaitForPodDelete(c clientset.Interface, ns, name string) error
- func WaitForReadyDeployment(c clientset.Interface, ns, name string) error
- func WaitForSecretDelete(c clientset.Interface, ns, name string) error
- func WaitForSecretsComplete(c clientset.Interface, ns, secretName string) error
- func WaitForStatefulsetComplete(c clientset.Interface, ns, name string) error
- func WaitForStatefulsetDelete(c clientset.Interface, ns, name string) error
- func WaitUntilServiceAccountCreated(ctx context.Context, c clientset.Interface, namespace, serviceAccount string, ...) error
- func WaitUntilServiceCreated(c clientset.Interface, ns, name string) error
- func WaitUntilStorageClassCreated(c clientset.Interface, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnnotationToPod ¶
func CleanupClusterRole ¶
func CleanupRole ¶
func CleanupRoleBinding ¶
func CreateConfigMap ¶
func CreateDaemonset ¶
func CreateDeployment ¶
func CreateDeployment(c clientset.Interface, ns string, deployment *apps.Deployment) (*apps.Deployment, error)
func CreateNamespace ¶
func CreatePodWithEnvFromConfigmap ¶ added in v1.0.1
func CreatePodWithEnvFromSecret ¶ added in v1.0.1
func CreatePodWithEnvValueConfigmap ¶ added in v1.0.1
func CreatePodWithEnvValueSecret ¶ added in v1.0.1
func CreatePodWithEnvValueSecret(c clientset.Interface, ns, name, secretName string) (*corev1.Pod, error)
CreatePodWithEnvValueSecret
func CreateRBACWithBindingSA ¶
func CreateSecret ¶
func CreateSecretWithData ¶ added in v1.0.1
func CreateSecretWithData(c clientset.Interface, ns, name string, labels map[string]string, data map[string][]byte) (*v1.Secret, error)
CreateSecretWithData
func CreateService ¶
func CreateServiceAccount ¶
func CreateStatefulset ¶
func CreateStatefulset(c clientset.Interface, ns string, statefulSet *apps.StatefulSet) (*apps.StatefulSet, error)
func CreateStorageClass ¶
func CreateVCCredentialSecret ¶
CreateVCCredentialSecret refer to https://github.com/vmware-tanzu/velero-plugin-for-vsphere/blob/v1.3.0/docs/vanilla.md
func DeleteNamespace ¶
func DeleteServiceAccount ¶
func GetClusterRole ¶
func GetClusterRoleBinding ¶
func GetConfigmap ¶
func GetDaemonset ¶
func GetDeployment ¶
func GetNamespace ¶
func GetRoleBinding ¶
func GetService ¶
func GetServiceAccount ¶
func GetStatefulset ¶
func GetStorageClass ¶
func NewConfigMap ¶ added in v1.0.1
func NewDaemonset ¶
func NewDaemonsetWithEnvFromConfigmap ¶ added in v1.0.1
func NewDaemonsetWithEnvFromSecret ¶ added in v1.0.1
func NewDaemonsetWithEnvValConfigmap ¶ added in v1.0.1
func NewDaemonsetWithEnvValSecret ¶ added in v1.0.1
func NewDeployment ¶
func NewDeployment(name, ns string, replicas int32, labels map[string]string, image string) *apps.Deployment
newDeployment returns a RollingUpdate Deployment with a fake container image
func NewDeploymentWithEnvFromConfigmap ¶ added in v1.0.1
func NewDeploymentWithEnvFromConfigmap(name, ns string, replicas int32, labels map[string]string, image string, configName string) *apps.Deployment
deployment with configmap
func NewDeploymentWithEnvFromsecret ¶ added in v1.0.1
func NewDeploymentWithEnvFromsecret(name, ns string, replicas int32, labels map[string]string, image string, secretName string) *apps.Deployment
deployment with secret
func NewDeploymentWithEnvValConfigmap ¶ added in v1.0.1
func NewDeploymentWithEnvValConfigmap(name, ns string, replicas int32, labels map[string]string, image string, configName string) *apps.Deployment
NewDeploymentWithEnvValConfigmap
func NewDeploymentWithEnvValsecret ¶ added in v1.0.1
func NewStatefulset ¶
func NewStatefulsetWithEnvFromConfigmap ¶ added in v1.0.1
func NewStatefulsetWithEnvFromConfigmap(name, ns string, replicas int32, labels map[string]string, image string, configName string) (*apps.StatefulSet, error)
NewStatefulsetWithConfigmap
func NewStatefulsetWithEnvFromSecret ¶ added in v1.0.1
func NewStatefulsetWithEnvValConfigmap ¶ added in v1.0.1
func NewStatefulsetWithEnvValSecret ¶ added in v1.0.1
func WaitForConfigMapComplete ¶
WaitForConfigMapComplete uses c to wait for completions to complete for the Job jobName in namespace ns.
func WaitForConfigmapDelete ¶
func WaitForDaemonsetComplete ¶
WaitForSecretsComplete uses c to wait for completions to complete for the Job jobName in namespace ns.
func WaitForDaemonsetDelete ¶
func WaitForPodComplete ¶
WaitForReadyPod waits for number of ready replicas to equal number of replicas.
func WaitForReadyDeployment ¶
WaitForReadyDeployment waits for number of ready replicas to equal number of replicas.
func WaitForSecretsComplete ¶
WaitForSecretsComplete uses c to wait for completions to complete for the Job jobName in namespace ns.
func WaitForStatefulsetComplete ¶
WaitForSecretsComplete uses c to wait for completions to complete for the Job jobName in namespace ns.
func WaitUntilServiceCreated ¶
Types ¶
This section is empty.