-
Notifications
You must be signed in to change notification settings - Fork 166
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
Upgrade controller-runtime to v0.7.0 #183
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hiddeco
added
area/ci
CI related issues and pull requests
hold
Issues and pull requests put on hold
labels
Dec 18, 2020
hiddeco
force-pushed
the
controller-runtime-v0.7.0
branch
from
January 11, 2021 12:40
a8e3305
to
bf3551d
Compare
stefanprodan
approved these changes
Jan 11, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
hiddeco
force-pushed
the
controller-runtime-v0.7.0
branch
2 times, most recently
from
January 11, 2021 12:54
c34ad70
to
7338b6c
Compare
This commit upgrades the `controller-runtime` dependency to `v0.7.0`, including all changes required to make all wiring work again. - Upgrade `runtime` to v0.6.0 to include `controller-runtime` changes. - Loggers have been removed from the reconcilers and are now retrieved from the `context.Context` passed to the `Reconcile` method and downwards functions. - Logger configuration flags are now bound to the flag set using `BindFlags` from `runtime/logger`, ensuring the same contract across GitOps Toolkit controllers, and the `--log-json` flag has been deprecated in favour of the `--log-encoding=json` default. - The `ChangePredicate` from `runtime` has changed to a `ReconcilateAtChangedPredicate`, and is now chained with the `GenerationChangedPredicate` from `controller-runtime` using `predicate.Or`. - Signatures that made use of `runtime.Object` have changed to `client.Object`, removing the requirement to e.g. call `runtime.Object#Object`. - The `leader-election-role` was changed, as leader election now works via the `coordination/v1` API. Other notable changes: - `util.ObjectKey` was added to easily construct a `client.ObjectKey` / `types.NamespacedName` from a `metav1.Object`. Signed-off-by: Hidde Beydals <[email protected]>
hiddeco
force-pushed
the
controller-runtime-v0.7.0
branch
from
January 11, 2021 16:42
7338b6c
to
e511cb8
Compare
seaneagan
added a commit
to seaneagan/helm-controller
that referenced
this pull request
Jan 13, 2021
As of fluxcd#183 this is no longer needed.
seaneagan
added a commit
to seaneagan/helm-controller
that referenced
this pull request
Jan 13, 2021
As of fluxcd#183 this is no longer needed. Signed-off-by: Sean Eagan <[email protected]>
jtyr
pushed a commit
to jtyr/fluxcd-helm-controller
that referenced
this pull request
Dec 14, 2023
Add updatecli with a basic validation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ref: fluxcd/flux2#613
This PR upgrades the
controller-runtime
dependency tov0.7.0
,including all changes required to make all wiring work again.
runtime
to v0.6.0 to includecontroller-runtime
changes.from the
context.Context
passed to theReconcile
method anddownwards functions.
BindFlags
fromruntime/logger
, ensuring the same contract acrossGitOps Toolkit controllers, and the
--log-json
flag has beendeprecated in favour of the
--log-encoding=json
default.ChangePredicate
fromruntime
has changed to aReconcilateAtChangedPredicate
, and is now chained with theGenerationChangedPredicate
fromcontroller-runtime
usingpredicate.Or
.runtime.Object
have changed toclient.Object
, removing the requirement to e.g. callruntime.Object#Object
.leader-election-role
was changed, as leader election now worksvia the
coordination/v1
API.Other notable changes:
util.ObjectKey
was added to easily construct aclient.ObjectKey
/types.NamespacedName
from ametav1.Object
.