autodiscover

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Copyright (C) 2020-2021 Red Hat, Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Copyright (C) 2020-2021 Red Hat, Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Copyright (C) 2020-2021 Red Hat, Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDeploymentByNameByNamespace

func FindDeploymentByNameByNamespace(appClient appv1client.AppsV1Interface, namespace, name string) (*appsv1.Deployment, error)

func FindStatefulsetByNameByNamespace

func FindStatefulsetByNameByNamespace(appClient appv1client.AppsV1Interface, namespace, name string) (*appsv1.StatefulSet, error)

func FindTestCrdNames

func FindTestCrdNames(crdFilters []configuration.CrdFilter) (targetCrds []*apiextv1.CustomResourceDefinition)

FindTestCrdNames gets a list of CRD names based on configured groups.

Types

type DiscoveredTestData

type DiscoveredTestData struct {
	Env                configuration.TestParameters
	TestData           configuration.TestConfiguration
	Pods               []corev1.Pod
	DebugPods          []corev1.Pod
	ResourceQuotaItems []corev1.ResourceQuota
	Crds               []*apiextv1.CustomResourceDefinition
	Namespaces         []string
	Csvs               []olmv1Alpha.ClusterServiceVersion
	Deployments        []appsv1.Deployment
	StatefulSet        []appsv1.StatefulSet
	PersistentVolumes  []corev1.PersistentVolume
	Hpas               map[string]*scalingv1.HorizontalPodAutoscaler
	Subscriptions      []olmv1Alpha.Subscription
	HelmChartReleases  map[string][]*release.Release
	K8sVersion         string
	OpenshiftVersion   string
	OCPStatus          string
	Nodes              *corev1.NodeList
	Istio              bool
}

func DoAutoDiscover

func DoAutoDiscover() DiscoveredTestData

DoAutoDiscover finds objects under test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL