-
Notifications
You must be signed in to change notification settings - Fork 4
/
default_release.go
57 lines (53 loc) · 1.04 KB
/
default_release.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
49
50
51
52
53
54
55
56
57
package unittest
import (
"time"
releasev1alpha1 "github.com/giantswarm/apiextensions/v3/pkg/apis/release/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
func DefaultRelease() releasev1alpha1.Release {
r := releasev1alpha1.Release{
ObjectMeta: metav1.ObjectMeta{
Name: "v100.0.0",
},
Spec: releasev1alpha1.ReleaseSpec{
Apps: []releasev1alpha1.ReleaseSpecApp{
{
Name: "cert-operator",
Version: "1.2.1",
},
{
Name: "chart-operator",
Version: "0.11.4",
},
{
ComponentVersion: "1.6.5",
Name: "coredns",
Version: "1.1.3",
},
},
Components: []releasev1alpha1.ReleaseSpecComponent{
{
Name: "app-operator",
Version: "1.0.0",
},
{
Name: "aws-operator",
Version: "8.7.5",
},
{
Name: "cert-operator",
Version: "1.0.0",
},
{
Name: "cluster-operator",
Version: "0.23.1",
},
},
Date: &metav1.Time{
Time: time.Now(),
},
State: "active",
},
}
return r
}