Documentation ¶
Index ¶
- func BuildManager(initCfg *Config) (manager.Manager, error)
- func CreateCertificateX509(ctx context.Context, k8sClient client.Client, name, ns string) error
- func CreateDefaultSecret(ctx context.Context, k8sClient client.Client, name, ns string)
- func CreateNamespace(ctx context.Context, k8sClient client.Client, ns string) error
- func CreateNewClient() (client.Client, error)
- func CreateRandomUserSecret(ctx context.Context, k8sClient client.Client, name, ns string) error
- func CreateSecret(ctx context.Context, k8sClient client.Client, ...) error
- func CreateUserSecret(ctx context.Context, k8sClient client.Client, secret, name, ns string) error
- func DeleteDeployment(ctx context.Context, k8sClient client.Client, ns, name string) error
- func DeleteKey(ctx context.Context, k8sClient client.Client, keyName, ns string) error
- func DeleteNamespace(ctx context.Context, k8sClient client.Client, ns string) error
- func DeploymentListYml(ctx context.Context, k8sClient client.Client, ns string) ([]byte, error)
- func GetAllDeploymentPods(deploymentName, deploymentNS string) ([]corev1.Pod, error)
- func GetDBUserStatusCondition(ctx context.Context, k8sClient client.Client, statusType status.ConditionType, ...) (string, error)
- func GetDeployment(deploymentName, deploymentNS string) (*appsv1.Deployment, error)
- func GetDeploymentObservedGeneration(ctx context.Context, k8sClient client.Client, ns, resourceName string) (int, error)
- func GetDeploymentResource(ctx context.Context, k8sClient client.Client, namespace, rName string) (*v1.AtlasDeployment, error)
- func GetDeploymentStatusCondition(ctx context.Context, k8sClient client.Client, statusType status.ConditionType, ...) (string, error)
- func GetK8sDeploymentStateName(ctx context.Context, k8sClient client.Client, ns, rName string) (string, error)
- func GetPodLogs(options corev1.PodLogOptions, ns string, podName string) ([]byte, error)
- func GetPodLogsByDeployment(deploymentName, deploymentNS string, options corev1.PodLogOptions) ([]byte, error)
- func GetPodStatus(ctx context.Context, k8sClient client.Client, ns string) (string, error)
- func GetPodStatusPhaseByLabel(ctx context.Context, k8sClient client.Client, ns, labelKey, labelValue string) (string, error)
- func GetProjectObservedGeneration(ctx context.Context, k8sClient client.Client, ns, resourceName string) (int, error)
- func GetProjectStatusCondition(ctx context.Context, k8sClient client.Client, statusType status.ConditionType, ...) (string, error)
- func ProjectListYaml(ctx context.Context, k8sClient client.Client, ns string) ([]byte, error)
- func TeamListYaml(ctx context.Context, k8sClient client.Client, ns string) ([]byte, error)
- func UserListYaml(ctx context.Context, k8sClient client.Client, ns string) ([]byte, error)
- type Config
- type ManagerConfig
- type ManagerStart
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificateX509 ¶
func CreateDefaultSecret ¶
func CreateNamespace ¶
func CreateNewClient ¶
func CreateRandomUserSecret ¶
func CreateSecret ¶
func CreateUserSecret ¶
func DeleteDeployment ¶
func DeleteNamespace ¶
func DeploymentListYml ¶ added in v1.5.0
func GetAllDeploymentPods ¶ added in v1.7.0
func GetDeployment ¶ added in v1.7.0
func GetDeployment(deploymentName, deploymentNS string) (*appsv1.Deployment, error)
func GetDeploymentResource ¶
func GetPodLogs ¶ added in v1.7.0
func GetPodLogsByDeployment ¶ added in v1.7.0
func GetPodLogsByDeployment(deploymentName, deploymentNS string, options corev1.PodLogOptions) ([]byte, error)
func GetPodStatus ¶
GetPodStatus status.phase
func ProjectListYaml ¶
func TeamListYaml ¶ added in v1.6.0
Types ¶
type ManagerConfig ¶ added in v1.8.2
type ManagerConfig func(config *Config)
func WithAtlasDomain ¶ added in v1.9.0
func WithAtlasDomain(domain string) ManagerConfig
func WithGlobalKey ¶ added in v1.8.2
func WithGlobalKey(key client.ObjectKey) ManagerConfig
func WithNamespaces ¶ added in v1.8.2
func WithNamespaces(namespaces ...string) ManagerConfig
func WithObjectDeletionProtection ¶ added in v1.8.2
func WithObjectDeletionProtection(flag bool) ManagerConfig
func WithSubObjectDeletionProtection ¶ added in v1.8.2
func WithSubObjectDeletionProtection(flag bool) ManagerConfig
type ManagerStart ¶ added in v1.8.2
func RunManager ¶ added in v1.8.2
func RunManager(withConfigs ...ManagerConfig) (ManagerStart, error)
Click to show internal directories.
Click to hide internal directories.