Skip to content

Commit

Permalink
[chore] add generated status to oauth2clientauthextension (#20329)
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme authored Mar 29, 2023
1 parent 80cc4d2 commit e6f10a6
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
15 changes: 8 additions & 7 deletions extension/oauth2clientauthextension/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Authenticator - OAuth2 Client Credentials
<!-- status autogenerated section -->
| Status | |
| ------------------------ |-----------|
| Stability | [beta] |
| Distributions | [contrib] |

| Status | |
| ------------------------ |-----------------------|
| Stability | [beta] |
| Distributions | [contrib] |
[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
<!-- end autogenerated section -->


This extension provides OAuth2 Client Credentials flow authenticator for HTTP and gRPC based exporters. The extension
Expand Down Expand Up @@ -72,6 +76,3 @@ Following are the configuration fields
This is optional and not setting this configuration implies there is no timeout on the client.
For more information on client side TLS settings, see [configtls README](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/configtls).
[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta
[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib
2 changes: 2 additions & 0 deletions extension/oauth2clientauthextension/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mdatagen metadata.yaml

// Package oauth2clientauthextension implements `cauth.Client`
// This extension provides OAuth2 Client Credentials flow authenticator for HTTP and gRPC based exporters.
// The extension fetches and refreshes the token after expiry
Expand Down
4 changes: 3 additions & 1 deletion extension/oauth2clientauthextension/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import (
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/extension"
"go.opentelemetry.io/collector/extension/auth"

"github.com/open-telemetry/opentelemetry-collector-contrib/extension/oauth2clientauthextension/internal/metadata"
)

const (
Expand All @@ -33,7 +35,7 @@ func NewFactory() extension.Factory {
typeStr,
createDefaultConfig,
createExtension,
component.StabilityLevelBeta,
metadata.Stability,
)
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions extension/oauth2clientauthextension/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: oauth2clientauthextension

status:
type: extension
stability: beta
distributions: [contrib]

0 comments on commit e6f10a6

Please sign in to comment.