Documentation ¶
Index ¶
- func CreateConfigFile(config interface{}) (*os.File, error)
- func CreateEmptySecret(namespace, secretName string, clientset kubernetes.Interface) error
- func CreateSecretWithStringData(namespace, secretName string, clientset kubernetes.Interface, ...) error
- func CreateTestServer(certPath, keyPath, caCertPath string) (*ghttp.Server, error)
- func DefaultControllerConfig(namespace string) *eirinictrl.ControllerConfig
- func EnsureStatusConditionTrue(clientset eiriniclient.Interface, namespace, taskName, conditionType string) func(g Gomega)
- func GetLRP(clientset eiriniclient.Interface, namespace, lrpName string) *eiriniv1.LRP
- func GetPDB(clientset kubernetes.Interface, namespace, lrpGUID, lrpVersion string) policyv1.PodDisruptionBudget
- func GetPDBItems(clientset kubernetes.Interface, namespace, lrpGUID, lrpVersion string) ([]policyv1.PodDisruptionBudget, error)
- func GetRegistrySecretName(clientset kubernetes.Interface, namespace, taskGUID, secretName string) string
- func GetStatefulSet(clientset kubernetes.Interface, namespace, guid, version string) *appsv1.StatefulSet
- func GetTaskJobConditions(clientset kubernetes.Interface, namespace, taskGUID string) func() []batchv1.JobCondition
- func ListJobs(clientset kubernetes.Interface, namespace, taskGUID string) func() []batchv1.Job
- func MakeTestHTTPClient(certsPath string) (*http.Client, error)
- type Binary
- type EiriniBinaries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigFile ¶
func CreateEmptySecret ¶
func CreateEmptySecret(namespace, secretName string, clientset kubernetes.Interface) error
func CreateTestServer ¶
func DefaultControllerConfig ¶
func DefaultControllerConfig(namespace string) *eirinictrl.ControllerConfig
func EnsureStatusConditionTrue ¶ added in v0.6.0
func EnsureStatusConditionTrue(clientset eiriniclient.Interface, namespace, taskName, conditionType string) func(g Gomega)
func GetLRP ¶
func GetLRP(clientset eiriniclient.Interface, namespace, lrpName string) *eiriniv1.LRP
func GetPDB ¶
func GetPDB(clientset kubernetes.Interface, namespace, lrpGUID, lrpVersion string) policyv1.PodDisruptionBudget
func GetPDBItems ¶
func GetPDBItems(clientset kubernetes.Interface, namespace, lrpGUID, lrpVersion string) ([]policyv1.PodDisruptionBudget, error)
func GetRegistrySecretName ¶
func GetRegistrySecretName(clientset kubernetes.Interface, namespace, taskGUID, secretName string) string
func GetStatefulSet ¶
func GetStatefulSet(clientset kubernetes.Interface, namespace, guid, version string) *appsv1.StatefulSet
func GetTaskJobConditions ¶
func GetTaskJobConditions(clientset kubernetes.Interface, namespace, taskGUID string) func() []batchv1.JobCondition
Types ¶
type Binary ¶
type Binary struct { PackagePath string `json:"src_path"` BinPath string `json:"bin_path"` LocksDir string `json:"locks_dir"` CertsPath string `json:"cert_path"` }
func (*Binary) Build ¶
func (b *Binary) Build()
Build builds the binary. Normally, you should not use this function as it is built if needed upon first run anyway. However, sometimes it might make sense to explicitly build a common binary that is used across all the tests in SynchronizedBeforeSuite thus preventing running the build on concurrent nodes.
For example, EATs tests will always run API, therefore it is a good idea to build it in advance.
type EiriniBinaries ¶
type EiriniBinaries struct { EiriniController Binary `json:"eirini_controller"` ExternalBinsPath bool BinsPath string CertsPath string CABundle []byte }
func NewEiriniBinaries ¶
func NewEiriniBinaries() EiriniBinaries
func (*EiriniBinaries) TearDown ¶
func (b *EiriniBinaries) TearDown()
Click to show internal directories.
Click to hide internal directories.