/
activemqartemis_types.go
231 lines (208 loc) · 12.8 KB
/
activemqartemis_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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
package v2alpha5
import (
"github.com/RHsyseng/operator-utils/pkg/olm"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// ActiveMQArtemisSpec defines the desired state of ActiveMQArtemis
// +k8s:openapi-gen=true
type ActiveMQArtemisSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
AdminUser string `json:"adminUser,omitempty"`
AdminPassword string `json:"adminPassword,omitempty"`
DeploymentPlan DeploymentPlanType `json:"deploymentPlan,omitempty"`
Acceptors []AcceptorType `json:"acceptors,omitempty"`
Connectors []ConnectorType `json:"connectors,omitempty"`
Console ConsoleType `json:"console,omitempty"`
Version string `json:"version,omitempty"`
Upgrades ActiveMQArtemisUpgrades `json:"upgrades,omitempty"`
//below are v2alpha4 types
AddressSettings AddressSettingsType `json:"addressSettings,omitempty"`
}
type AddressSettingsType struct {
ApplyRule *string `json:"applyRule,omitempty"`
AddressSetting []AddressSettingType `json:"addressSetting,omitempty"`
}
type AddressSettingType struct {
DeadLetterAddress *string `json:"deadLetterAddress,omitempty"`
AutoCreateDeadLetterResources *bool `json:"autoCreateDeadLetterResources,omitempty"`
DeadLetterQueuePrefix *string `json:"deadLetterQueuePrefix,omitempty"`
DeadLetterQueueSuffix *string `json:"deadLetterQueueSuffix,omitempty"`
ExpiryAddress *string `json:"expiryAddress,omitempty"`
AutoCreateExpiryResources *bool `json:"autoCreateExpiryResources,omitempty"`
ExpiryQueuePrefix *string `json:"expiryQueuePrefix,omitempty"`
ExpiryQueueSuffix *string `json:"expiryQueueSuffix,omitempty"`
ExpiryDelay *int32 `json:"expiryDelay,omitempty"`
MinExpiryDelay *int32 `json:"minExpiryDelay,omitempty"`
MaxExpiryDelay *int32 `json:"maxExpiryDelay,omitempty"`
RedeliveryDelay *int32 `json:"redeliveryDelay,omitempty"`
RedeliveryDelayMultiplier *float32 `json:"redeliveryDelayMultiplier,omitempty"`
RedeliveryCollisionAvoidanceFactor *float32 `json:"redeliveryCollisionAvoidanceFactor,omitempty"`
MaxRedeliveryDelay *int32 `json:"maxRedeliveryDelay,omitempty"`
MaxDeliveryAttempts *int32 `json:"maxDeliveryAttempts,omitempty"`
MaxSizeBytes *string `json:"maxSizeBytes,omitempty"`
MaxSizeBytesRejectThreshold *int32 `json:"maxSizeBytesRejectThreshold,omitempty"`
PageSizeBytes *string `json:"pageSizeBytes,omitempty"`
PageMaxCacheSize *int32 `json:"pageMaxCacheSize,omitempty"`
AddressFullPolicy *string `json:"addressFullPolicy,omitempty"`
MessageCounterHistoryDayLimit *int32 `json:"messageCounterHistoryDayLimit,omitempty"`
LastValueQueue *bool `json:"lastValueQueue,omitempty"`
DefaultLastValueQueue *bool `json:"defaultLastValueQueue,omitempty"`
DefaultLastValueKey *string `json:"defaultLastValueKey,omitempty"`
DefaultNonDestructive *bool `json:"defaultNonDestructive,omitempty"`
DefaultExclusiveQueue *bool `json:"defaultExclusiveQueue,omitempty"`
DefaultGroupRebalance *bool `json:"defaultGroupRebalance,omitempty"`
DefaultGroupRebalancePauseDispatch *bool `json:"defaultGroupRebalancePauseDispatch,omitempty"`
DefaultGroupBuckets *int32 `json:"defaultGroupBuckets,omitempty"`
DefaultGroupFirstKey *string `json:"defaultGroupFirstKey,omitempty"`
DefaultConsumersBeforeDispatch *int32 `json:"defaultConsumersBeforeDispatch,omitempty"`
DefaultDelayBeforeDispatch *int32 `json:"defaultDelayBeforeDispatch,omitempty"`
RedistributionDelay *int32 `json:"redistributionDelay,omitempty"`
SendToDlaOnNoRoute *bool `json:"sendToDlaOnNoRoute,omitempty"`
SlowConsumerThreshold *int32 `json:"slowConsumerThreshold,omitempty"`
SlowConsumerPolicy *string `json:"slowConsumerPolicy,omitempty"`
SlowConsumerCheckPeriod *int32 `json:"slowConsumerCheckPeriod,omitempty"`
AutoCreateJmsQueues *bool `json:"autoCreateJmsQueues,omitempty"`
AutoDeleteJmsQueues *bool `json:"autoDeleteJmsQueues,omitempty"`
AutoCreateJmsTopics *bool `json:"autoCreateJmsTopics,omitempty"`
AutoDeleteJmsTopics *bool `json:"autoDeleteJmsTopics,omitempty"`
AutoCreateQueues *bool `json:"autoCreateQueues,omitempty"`
AutoDeleteQueues *bool `json:"autoDeleteQueues,omitempty"`
AutoDeleteCreatedQueues *bool `json:"autoDeleteCreatedQueues,omitempty"`
AutoDeleteQueuesDelay *int32 `json:"autoDeleteQueuesDelay,omitempty"`
AutoDeleteQueuesMessageCount *int32 `json:"autoDeleteQueuesMessageCount,omitempty"`
ConfigDeleteQueues *string `json:"configDeleteQueues,omitempty"`
AutoCreateAddresses *bool `json:"autoCreateAddresses,omitempty"`
AutoDeleteAddresses *bool `json:"autoDeleteAddresses,omitempty"`
AutoDeleteAddressesDelay *int32 `json:"autoDeleteAddressesDelay,omitempty"`
ConfigDeleteAddresses *string `json:"configDeleteAddresses,omitempty"`
ManagementBrowsePageSize *int32 `json:"managementBrowsePageSize,omitempty"`
DefaultPurgeOnNoConsumers *bool `json:"defaultPurgeOnNoConsumers,omitempty"`
DefaultMaxConsumers *int32 `json:"defaultMaxConsumers,omitempty"`
DefaultQueueRoutingType *string `json:"defaultQueueRoutingType,omitempty"`
DefaultAddressRoutingType *string `json:"defaultAddressRoutingType,omitempty"`
DefaultConsumerWindowSize *int32 `json:"defaultConsumerWindowSize,omitempty"`
DefaultRingSize *int32 `json:"defaultRingSize,omitempty"`
RetroactiveMessageCount *int32 `json:"retroactiveMessageCount,omitempty"`
EnableMetrics *bool `json:"enableMetrics,omitempty"`
Match string `json:"match,omitempty"`
ManagementMessageAttributeSizeLimit *int32 `json:"managementMessageAttributeSizeLimit,omitempty"`
SlowConsumerThresholdMeasurementUnit *string `json:"slowConsumerThresholdMeasurementUnit,omitempty"`
EnableIngressTimestamp *bool `json:"enableIngressTimestamp,omitempty"`
}
type DeploymentPlanType struct {
Image string `json:"image,omitempty"`
InitImage string `json:"initImage,omitempty"`
Size int32 `json:"size,omitempty"`
RequireLogin bool `json:"requireLogin,omitempty"`
PersistenceEnabled bool `json:"persistenceEnabled,omitempty"`
JournalType string `json:"journalType,omitempty"`
MessageMigration *bool `json:"messageMigration,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
Storage StorageType `json:"storage,omitempty"`
JolokiaAgentEnabled bool `json:"jolokiaAgentEnabled,omitempty"`
ManagementRBACEnabled bool `json:"managementRBACEnabled,omitempty"`
ExtraMounts ExtraMountsType `json:"extraMounts,omitempty"`
Clustered *bool `json:"clustered,omitempty"`
PodSecurity PodSecurityType `json:"podSecurity,omitempty"`
LivenessProbe LivenessProbeType `json:"livenessProbe,omitempty"`
ReadinessProbe ReadinessProbeType `json:"readinessProbe,omitempty"`
EnableMetricsPlugin *bool `json:"enableMetricsPlugin,omitempty"`
}
type LivenessProbeType struct {
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
}
type ReadinessProbeType struct {
TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
}
type PodSecurityType struct {
ServiceAccountName *string `json:"serviceAccountName,omitempty"`
RunAsUser *int64 `json:"runAsUser,omitempty"`
}
type ExtraMountsType struct {
ConfigMaps []string `json:"configMaps,omitempty"`
Secrets []string `json:"secrets,omitempty"`
}
type StorageType struct {
Size string `json:"size,omitempty"`
}
type AcceptorType struct {
Name string `json:"name"`
Port int32 `json:"port,omitempty"`
Protocols string `json:"protocols,omitempty"`
SSLEnabled bool `json:"sslEnabled,omitempty"`
SSLSecret string `json:"sslSecret,omitempty"`
EnabledCipherSuites string `json:"enabledCipherSuites,omitempty"`
EnabledProtocols string `json:"enabledProtocols,omitempty"`
NeedClientAuth bool `json:"needClientAuth,omitempty"`
WantClientAuth bool `json:"wantClientAuth,omitempty"`
VerifyHost bool `json:"verifyHost,omitempty"`
SSLProvider string `json:"sslProvider,omitempty"`
SNIHost string `json:"sniHost,omitempty"`
Expose bool `json:"expose,omitempty"`
AnycastPrefix string `json:"anycastPrefix,omitempty"`
MulticastPrefix string `json:"multicastPrefix,omitempty"`
ConnectionsAllowed int `json:"connectionsAllowed,omitempty"`
AMQPMinLargeMessageSize int `json:"amqpMinLargeMessageSize,omitempty"`
SupportAdvisory *bool `json:"supportAdvisory,omitempty"`
SuppressInternalManagementObjects *bool `json:"suppressInternalManagementObjects,omitempty"`
}
type ConnectorType struct {
Name string `json:"name"`
Type string `json:"type,omitempty"`
Host string `json:"host"`
Port int32 `json:"port"`
SSLEnabled bool `json:"sslEnabled,omitempty"`
SSLSecret string `json:"sslSecret,omitempty"`
EnabledCipherSuites string `json:"enabledCipherSuites,omitempty"`
EnabledProtocols string `json:"enabledProtocols,omitempty"`
NeedClientAuth bool `json:"needClientAuth,omitempty"`
WantClientAuth bool `json:"wantClientAuth,omitempty"`
VerifyHost bool `json:"verifyHost,omitempty"`
SSLProvider string `json:"sslProvider,omitempty"`
SNIHost string `json:"sniHost,omitempty"`
Expose bool `json:"expose,omitempty"`
}
type ConsoleType struct {
Expose bool `json:"expose,omitempty"`
SSLEnabled bool `json:"sslEnabled,omitempty"`
SSLSecret string `json:"sslSecret,omitempty"`
UseClientAuth bool `json:"useClientAuth,omitempty"`
}
// ActiveMQArtemis App product upgrade flags
type ActiveMQArtemisUpgrades struct {
Enabled bool `json:"enabled"`
Minor bool `json:"minor"`
}
// ActiveMQArtemisStatus defines the observed state of ActiveMQArtemis
// +k8s:openapi-gen=true
type ActiveMQArtemisStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
// Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html
PodStatus olm.DeploymentStatus `json:"podStatus"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ActiveMQArtemis is the Schema for the activemqartemis API
// +k8s:openapi-gen=true
// +genclient
type ActiveMQArtemis struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ActiveMQArtemisSpec `json:"spec,omitempty"`
Status ActiveMQArtemisStatus `json:"status,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ActiveMQArtemisList contains a list of ActiveMQArtemis
type ActiveMQArtemisList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ActiveMQArtemis `json:"items"`
}
func init() {
SchemeBuilder.Register(&ActiveMQArtemis{}, &ActiveMQArtemisList{})
}