Documentation
¶
Index ¶
- Constants
- Variables
- func CreateCRD(clientset apiextensionsclient.Interface, ...) error
- func CreateClusterRole(schema rbac.ClusterRole, config *rest.Config) (bool, error)
- func CreateClusterRoleBinding(schema rbac.ClusterRoleBinding, config *rest.Config) (bool, error)
- func CreateJob(schema batchv1.Job, namespace string, config *rest.Config) (bool, error)
- func CreateKubeconfigSecret(name string, namespace string, kubeconfig []byte) (err error)
- func CreateNamespace(schema corev1.Namespace, config *rest.Config) (bool, error)
- func CreateRole(schema rbac.Role, namespace string, config *rest.Config) (bool, error)
- func CreateRoleBinding(schema rbac.RoleBinding, namespace string, config *rest.Config) (bool, error)
- func CreateSSHSecret(name string, namespace string, privateKey []byte) (err error)
- func CreateServiceAccount(schema corev1.ServiceAccount, namespace string, config *rest.Config) (bool, error)
- func DeleteKubeconfigSecret(name string, namespace string) (err error)
- func DeleteSSHSecret(name string, namespace string) (err error)
- func DeleteSecret(name string, namespace string) (err error)
- func GenerateJob(name string, jobSpec batchv1.JobSpec) batchv1.Job
- func GenerateKubernetesConfig() (*rest.Config, error)
- func GenerateNamespace(name string) corev1.Namespace
- func GenerateServiceAccount(name string) corev1.ServiceAccount
- func GenerateSingleClusterRolebinding(name string, subject string, subjectNamespace string, roleName string) rbac.ClusterRoleBinding
- func GenerateSingleRolebinding(name string, subject string, subjectNamespace string, roleName string) rbac.RoleBinding
- func GetKubeconfigSecret(name string, namespace string) (secret []byte, err error)
- func GetKubeconfigSecretList(namespace string) (result []corev1.Secret, err error)
- func GetSSHSecret(name string, namespace string) (secret []byte, err error)
- func GetSSHSecretList(namespace string) (result []corev1.Secret, err error)
- func GetSecret(name string, namespace string) (secret corev1.Secret, err error)
- func GetSecretList(namespace string, options v1.ListOptions) (result []corev1.Secret, err error)
- func IsResourceAlreadyExistsError(err error) bool
- func IsResourceNotFoundError(err error) bool
- func SetLogger()
- func WaitCRDReady(clientset apiextensionsclient.Interface, crdName string) error
Constants ¶
View Source
const (
SDSServiceAccountName = "sds-sa"
)
Variables ¶
View Source
var ( KubeConfigLocation string DefaultConfig *rest.Config )
Functions ¶
func CreateCRD ¶
func CreateCRD(clientset apiextensionsclient.Interface, crd apiextensionsv1beta1.CustomResourceDefinition) error
CreateCRD creates the objects in kubernetes
func CreateClusterRole ¶
func CreateKubeconfigSecret ¶ added in v0.1.1
func CreateNamespace ¶
func CreateRole ¶
func CreateRoleBinding ¶
func CreateSSHSecret ¶ added in v0.1.1
func CreateServiceAccount ¶
func DeleteKubeconfigSecret ¶ added in v0.1.1
func DeleteSSHSecret ¶ added in v0.1.1
func DeleteSecret ¶ added in v0.1.1
func GenerateNamespace ¶
func GenerateServiceAccount ¶
func GenerateServiceAccount(name string) corev1.ServiceAccount
func GetKubeconfigSecret ¶ added in v0.1.1
func GetKubeconfigSecretList ¶ added in v0.1.1
func GetSSHSecret ¶ added in v0.1.1
func GetSSHSecretList ¶ added in v0.1.1
func GetSecretList ¶ added in v0.1.1
func IsResourceAlreadyExistsError ¶
IsResourceAlreadyExistsError determines if error is an already exist type
func IsResourceNotFoundError ¶
IsResourceNotFoundError determines if error is of type not found
func WaitCRDReady ¶
func WaitCRDReady(clientset apiextensionsclient.Interface, crdName string) error
WaitCRDReady waits until proper condition is obtained.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.