Skip to content

Commit

Permalink
remove deprecated config module
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeblum committed Mar 6, 2025
1 parent bc53d2b commit d789ac2
Show file tree
Hide file tree
Showing 47 changed files with 8 additions and 12,386 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ issues:
- usestdlibvars
# Ignoring gosec G402: TLS MinVersion too low
# as the https://pkg.go.dev/crypto/tls#Config handles MinVersion default well.
- path: config/*.go
- path: otelconf/*.go
text: "G402: TLS MinVersion too low."
linters:
- gosec
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

### Removed

- The deprecated `go.opentelemetry.io/contrib/config` package is removed. (#6894)

<!-- Released section -->
<!-- Don't change this section unless doing release -->

Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,12 @@ OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_VERSION=v0.3.0
genjsonschema-cleanup:
rm -Rf ${OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_SRC_DIR}

GENERATED_CONFIG=./config/${OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_VERSION}/generated_config.go
GENERATED_CONFIG=./otelconf/${OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_VERSION}/generated_config.go

# Generate structs for configuration from opentelemetry-configuration schema
genjsonschema: genjsonschema-cleanup $(GOJSONSCHEMA)
mkdir -p ${OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_SRC_DIR}
mkdir -p ./config/${OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_VERSION}
mkdir -p ./otelconf/${OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_VERSION}
curl -sSL https://api.github.com/repos/open-telemetry/opentelemetry-configuration/tarball/${OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_VERSION} | tar xz --strip 1 -C ${OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_SRC_DIR}
$(GOJSONSCHEMA) \
--capitalization ID \
Expand All @@ -345,7 +345,7 @@ genjsonschema: genjsonschema-cleanup $(GOJSONSCHEMA)
--output ${GENERATED_CONFIG} \
${OPENTELEMETRY_CONFIGURATION_JSONSCHEMA_SRC_DIR}/schema/opentelemetry_configuration.json
@echo Modify jsonschema generated files.
sed -f ./config/jsonschema_patch.sed ${GENERATED_CONFIG} > ${GENERATED_CONFIG}.tmp
sed -f ./otelconf/jsonschema_patch.sed ${GENERATED_CONFIG} > ${GENERATED_CONFIG}.tmp
mv ${GENERATED_CONFIG}.tmp ${GENERATED_CONFIG}
$(MAKE) genjsonschema-cleanup

Expand Down
15 changes: 0 additions & 15 deletions config/doc.go

This file was deleted.

55 changes: 0 additions & 55 deletions config/go.mod

This file was deleted.

106 changes: 0 additions & 106 deletions config/go.sum

This file was deleted.

4 changes: 0 additions & 4 deletions config/jsonschema_patch.sed

This file was deleted.

1 change: 0 additions & 1 deletion config/testdata/bad_cert.crt

This file was deleted.

20 changes: 0 additions & 20 deletions config/testdata/ca.crt

This file was deleted.

1 change: 0 additions & 1 deletion config/testdata/invalid_bool.json

This file was deleted.

2 changes: 0 additions & 2 deletions config/testdata/invalid_bool.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions config/testdata/invalid_nil_name.json

This file was deleted.

13 changes: 0 additions & 13 deletions config/testdata/invalid_nil_name.yaml

This file was deleted.

Loading

0 comments on commit d789ac2

Please sign in to comment.