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

⚠ Remove DelegatedClient, move Options in client.New #2150

Merged
merged 1 commit into from Jan 31, 2023

Conversation

vincepri
Copy link
Member

Signed-off-by: Vince Prignano vincepri@redhat.com

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 27, 2023
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 27, 2023
@vincepri
Copy link
Member Author

/retest

flake

@vincepri
Copy link
Member Author

/retest

1 similar comment
@vincepri
Copy link
Member Author

/retest

Copy link
Contributor

@FillZpp FillZpp left a comment

Choose a reason for hiding this comment

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

Nice change, I have seen many ppl confused by the hidden DelegatedClient.

pkg/manager/manager.go Show resolved Hide resolved
pkg/cluster/cluster.go Show resolved Hide resolved
@vincepri
Copy link
Member Author

/assign @sbueringer @FillZpp @alvaroaleman

Signed-off-by: Vince Prignano <vincepri@redhat.com>
@FillZpp
Copy link
Contributor

FillZpp commented Jan 31, 2023

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 31, 2023
@k8s-ci-robot k8s-ci-robot merged commit 69aa3cb into kubernetes-sigs:master Jan 31, 2023
irbekrm added a commit to irbekrm/istio-csr that referenced this pull request May 24, 2023
Following c/r change in kubernetes-sigs/controller-runtime#2150

Signed-off-by: irbekrm <irbekrm@gmail.com>
irbekrm added a commit to irbekrm/istio-csr that referenced this pull request May 26, 2023
…client

Following c/r change in kubernetes-sigs/controller-runtime#2150

Signed-off-by: irbekrm <irbekrm@gmail.com>
aleskandro added a commit to aleskandro/machine-api-provider-aws that referenced this pull request Jun 1, 2023
… namespace

kubernetes-sigs/controller-runtime#2150 deprecated the DelegatedClient and added the CacheOption to the client.Options struct.

This commit sync the newConfigManagedClient method with that deprecation.
aleskandro added a commit to aleskandro/machine-api-provider-aws that referenced this pull request Jun 1, 2023
… namespace

kubernetes-sigs/controller-runtime#2150 deprecated the DelegatedClient and added
the CacheOption to the client.Options struct.
This commit sync the newConfigManagedClient method with that deprecation.
yitsushi added a commit to weaveworks/weave-gitops that referenced this pull request Oct 27, 2023
With the update, some other calls had to be updated:
- `NewDiscoveryRESTMapper` expects an extra `HTTPClient` argument
- `client` does not have `NewDelegatingClient` anymore, instead we can
  create the same resource with `client.New(...)`

Resolves #3812

References:
- #3812
- kubernetes-sigs/controller-runtime#2150
- https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.0

Signed-off-by: Balazs Nadasdi <balazs@weave.works>
AsmaaNabilBakr pushed a commit to weaveworks/weave-gitops that referenced this pull request Nov 6, 2023
With the update, some other calls had to be updated:
- `NewDiscoveryRESTMapper` expects an extra `HTTPClient` argument
- `client` does not have `NewDelegatingClient` anymore, instead we can
  create the same resource with `client.New(...)`

Resolves #3812

References:
- #3812
- kubernetes-sigs/controller-runtime#2150
- https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.0

Signed-off-by: Balazs Nadasdi <balazs@weave.works>
AsmaaNabilBakr added a commit to weaveworks/weave-gitops that referenced this pull request Nov 7, 2023
* fix duplicate icons

* policy icon size

* fix audit icon size

* update icon

* refactor: refactor away from deprecated wait.Poll calls

With the update, some other calls had to be updated:
- `NewDiscoveryRESTMapper` expects an extra `HTTPClient` argument
- `client` does not have `NewDelegatingClient` anymore, instead we can
  create the same resource with `client.New(...)`

Resolves #3812

References:
- #3812
- kubernetes-sigs/controller-runtime#2150
- https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.0

Signed-off-by: Balazs Nadasdi <balazs@weave.works>

* try to update github.com/fluxcd/pkg/runtime to the earliest version with updated controller-runtime

Signed-off-by: Balazs Nadasdi <balazs@weave.works>

* Cleanup datatable (#4091)

* cleanup datatable

* sort filtered items by `sortValue || value`

* Update pkg/run/session/connect/connect.go

Co-authored-by: Yiannis Triantafyllopoulos <8741709+yiannistri@users.noreply.github.com>

* Refactoring Status column  (#4098)

* fix: Remove GitOps Run CLI commands

* Replace the Sync/Suspend/Resume controls, used in the `SyncActions` and `CheckboxActions` components, with the new Sync/Suspend/Resume controls (the `SyncControl` component) (#4080)

* Create the new `SyncControls` component for Sync/Suspend/Resume controls.

* Move all components, related to syncing and suspending objects (existing `SyncActions` and `CheckboxActions` and new `SyncControls` and `ResumeIcon`), to the `Sync` folder.

* Update the related UI snapshot.

* Add `SyncControls` to exports.

* Move custom actions to the start (left) of `SyncControls` buttons.

* Re-arrange icons in `IconType` alphabetically.

* add new svg icon as CLusterDiscovery icon

* fix typo

* update import order

* build(deps): Bump google.golang.org/grpc from 1.51.0 to 1.56.3

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.51.0 to 1.56.3.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.51.0...v1.56.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): Bump github.com/weaveworks/tf-controller/api version

* build(deps): Bump postcss from 8.4.21 to 8.4.31 in /website

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.21 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.4.21...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: Remove GitOps Run components

* build(deps): Remove gitops bucket server from build

* chore: Remove unused code previously used for GitOps Run

* build(deps): Bump @babel/traverse from 7.20.13 to 7.23.2 in /website

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.13 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix duplicate icons

* remove extra space

---------

Signed-off-by: Balazs Nadasdi <balazs@weave.works>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Joshua Israel <joshua.israel@weave.works>
Co-authored-by: Balazs Nadasdi <balazs@weave.works>
Co-authored-by: a.shabaan <ahmed.shabaan@weave.works>
Co-authored-by: Yiannis Triantafyllopoulos <8741709+yiannistri@users.noreply.github.com>
Co-authored-by: Luiz Filho <luizbafilho@gmail.com>
Co-authored-by: yiannis <yiannis@weave.works>
Co-authored-by: opudrovs <opudrovs@gmail.com>
Co-authored-by: ahussein3 <ahmed.magdy@weave.works>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants