fix(deps): update module github.com/crossplane/crossplane to v2 #116
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.
This PR contains the following updates:
v1.20.1
->v2.0.2
Release Notes
crossplane/crossplane (github.com/crossplane/crossplane)
v2.0.2
Compare Source
This is a patch release scoped to fixing issues reported by users of Crossplane v2.0.
What's Changed
Full Changelog: crossplane/crossplane@v2.0.1...v2.0.2
v2.0.1
Compare Source
This is a patch release scoped to fixing issues reported by users of Crossplane v2.0.
v2.0
patch releasev2.0.1
has some blocking issues that were discovered after extended post-release testing and feedback. It is not the most recentv2
patch release. We strongly advise installing the latest patch (v2.0.2
as of this writing) to have the highest quality experience in your control plane.The most recent patch has been promoted to the
stable
channel, so if you simply install or upgrade using thestable
channel, you don't need to take any further action.What's Changed
Full Changelog: crossplane/crossplane@v2.0.0...v2.0.1
v2.0.0
Compare Source
The
v2.0.0
release is the first major version update in years for the Crossplane project. It takes all the feedback and lessons from our amazing community of adopters ofv1.x
releases over the last 5 years and incorporates them into an improved, more capable, and streamlined experience. There are so many exciting enhancements that we are happy to share with the community today, as well as important changes to understand and consider when upgrading fromv1.20
.v2.0
patch releasev2.0.0
has some blocking issues that were discovered after extended post-release testing and feedback. It is not the most recentv2
patch release. We strongly advise installing the latest patch (v2.0.2
as of this writing) to have the highest quality experience in your control plane.The most recent patch has been promoted to the
stable
channel, so if you simply install or upgrade using thestable
channel, you don't need to take any further action.Upgrade from
v1
It is strongly advised to upgrade to
v2.0
from the most recentv1
minor version, which isv1.20
. Upon upgrade for each minor release, Crossplane performs any necessary migrations of its CRDs to ensure the latest versions are stored in the Kubernetes API server. Therefore, it is important to upgrade sequentially through one minor version at a time.For example, if you are currently on
v1.18
, then you should first upgrade tov1.19
, thenv1.20
, before finally upgrading tov2.0
. The upgrade path in this example looks likev1.18
-->v1.19
-->v1.20
-->v2.0
. To reiterate, you should be running av1.20
version before you upgrade tov2.0
.🎉 Highlights
The v2 release is chock full of awesome new features that focus on making Crossplane easier to use, operate, and understand as well as be a better fit for application level resources in addition to infrastructure.
Deployment
,Configmap
,Secret
, custom resources - anything from the Kubernetes API, not just Crossplane-defined resources. This enables full-stack abstractions of both applications and infrastructure and makes Crossplane a great fit for your entire tech stack.Operation
type supports one-off, scheduled, and event-driven workflows for operational tasks like backups, rolling upgrades, configuration validation, and scheduled maintenance.observedGeneration
, i.e. the version of the resource, for which they were reconciled. You no longer need to wonder if Crossplane has seen and reconciled your latest changes.🚨 Warnings and breaking changes
Backwards Compatibility with
v1
The Crossplane maintainers have taken thoughtful consideration to make major improvements and changes in
v2
while maintaining backwards compatibility for the vast majority ofv1
workloads. We expect most users to be able to upgrade tov2
without any changes to their control plane. However, there is a set of 4 breaking changes that we have made, mostly to long deprecated features and features that have remained stuck in alpha for a long time.If you are not using any of these 4 features, you can upgrade to
v2
without any issues and your existing workload should continue operating as usual.The following features have been removed:
mode: Resources
)crossplane beta convert pipeline-composition
command available in thev1
crossplane
CLI. See the Crossplane docs for details.ControllerConfig
DeploymentRuntimeConfig
. You can migrate your existingControllerConfig
toDeploymentRuntimeConfig
with thecrossplane beta convert deployment-runtime
command available in thev1
crossplane
CLI. See the Crossplane docs for details.Secret
within the control plane usingspec.writeConnectionSecretToRef
available on managed resources.spec.package
and indirectly as dependencies. For example, it is no longer valid to simply usecrossplane-contrib/provider-family-azure:v1.13.0
which does not specify the host registry. You must supply the fully qualified package, including the host registry, likexpkg.crossplane.io/crossplane-contrib/provider-family-azure:v1.13.0
. If a registry is not specified, then an error will be returned for the package.Go module path is now
github.com/crossplane/crossplane/v2
As this release is a major version bump that has breaking changes, the rules for Go modules required the Crossplane module path to be updated to include the
v2
version suffix.If you import
crossplane
andcrossplane-runtime
into yourgo.mod
, when you update tov2+
you will also need to update the module path. All import statements in your code base need to be updated to also include this v2 module path, as it is effectively a module change.See this commit as an example of this type of update:
d6c489c
The module paths for v2 versions of
crossplane
andcrossplane-runtime
are:github.com/crossplane/crossplane/v2
github.com/crossplane/crossplane-runtime/v2
Metrics name changes
The Prometheus metrics that Crossplane exposes for the controller engine and function response caches have been updated with the addition of Operations that expands the functionality of function pipelines. The names of these metrics have been updated as follows:
crossplane_composition_controllers_*
-->crossplane_engine_controllers_*
crossplane_composition_watches_*
-->crossplane_engine_watches_*
crossplane_composition_run_function_*
-->crossplane_function_run_function_*
login
/logout
removed from Crossplane CLIThe
crossplane xpkg login
andcrossplane xpkg logout
commands have been removed from the Crossplane CLI. To login to a registry before pushing a package, consider usingdocker login
locally, or thedocker/login-action
from CI.An example of this pattern can be seen in many Community Extension Projects, for example
function-auto-ready
.deletionPolicy
removed for namespaced managed resourcesNamespaced managed resources, that are net new in v2, no longer have the
deletionPolicy
field. This behavior can be recreated using a ManagementPolicy without the"Delete"
option. For example:Existing cluster scoped managed resources are not affected.
🏅 Release MVP
Since
v2.0
is such a massive release with many months of effort across many contributors in the community, it was impossible to pick a single release MVP this time - so we're going big with 3 MVPs! 📈main
branch. He was often the quickest to spot any new regressions creeping in that e2e tests did not catch, so he contributed significantly to the overall quality of the release.function-hcl
as a Community Extension Project, which provides function users with a familiar HCL syntax and functionality.Thank you very much release MVPs! 🙇♂️
What's Changed
TestDowngrade
E2E failures by @negz in #6415main
by @negz in #6489fca7ace
(main) by @crossplane-renovate[bot] in #62045bef64f
(main) by @crossplane-renovate[bot] in #6518d72941d
(main) by @crossplane-renovate[bot] in #6517c231a1a
(main) by @crossplane-renovate[bot] in #652474a5d14
(main) by @crossplane-renovate[bot] in #6532ce28f5b
(main) by @crossplane-renovate[bot] in #6536spec.controllerConfigRef
from package types by @negz in #6520writeConnectionSecretToRef
from v2 XRs by @negz in #647346d2ca1
(main) by @crossplane-renovate[bot] in #6540b7b9a69
(main) by @crossplane-renovate[bot] in #6542ea165f8
(main) by @crossplane-renovate[bot] in #6523internal/xresource
- move back topkg/resource
from crossplane-runtime by @negz in #6553TestCrossplaneLifecycle
E2E pass (sometimes?) by @negz in #6604181d5ee
(main) by @crossplane-renovate[bot] in #6608ce71cc2
(main) by @crossplane-renovate[bot] in #6616CronOperation
andWatchOperation
by @negz in #6632WatchOperation
(and add more E2Es) by @negz in #6641.status.crossplane.connectionDetails
from modern XR schema by @jbw976 in #6655earthly +reviewable
by @ulucinar in #6688New Contributors
Full Changelog: crossplane/crossplane@v1.20.1...v2.0.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.