@@ -58,39 +58,43 @@ import (
58
58
type ShardingDatabaseSpec struct {
59
59
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
60
60
// Important: Run "make" to regenerate code after modifying this file
61
- Shard []ShardSpec `json:"shard"`
62
- Catalog []CatalogSpec `json:"catalog"` // The catalogSpes accept all the catalog parameters
63
- Gsm []GsmSpec `json:"gsm"` // The GsmSpec will accept all the Gsm parameter
64
- StorageClass string `json:"storageClass,omitempty"` // Optional Accept storage class name
65
- DbImage string `json:"dbImage"` // Accept DB Image name
66
- DbImagePullSecret string `json:"dbImagePullSecret,omitempty"` // Optional The name of an image pull secret in case of a private docker repository.
67
- GsmImage string `json:"gsmImage"` // Acccept the GSM image name
68
- GsmImagePullSecret string `json:"gsmImagePullSecret,omitempty"` // Optional The name of an image pull secret in case of a private docker repository.
69
- StagePvcName string `json:"stagePvcName,omitempty"` // the Stagepvc for the backup of cluster
70
- PortMappings []PortMapping `json:"portMappings,omitempty"` // Port mappings for the service that is created. The service is created if there is at least
71
- Namespace string `json:"namespace,omitempty"` // Target namespace of the application.
72
- IsDebug bool `json:"isDebug,omitempty"` // Optional parameter to enable logining
73
- IsExternalSvc bool `json:"isExternalSvc,omitempty"`
74
- IsClone bool `json:"isClone,omitempty"`
75
- IsDataGuard bool `json:"isDataGuard,omitempty"`
76
- ScriptsLocation string `json:"scriptsLocation,omitempty"`
77
- IsDeleteOraPvc bool `json:"isDeleteOraPvc,omitempty"`
78
- ReadinessCheckPeriod int `json:"readinessCheckPeriod,omitempty"`
79
- LivenessCheckPeriod int `json:"liveinessCheckPeriod,omitempty"`
80
- ReplicationType string `json:"replicationType,omitempty"`
81
- IsDownloadScripts bool `json:"isDownloadScripts,omitempty"`
82
- InvitedNodeSubnetFlag string `json:"invitedNodeSubnetFlag,omitempty"`
83
- InvitedNodeSubnet string `json:"InvitedNodeSubnet,omitempty"`
84
- ShardingType string `json:"shardingType,omitempty"`
85
- GsmShardSpace []GsmShardSpaceSpec `json:"gsmShardSpace,omitempty"`
86
- GsmShardGroup []GsmShardGroupSpec `json:"gsmShardGroup,omitempty"`
87
- ShardRegion []string `json:"shardRegion,omitempty"`
88
- ShardBuddyRegion string `json:"shardBuddyRegion,omitempty"`
89
- GsmService []GsmServiceSpec `json:"gsmService,omitempty"`
90
- ShardConfigName string `json:"shardConfigName,omitempty"`
91
- GsmDevMode string `json:"gsmDevMode,omitempty"`
92
- DbSecret * SecretDetails `json:"dbSecret,omitempty"` // Secret Name to be used with Shard
93
- IsTdeWallet bool `json:"isTdeWallet,omitempty"`
61
+ Shard []ShardSpec `json:"shard"`
62
+ Catalog []CatalogSpec `json:"catalog"` // The catalogSpes accept all the catalog parameters
63
+ Gsm []GsmSpec `json:"gsm"` // The GsmSpec will accept all the Gsm parameter
64
+ StorageClass string `json:"storageClass,omitempty"` // Optional Accept storage class name
65
+ DbImage string `json:"dbImage"` // Accept DB Image name
66
+ DbImagePullSecret string `json:"dbImagePullSecret,omitempty"` // Optional The name of an image pull secret in case of a private docker repository.
67
+ GsmImage string `json:"gsmImage"` // Acccept the GSM image name
68
+ GsmImagePullSecret string `json:"gsmImagePullSecret,omitempty"` // Optional The name of an image pull secret in case of a private docker repository.
69
+ StagePvcName string `json:"stagePvcName,omitempty"` // the Stagepvc for the backup of cluster
70
+ PortMappings []PortMapping `json:"portMappings,omitempty"` // Port mappings for the service that is created. The service is created if there is at least
71
+ Namespace string `json:"namespace,omitempty"` // Target namespace of the application.
72
+ IsDebug bool `json:"isDebug,omitempty"` // Optional parameter to enable logining
73
+ IsExternalSvc bool `json:"isExternalSvc,omitempty"`
74
+ IsClone bool `json:"isClone,omitempty"`
75
+ IsDataGuard bool `json:"isDataGuard,omitempty"`
76
+ ScriptsLocation string `json:"scriptsLocation,omitempty"`
77
+ IsDeleteOraPvc bool `json:"isDeleteOraPvc,omitempty"`
78
+ ReadinessCheckPeriod int `json:"readinessCheckPeriod,omitempty"`
79
+ LivenessCheckPeriod int `json:"liveinessCheckPeriod,omitempty"`
80
+ ReplicationType string `json:"replicationType,omitempty"`
81
+ IsDownloadScripts bool `json:"isDownloadScripts,omitempty"`
82
+ InvitedNodeSubnetFlag string `json:"invitedNodeSubnetFlag,omitempty"`
83
+ InvitedNodeSubnet string `json:"InvitedNodeSubnet,omitempty"`
84
+ ShardingType string `json:"shardingType,omitempty"`
85
+ GsmShardSpace []GsmShardSpaceSpec `json:"gsmShardSpace,omitempty"`
86
+ GsmShardGroup []GsmShardGroupSpec `json:"gsmShardGroup,omitempty"`
87
+ ShardRegion []string `json:"shardRegion,omitempty"`
88
+ ShardBuddyRegion string `json:"shardBuddyRegion,omitempty"`
89
+ GsmService []GsmServiceSpec `json:"gsmService,omitempty"`
90
+ ShardConfigName string `json:"shardConfigName,omitempty"`
91
+ GsmDevMode string `json:"gsmDevMode,omitempty"`
92
+ DbSecret * SecretDetails `json:"dbSecret,omitempty"` // Secret Name to be used with Shard
93
+ IsTdeWallet string `json:"isTdeWallet,omitempty"`
94
+ TdeWalletPvc string `json:"tdeWalletPvc,omitempty"`
95
+ FssStorageClass string `json:"fssStorageClass,omitempty"`
96
+ TdeWalletPvcMountLocation string `json:"tdeWalletPvcMountLocation,omitempty"`
97
+ DbEdition string `json:"dbEdition,omitempty"`
94
98
}
95
99
96
100
// To understand Metav1.Condition, please refer the link https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1
@@ -164,21 +168,22 @@ type ShardingDatabaseList struct {
164
168
// ShardSpec is a specification of Shards for an application deployment.
165
169
// +k8s:openapi-gen=true
166
170
type ShardSpec struct {
167
- Name string `json:"name"` // Shard name that will be used deploy StatefulSet
168
- StorageSizeInGb int32 `json:"storageSizeInGb,omitempty"` // Optional Shard Storage Size
169
- EnvVars []EnvironmentVariable `json:"envVars,omitempty"` //Optional Env variables for Shards
170
- Resources * corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,1,opt,name=resources"` //Optional resource requirement for the container.
171
- PvcName string `json:"pvcName,omitempty"`
172
- Label string `json:"label,omitempty"`
173
- IsDelete bool `json:"isDelete,omitempty"`
174
- NodeSelector map [string ]string `json:"nodeSelector,omitempty"`
175
- PvAnnotations map [string ]string `json:"pvAnnotations,omitempty"`
176
- PvMatchLabels map [string ]string `json:"pvMatchLabels,omitempty"`
177
- ImagePulllPolicy * corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
178
- ShardSpace string `json:"shardSpace,omitempty"`
179
- ShardGroup string `json:"shardGroup,omitempty"`
180
- ShardRegion string `json:"shardRegion,omitempty"`
181
- DeployAs string `json:"deployAs,omitempty"`
171
+ Name string `json:"name"` // Shard name that will be used deploy StatefulSet
172
+ StorageSizeInGb int32 `json:"storageSizeInGb,omitempty"` // Optional Shard Storage Size
173
+ EnvVars []EnvironmentVariable `json:"envVars,omitempty"` //Optional Env variables for Shards
174
+ Resources * corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,1,opt,name=resources"` //Optional resource requirement for the container.
175
+ PvcName string `json:"pvcName,omitempty"`
176
+ Label string `json:"label,omitempty"`
177
+ // +kubebuilder:validation:Enum=enable;disable;failed;force
178
+ IsDelete string `json:"isDelete,omitempty"`
179
+ NodeSelector map [string ]string `json:"nodeSelector,omitempty"`
180
+ PvAnnotations map [string ]string `json:"pvAnnotations,omitempty"`
181
+ PvMatchLabels map [string ]string `json:"pvMatchLabels,omitempty"`
182
+ ImagePulllPolicy * corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
183
+ ShardSpace string `json:"shardSpace,omitempty"`
184
+ ShardGroup string `json:"shardGroup,omitempty"`
185
+ ShardRegion string `json:"shardRegion,omitempty"`
186
+ DeployAs string `json:"deployAs,omitempty"`
182
187
}
183
188
184
189
// CatalogSpec defines the desired state of CatalogSpec
@@ -190,7 +195,7 @@ type CatalogSpec struct {
190
195
Resources * corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,1,opt,name=resources"` // Optional resource requirement for the container.
191
196
PvcName string `json:"pvcName,omitempty"`
192
197
Label string `json:"label,omitempty"`
193
- IsDelete bool `json:"isDelete,omitempty"`
198
+ IsDelete string `json:"isDelete,omitempty"`
194
199
NodeSelector map [string ]string `json:"nodeSelector,omitempty"`
195
200
PvAnnotations map [string ]string `json:"pvAnnotations,omitempty"`
196
201
PvMatchLabels map [string ]string `json:"pvMatchLabels,omitempty"`
@@ -208,7 +213,7 @@ type GsmSpec struct {
208
213
Resources * corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,1,opt,name=resources"` // Optional resource requirement for the container.
209
214
PvcName string `json:"pvcName,omitempty"`
210
215
Label string `json:"label,omitempty"` // Optional GSM Label
211
- IsDelete bool `json:"isDelete,omitempty"`
216
+ IsDelete string `json:"isDelete,omitempty"`
212
217
NodeSelector map [string ]string `json:"nodeSelector,omitempty"`
213
218
PvMatchLabels map [string ]string `json:"pvMatchLabels,omitempty"`
214
219
ImagePulllPolicy * corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
0 commit comments