Skip to content

Support rust generic runtime - #688

Merged
jiangpengcheng merged 8 commits into
masterfrom
support_rust_generic_runtime
Oct 23, 2023
Merged

jiangpengcheng merged 8 commits into
masterfrom
support_rust_generic_runtime

Conversation

@jiangpengcheng

Copy link
Copy Markdown
Member

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #

Motivation

Explain here the context, and why you're making that change. What is the problem you're trying to solve.

Modifications

Describe the modifications you've done.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@github-actions github-actions Bot added the doc-required This pr needs a document label Sep 14, 2023
@jiangpengcheng
jiangpengcheng force-pushed the support_rust_generic_runtime branch from 5f0ae33 to 4876669 Compare October 23, 2023 01:53
@jiangpengcheng
jiangpengcheng marked this pull request as ready for review October 23, 2023 02:13
@jiangpengcheng
jiangpengcheng requested review from a team, freeznet and nlu90 as code owners October 23, 2023 02:13
fail-fast: false
matrix:
go-version: [1.18, 1.19, 1.20.4]
go-version: [1.19, 1.20.4]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the module setup-envtest requires go>=1.19, https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest


func (o *OAuth2Config) AuthenticationParameters() string {
return fmt.Sprintf(`'{"privateKey":"%s","private_key":"%s","issuerUrl":"%s","issuer_url":"%s","audience":"%s","scope":"%s"}'`, o.GetMountFile(), o.GetMountFile(), o.IssuerURL, o.IssuerURL, o.Audience, o.Scope)
return fmt.Sprintf(`'{"credentials_url":"file://%s","privateKey":"%s","private_key":"%s","issuerUrl":"%s","issuer_url":"%s","audience":"%s","scope":"%s"}'`, o.GetMountFile(), o.GetMountFile(), o.GetMountFile(), o.IssuerURL, o.IssuerURL, o.Audience, o.Scope)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pulsar rust client uses credentials_url instead of private_key for OAuth2 authentication

@jiangpengcheng
jiangpengcheng merged commit 606dc73 into master Oct 23, 2023
@jiangpengcheng
jiangpengcheng deleted the support_rust_generic_runtime branch October 23, 2023 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-required This pr needs a document m/2023-10

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants