Skip to content

Commit

Permalink
Resume label_set to empty array as bug was fixed in upstream after 0.…
Browse files Browse the repository at this point in the history
…112.0
  • Loading branch information
tiffanny29631 committed Jan 16, 2025
1 parent 1587b72 commit d22faf6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ COSIGN := $(BIN_DIR)/cosign
GIT_SYNC_VERSION := v4.3.0-gke.4__linux_amd64
GIT_SYNC_IMAGE_NAME := gcr.io/config-management-release/git-sync:$(GIT_SYNC_VERSION)

OTELCONTRIBCOL_VERSION := v0.115.0-gke.0
OTELCONTRIBCOL_VERSION := v0.117.0-gke.0 # TODO: This version needs to be updated build with the correct base image and configured ports.
OTELCONTRIBCOL_IMAGE_NAME := gcr.io/config-management-release/otelcontribcol:$(OTELCONTRIBCOL_VERSION)

# Directory used for staging Docker contexts.
Expand Down
22 changes: 6 additions & 16 deletions pkg/metrics/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,7 @@ processors:
new_name: current_declared_resources
operations:
- action: aggregate_labels
# Using a no_op_label to get around issue in the upstream
# https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/34430
label_set: [no_op_label]
label_set: []
aggregation_type: max
- include: kcc_resource_count
action: update
Expand Down Expand Up @@ -258,18 +256,14 @@ processors:
new_name: resource_conflicts_count
operations:
- action: aggregate_labels
# Using a no_op_label to get around issue in the upstream
# https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/34430
label_set: [no_op_label]
label_set: []
aggregation_type: max
- include: internal_errors_total
action: update
new_name: internal_errors_count
operations:
- action: aggregate_labels
# Using a no_op_label to get around issue in the upstream
# https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/34430
label_set: [no_op_label]
label_set: []
aggregation_type: max
- include: remediate_duration_seconds
action: update
Expand Down Expand Up @@ -329,21 +323,17 @@ processors:
action: update
operations:
- action: aggregate_labels
# Using a no_op_label to get around issue in the upstream
# https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/34430
label_set: [no_op_label]
label_set: []
aggregation_type: max
- include: kustomize_build_latency
action: update
operations:
- action: aggregate_labels
# Using a no_op_label to get around issue in the upstream
# https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/34430
label_set: [no_op_label]
label_set: []
aggregation_type: max
extensions:
health_check:
endpoint: "0.0.0.0:13133"
endpoint: 0.0.0.0:13133
service:
extensions: [health_check]
pipelines:
Expand Down
2 changes: 1 addition & 1 deletion pkg/reconcilermanager/controllers/otel_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const (
// otel-collector ConfigMap.
// See `CollectorConfigGooglecloud` in `pkg/metrics/otel.go`
// Used by TestOtelReconcilerGooglecloud.
depAnnotationGooglecloud = "5e22170ef10a382f587d3d7595fdaebc"
depAnnotationGooglecloud = "e2fc77f25de5df75866195ff0d00f6df"
// depAnnotationGooglecloud is the expected hash of the custom
// otel-collector ConfigMap test artifact.
// Used by TestOtelReconcilerCustom.
Expand Down
17 changes: 0 additions & 17 deletions test/kustomization/expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6538,23 +6538,6 @@ spec:
name: resource-group-otel-agent
name: otel-agent-config-vol
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-port-ingress
namespace: config-management-monitoring
spec:
ingress:
- from:
- namespaceSelector: {}
ports:
- port: 55678
protocol: TCP
podSelector:
matchLabels:
app: opentelemetry
component: otel-collector
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
Expand Down

0 comments on commit d22faf6

Please sign in to comment.