Documentation
¶
Index ¶
- Constants
- func CleanupCluster(ctx context.Context, k8sClient client.Client, hc *humiov1alpha1.HumioCluster)
- func ConstructBasicNodeSpecForHumioCluster(key types.NamespacedName) humiov1alpha1.HumioNodeSpec
- func ConstructBasicSingleNodeHumioCluster(key types.NamespacedName, useAutoCreatedLicense bool) *humiov1alpha1.HumioCluster
- func CreateAndBootstrapCluster(ctx context.Context, k8sClient client.Client, humioClient humio.Client, ...)
- func CreateDockerRegredSecret(ctx context.Context, namespace corev1.Namespace, k8sClient client.Client)
- func CreateLicenseSecret(ctx context.Context, clusterKey types.NamespacedName, k8sClient client.Client, ...)
- func GetHumioBootstrapToken(ctx context.Context, key types.NamespacedName, k8sClient client.Client) (humiov1alpha1.HumioBootstrapToken, error)
- func MarkPodAsRunningIfUsingEnvtest(ctx context.Context, k8sClient client.Client, pod corev1.Pod, ...) error
- func MarkPodsAsRunningIfUsingEnvtest(ctx context.Context, client client.Client, pods []corev1.Pod, ...) error
- func SimulateHumioBootstrapTokenCreatingSecretAndUpdatingStatus(ctx context.Context, key types.NamespacedName, k8sClient client.Client, ...)
- func UseDockerCredentials() bool
- func UsingClusterBy(cluster, text string, callbacks ...func())
- func WaitForReconcileToSync(ctx context.Context, key types.NamespacedName, k8sClient client.Client, ...)
Constants ¶
View Source
const (
// DockerRegistryCredentialsSecretName is the name of the k8s secret containing the registry credentials
DockerRegistryCredentialsSecretName = "regcred"
)
View Source
const TestInterval = time.Second * 1
Variables ¶
This section is empty.
Functions ¶
func CleanupCluster ¶
func CleanupCluster(ctx context.Context, k8sClient client.Client, hc *humiov1alpha1.HumioCluster)
func ConstructBasicNodeSpecForHumioCluster ¶
func ConstructBasicNodeSpecForHumioCluster(key types.NamespacedName) humiov1alpha1.HumioNodeSpec
func ConstructBasicSingleNodeHumioCluster ¶
func ConstructBasicSingleNodeHumioCluster(key types.NamespacedName, useAutoCreatedLicense bool) *humiov1alpha1.HumioCluster
func CreateAndBootstrapCluster ¶
func CreateAndBootstrapCluster(ctx context.Context, k8sClient client.Client, humioClient humio.Client, cluster *humiov1alpha1.HumioCluster, autoCreateLicense bool, expectedState string, testTimeout time.Duration)
nolint:gocyclo
func CreateLicenseSecret ¶
func CreateLicenseSecret(ctx context.Context, clusterKey types.NamespacedName, k8sClient client.Client, cluster *humiov1alpha1.HumioCluster)
func GetHumioBootstrapToken ¶
func GetHumioBootstrapToken(ctx context.Context, key types.NamespacedName, k8sClient client.Client) (humiov1alpha1.HumioBootstrapToken, error)
func SimulateHumioBootstrapTokenCreatingSecretAndUpdatingStatus ¶
func SimulateHumioBootstrapTokenCreatingSecretAndUpdatingStatus(ctx context.Context, key types.NamespacedName, k8sClient client.Client, testTimeout time.Duration, cluster *humiov1alpha1.HumioCluster)
func UseDockerCredentials ¶
func UseDockerCredentials() bool
func UsingClusterBy ¶
func UsingClusterBy(cluster, text string, callbacks ...func())
func WaitForReconcileToSync ¶
func WaitForReconcileToSync(ctx context.Context, key types.NamespacedName, k8sClient client.Client, currentHumioCluster *humiov1alpha1.HumioCluster, testTimeout time.Duration)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.