-
Notifications
You must be signed in to change notification settings - Fork 98
/
get_spec_req.go
97 lines (85 loc) · 6.08 KB
/
get_spec_req.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
/*
Copyright 2022 The Numaproj Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package v1alpha1
import (
corev1 "k8s.io/api/core/v1"
)
type GetRedisStatefulSetSpecReq struct {
ServiceName string `protobuf:"bytes,1,opt,name=serviceName"`
Labels map[string]string `protobuf:"bytes,2,rep,name=labels"`
RedisImage string `protobuf:"bytes,3,opt,name=redisImage"`
SentinelImage string `protobuf:"bytes,4,opt,name=sentinelImage"`
MetricsExporterImage string `protobuf:"bytes,5,opt,name=metricsExporterImage"`
InitContainerImage string `protobuf:"bytes,6,opt,name=initContainerImage"`
RedisContainerPort int32 `protobuf:"bytes,7,opt,name=redisContainerPort"`
SentinelContainerPort int32 `protobuf:"bytes,8,opt,name=sentinelContainerPort"`
RedisMetricsContainerPort int32 `protobuf:"bytes,9,opt,name=redisMetricsContainerPort"`
CredentialSecretName string `protobuf:"bytes,10,opt,name=credentialSecretName"`
TLSEnabled bool `protobuf:"bytes,11,opt,name=tlsEnabled"`
PvcNameIfNeeded string `protobuf:"bytes,12,opt,name=pvcNameIfNeeded"`
ConfConfigMapName string `protobuf:"bytes,13,opt,name=confConfigMapName"`
ScriptsConfigMapName string `protobuf:"bytes,14,opt,name=scriptsConfigMapName"`
HealthConfigMapName string `protobuf:"bytes,15,opt,name=healthConfigMapName"`
DefaultResources corev1.ResourceRequirements `protobuf:"bytes,16,opt,name=defaultResources"`
}
type GetRedisServiceSpecReq struct {
Labels map[string]string `protobuf:"bytes,1,rep,name=labels"`
RedisContainerPort int32 `protobuf:"bytes,2,opt,name=redisContainerPort"`
SentinelContainerPort int32 `protobuf:"bytes,3,opt,name=sentinelContainerPort"`
}
type GetVertexPodSpecReq struct {
ISBSvcType ISBSvcType `protobuf:"bytes,1,opt,name=isbSvcType"`
Image string `protobuf:"bytes,2,opt,name=image"`
PullPolicy corev1.PullPolicy `protobuf:"bytes,3,opt,name=pullPolicy,casttype=k8s.io/api/core/v1.PullPolicy"`
Env []corev1.EnvVar `protobuf:"bytes,4,rep,name=env"`
SideInputsStoreName string `protobuf:"bytes,5,opt,name=sideInputsStoreName"`
DefaultResources corev1.ResourceRequirements `protobuf:"bytes,6,opt,name=defaultResources"`
}
type GetDaemonDeploymentReq struct {
ISBSvcType ISBSvcType `protobuf:"bytes,1,opt,name=isbSvcType"`
Image string `protobuf:"bytes,2,opt,name=image"`
PullPolicy corev1.PullPolicy `protobuf:"bytes,3,opt,name=pullPolicy,casttype=k8s.io/api/core/v1.PullPolicy"`
Env []corev1.EnvVar `protobuf:"bytes,4,rep,name=env"`
DefaultResources corev1.ResourceRequirements `protobuf:"bytes,5,opt,name=defaultResources"`
}
type GetJetStreamStatefulSetSpecReq struct {
ServiceName string `protobuf:"bytes,1,rep,name=serviceName"`
Labels map[string]string `protobuf:"bytes,2,rep,name=labels"`
NatsImage string `protobuf:"bytes,3,opt,name=natsImage"`
MetricsExporterImage string `protobuf:"bytes,4,opt,name=metricsExporterImage"`
ConfigReloaderImage string `protobuf:"bytes,5,opt,name=configReloaderImage"`
ClusterPort int32 `protobuf:"bytes,6,opt,name=clusterPort"`
ClientPort int32 `protobuf:"bytes,7,opt,name=clientPort"`
MonitorPort int32 `protobuf:"bytes,8,opt,name=monitorPort"`
MetricsPort int32 `protobuf:"bytes,9,opt,name=metricsPort"`
ServerAuthSecretName string `protobuf:"bytes,10,opt,name=serverAuthSecretName"`
ServerEncryptionSecretName string `protobuf:"bytes,11,opt,name=serverEncryptionSecretName"`
ConfigMapName string `protobuf:"bytes,12,opt,name=configMapName"`
PvcNameIfNeeded string `protobuf:"bytes,13,opt,name=pvcNameIfNeeded"`
StartCommand string `protobuf:"bytes,14,opt,name=startCommand"`
DefaultResources corev1.ResourceRequirements `protobuf:"bytes,15,opt,name=defaultResources"`
}
type GetJetStreamServiceSpecReq struct {
Labels map[string]string `protobuf:"bytes,1,rep,name=labels"`
ClusterPort int32 `protobuf:"bytes,2,opt,name=clusterPort"`
ClientPort int32 `protobuf:"bytes,3,opt,name=clientPort"`
MonitorPort int32 `protobuf:"bytes,4,opt,name=monitorPort"`
MetricsPort int32 `protobuf:"bytes,5,opt,name=metricsPort"`
}
type GetSideInputDeploymentReq struct {
ISBSvcType ISBSvcType `protobuf:"bytes,1,opt,name=isbSvcType"`
Image string `protobuf:"bytes,2,opt,name=image"`
PullPolicy corev1.PullPolicy `protobuf:"bytes,3,opt,name=pullPolicy,casttype=k8s.io/api/core/v1.PullPolicy"`
Env []corev1.EnvVar `protobuf:"bytes,4,rep,name=env"`
DefaultResources corev1.ResourceRequirements `protobuf:"bytes,5,opt,name=defaultResources"`
}