-
Notifications
You must be signed in to change notification settings - Fork 28
/
types.go
48 lines (38 loc) · 940 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0
package framework
import (
"github.com/go-logr/logr"
"sigs.k8s.io/controller-runtime/pkg/client"
intconfig "github.com/gardener/test-infra/pkg/apis/config"
)
const (
TestNamespacePrefix = "tm-it"
)
var (
CoreSecrets = []string{
"s3-secret",
}
)
// Framework operation configuration
type Config struct {
CommitSha string
Namespace string
TmKubeconfigPath string
TmNamespace string
S3Endpoint string
Local bool
TMConfigPath string
}
// Operation is a common set of configuration and functions for running testmachinery integration tests.
type Operation struct {
testConfig *Config
log logr.Logger
tmClient client.Client
tmConfig *intconfig.Configuration
State OperationState
}
type OperationState struct {
Objects []client.Object
}