Skip to content

Commit

Permalink
makes telemetryService suffix a local const
Browse files Browse the repository at this point in the history
  • Loading branch information
aorcholski committed Jan 27, 2025
1 parent dc65065 commit 86f055b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pkg/api/v1beta3/dynakube/telemetryservice/props.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package telemetryservice

import "github.com/Dynatrace/dynatrace-operator/pkg/consts"

type Protocol string

const (
telemetryServiceSuffix = "-telemetry"

OtlpProtocol Protocol = "otlp"
ZipkinProtocol Protocol = "zipkin"
JaegerProtocol Protocol = "jaeger"
Expand Down Expand Up @@ -38,7 +38,7 @@ func (spec *Spec) GetProtocols() []Protocol {
}

func (ts *TelemetryService) GetName(dynakubeName string) string {
return dynakubeName + consts.TelemetryServiceSuffix
return dynakubeName + telemetryServiceSuffix
}

func (ts *TelemetryService) IsEnabled() bool {
Expand Down
2 changes: 0 additions & 2 deletions pkg/consts/otelc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ const (
OtelcTokenSecretKey = "otelc.token"
OtelcTokenSecretValuePrefix = "dt0x01"
OtelCollectorComPort = 14599

TelemetryServiceSuffix = "-telemetry"
)

0 comments on commit 86f055b

Please sign in to comment.