Skip to content

Commit 18b9c98

Browse files
authored
remove logTopic from connector CRD (#242)
* remove logTopic from connector CRD * remove logTopic from mesh-worker-service * remove logTopic
1 parent a78823e commit 18b9c98

9 files changed

Lines changed: 0 additions & 28 deletions

File tree

api/v1alpha1/sink_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ type SinkSpec struct {
3737
Replicas *int32 `json:"replicas,omitempty"`
3838
MaxReplicas *int32 `json:"maxReplicas,omitempty"` // if provided, turn on autoscaling
3939
Input InputConf `json:"input,omitempty"`
40-
LogTopic string `json:"logTopic,omitempty"`
4140
SinkConfig map[string]string `json:"sinkConfig,omitempty"`
4241
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
4342
SecretsMap map[string]SecretRef `json:"secretsMap,omitempty"`

api/v1alpha1/source_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ type SourceSpec struct {
3737
Replicas *int32 `json:"replicas,omitempty"`
3838
MaxReplicas *int32 `json:"maxReplicas,omitempty"` // if provided, turn on autoscaling
3939
Output OutputConf `json:"output,omitempty"`
40-
LogTopic string `json:"logTopic,omitempty"`
4140
SourceConfig map[string]string `json:"sourceConfig,omitempty"`
4241
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
4342
SecretsMap map[string]SecretRef `json:"secretsMap,omitempty"`

config/crd/bases/compute.functionmesh.io_functionmeshes.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,8 +2373,6 @@ spec:
23732373
jarLocation:
23742374
type: string
23752375
type: object
2376-
logTopic:
2377-
type: string
23782376
maxMessageRetry:
23792377
format: int32
23802378
type: integer
@@ -4474,8 +4472,6 @@ spec:
44744472
jarLocation:
44754473
type: string
44764474
type: object
4477-
logTopic:
4478-
type: string
44794475
maxReplicas:
44804476
format: int32
44814477
type: integer

config/crd/bases/compute.functionmesh.io_sinks.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ spec:
134134
jarLocation:
135135
type: string
136136
type: object
137-
logTopic:
138-
type: string
139137
maxMessageRetry:
140138
format: int32
141139
type: integer

config/crd/bases/compute.functionmesh.io_sources.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ spec:
5656
jarLocation:
5757
type: string
5858
type: object
59-
logTopic:
60-
type: string
6159
maxReplicas:
6260
format: int32
6361
type: integer

controllers/spec/utils.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ func convertSourceDetails(source *v1alpha1.Source) *proto.FunctionDetails {
207207
Namespace: source.Namespace,
208208
Name: source.Name,
209209
ClassName: "org.apache.pulsar.functions.api.utils.IdentityFunction",
210-
LogTopic: source.Spec.LogTopic,
211210
ProcessingGuarantees: convertProcessingGuarantee(source.Spec.ProcessingGuarantee),
212211
UserConfig: getUserConfig(source.Spec.SourceConfig),
213212
SecretsMap: marshalSecretsMap(source.Spec.SecretsMap),
@@ -261,7 +260,6 @@ func convertSinkDetails(sink *v1alpha1.Sink) *proto.FunctionDetails {
261260
Namespace: sink.Namespace,
262261
Name: sink.Name,
263262
ClassName: "org.apache.pulsar.functions.api.utils.IdentityFunction",
264-
LogTopic: sink.Spec.LogTopic,
265263
ProcessingGuarantees: convertProcessingGuarantee(sink.Spec.ProcessingGuarantee),
266264
SecretsMap: marshalSecretsMap(sink.Spec.SecretsMap),
267265
Runtime: proto.FunctionDetails_JAVA,

manifests/crd.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,8 +2371,6 @@ spec:
23712371
jarLocation:
23722372
type: string
23732373
type: object
2374-
logTopic:
2375-
type: string
23762374
maxMessageRetry:
23772375
format: int32
23782376
type: integer
@@ -4472,8 +4470,6 @@ spec:
44724470
jarLocation:
44734471
type: string
44744472
type: object
4475-
logTopic:
4476-
type: string
44774473
maxReplicas:
44784474
format: int32
44794475
type: integer
@@ -9078,8 +9074,6 @@ spec:
90789074
jarLocation:
90799075
type: string
90809076
type: object
9081-
logTopic:
9082-
type: string
90839077
maxMessageRetry:
90849078
format: int32
90859079
type: integer
@@ -11243,8 +11237,6 @@ spec:
1124311237
jarLocation:
1124411238
type: string
1124511239
type: object
11246-
logTopic:
11247-
type: string
1124811240
maxReplicas:
1124911241
format: int32
1125011242
type: integer

mesh-worker-service/src/main/java/io/functionmesh/compute/util/SinksUtil.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,6 @@ public static V1alpha1Sink createV1alpha1SkinFromSinkConfig(String kind, String
219219
v1alpha1SinkSpec.setTimeout((int) functionDetails.getSource().getTimeoutMs());
220220
}
221221

222-
if (Strings.isNotEmpty(functionDetails.getLogTopic())) {
223-
v1alpha1SinkSpec.setLogTopic(functionDetails.getLogTopic());
224-
}
225-
226222
if (functionDetails.hasRetryDetails()) {
227223
v1alpha1SinkSpec.setMaxMessageRetry(functionDetails.getRetryDetails().getMaxMessageRetries());
228224
if (Strings.isNotEmpty(functionDetails.getRetryDetails().getDeadLetterTopic())) {

mesh-worker-service/src/main/java/io/functionmesh/compute/util/SourcesUtil.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,6 @@ public static V1alpha1Source createV1alpha1SourceFromSourceConfig(String kind, S
181181

182182
v1alpha1SourceSpec.setOutput(v1alpha1SourceSpecOutput);
183183

184-
if (!org.apache.commons.lang3.StringUtils.isEmpty(functionDetails.getLogTopic())) {
185-
v1alpha1SourceSpec.setLogTopic(functionDetails.getLogTopic());
186-
}
187-
188184
v1alpha1SourceSpec.setReplicas(functionDetails.getParallelism());
189185
if (customRuntimeOptions.getMaxReplicas() > functionDetails.getParallelism()) {
190186
v1alpha1SourceSpec.setMaxReplicas(customRuntimeOptions.getMaxReplicas());

0 commit comments

Comments
 (0)