-
Notifications
You must be signed in to change notification settings - Fork 88
/
types.go
115 lines (111 loc) · 3.92 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package ordnode
type fabricOrdChart struct {
Istio Istio `json:"istio"`
AdminIstio Istio `json:"adminIstio"`
Replicas int `json:"replicas"`
Genesis string `json:"genesis"`
ChannelParticipationEnabled bool `json:"channelParticipationEnabled"`
BootstrapMethod string `json:"bootstrapMethod"`
Admin admin `json:"admin"`
Cacert string `json:"cacert"`
Tlsrootcert string `json:"tlsrootcert"`
AdminCert string `json:"adminCert"`
Cert string `json:"cert"`
Key string `json:"key"`
TLS tls `json:"tls"`
Resources Resources `json:"resources,omitempty"`
FullnameOverride string `json:"fullnameOverride"`
HostAliases []HostAlias `json:"hostAliases"`
Service service `json:"service"`
Image image `json:"image"`
Persistence persistence `json:"persistence"`
Ord ord `json:"ord"`
Clientcerts clientcerts `json:"clientcerts"`
Hosts []string `json:"hosts"`
Logging Logging `json:"logging"`
ServiceMonitor ServiceMonitor `json:"serviceMonitor"`
}
type Resources struct {
Limits Limits `json:"limits"`
Requests Requests `json:"requests"`
}
type Limits struct {
CPU string `json:"cpu"`
Memory string `json:"memory"`
}
type Requests struct {
CPU string `json:"cpu"`
Memory string `json:"memory"`
}
type ServiceMonitor struct {
Enabled bool `json:"enabled"`
Labels map[string]string `json:"labels"`
Interval string `json:"interval"`
ScrapeTimeout string `json:"scrapeTimeout"`
Scheme string `json:"scheme"`
Relabelings []interface{} `json:"relabelings"`
TargetLabels []interface{} `json:"targetLabels"`
MetricRelabelings []interface{} `json:"metricRelabelings"`
SampleLimit int `json:"sampleLimit"`
}
type Logging struct {
Spec string `json:"spec"`
}
type admin struct {
Cert string `json:"cert"`
Key string `json:"key"`
RootCAs string `json:"rootCAs"`
ClientRootCAs string `json:"clientRootCAs"`
}
type tls struct {
Cert string `json:"cert"`
Key string `json:"key"`
}
type HostAlias struct {
IP string `json:"ip"`
Hostnames []string `json:"hostnames"`
}
type service struct {
Type string `json:"type"`
Port int `json:"port"`
NodePort int `json:"nodePort"`
PortOperations int `json:"portOperations"`
NodePortOperations int `json:"nodePortOperations"`
}
type image struct {
Repository string `json:"repository"`
Tag string `json:"tag"`
PullPolicy string `json:"pullPolicy"`
}
type annotations struct {
}
type persistence struct {
Enabled bool `json:"enabled"`
Annotations annotations `json:"annotations"`
StorageClass string `json:"storageClass"`
AccessMode string `json:"accessMode"`
Size string `json:"size"`
}
type ordServer struct {
Enabled bool `json:"enabled"`
}
type ordClient struct {
Enabled bool `json:"enabled"`
}
type tlsConfiguration struct {
Server ordServer `json:"server"`
Client ordClient `json:"client"`
}
type ord struct {
Type string `json:"type"`
MspID string `json:"mspID"`
TLS tlsConfiguration `json:"tls"`
}
type clientcerts struct {
CertPem string `json:"cert.pem,omitempty"`
}
type Istio struct {
Port int `json:"port"`
Hosts []string `json:"hosts"`
IngressGateway string `json:"ingressGateway"`
}