Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <[email protected]>
  • Loading branch information
pavolloffay committed Jul 28, 2023
1 parent 29a239c commit 58e6a70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions pkg/collector/parser/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ import (
"github.com/open-telemetry/opentelemetry-operator/pkg/naming"
)

var (
// DNS_LABEL constraints: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names
dnsLabelValidation = regexp.MustCompile("^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$")
)

// ReceiverParser is an interface that should be implemented by all receiver parsers.
type ReceiverParser interface {
// Ports returns the service ports parsed based on the receiver's configuration
Expand Down
2 changes: 1 addition & 1 deletion pkg/targetallocator/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
)

func ConfigMap(instance v1alpha1.OpenTelemetryCollector) (corev1.ConfigMap, error) {
name := naming.TAConfigMap(instance)
name := naming.TAConfigMap(instance.Name)
version := strings.Split(instance.Spec.Image, ":")
labels := Labels(instance, name)
if len(version) > 1 {
Expand Down

0 comments on commit 58e6a70

Please sign in to comment.