Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add dynamic client support to internal cmd package #5477

Merged
merged 10 commits into from
Nov 29, 2022

Conversation

eddycharly
Copy link
Member

Explanation

This PR adds dynamic client support to internal cmd package.

eddycharly and others added 2 commits November 25, 2022 15:11
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
@codecov
Copy link

codecov bot commented Nov 25, 2022

Codecov Report

Merging #5477 (4417736) into main (21da0f3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #5477   +/-   ##
=======================================
  Coverage   36.44%   36.44%           
=======================================
  Files         171      171           
  Lines       19141    19141           
=======================================
  Hits         6975     6975           
  Misses      11374    11374           
  Partials      792      792           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

realshuting
realshuting previously approved these changes Nov 28, 2022

func CreateDClient(logger logr.Logger, ctx context.Context, dyn dynamic.Interface, kube kubernetes.Interface, resync time.Duration) dclient.Interface {
logger = logger.WithName("d-client")
logger.Info("create d client...", "kubeconfig", kubeconfig, "qps", clientRateLimitQPS, "burst", clientRateLimitBurst)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe good to change to "create dynamic client...".

Copy link
Member

Choose a reason for hiding this comment

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

Updated.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, but we already have a dynamic client thing, the one from kube ;)

Copy link
Member

Choose a reason for hiding this comment

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

Ops, I did not check that. Any other suggestions?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was short on ideas here :(

Copy link
Member Author

Choose a reason for hiding this comment

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

But I definitely agree the name sucks.

Copy link
Member

Choose a reason for hiding this comment

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

"the Kyverno dynamic client"? At least if differs from the other one.

cmd/internal/client.go Outdated Show resolved Hide resolved
Signed-off-by: shuting <shutting06@gmail.com>
@realshuting realshuting enabled auto-merge (squash) November 28, 2022 09:40
realshuting
realshuting previously approved these changes Nov 28, 2022
@realshuting realshuting self-assigned this Nov 28, 2022
eddycharly and others added 2 commits November 28, 2022 21:42
Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
cmd/internal/client.go Outdated Show resolved Hide resolved
Signed-off-by: shuting <shutting06@gmail.com>
@realshuting realshuting merged commit 8f6c3e6 into kyverno:main Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants