werf new feature: deploy dependency order (v2.2.0+) #6128
shurup
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Briefly
The new
werf.io/deploy-dependency-<name>annotation brings more flexibility in specifying the order in which Kubernetes resources are deployed.This feature became available starting from werf v2.2.0, which is currently in the Alpha release channel.
Background & details
werf.io/deploy-dependency-<name>is an alternative forwerf.io/weight, init containers, as well as other methods of reordering resource deployment. This annotation expresses the dependency between the resources.Example:
Brief comparison with other methods:
werf.io/weight, you do not have to split the resources into consecutive deployment groups: the resource deployment will commence as soon as its dependencies are satisfied, so there's no need to wait for other things. This approach is faster and allows you to implement scenarios that cannot be done withwerf.io/weight. You may also wait for the resource to bepresent(state=present) rather thanready.Like a Swiss knife, this annotation will "replace" hooks, weights, external dependencies, etc. (Technically, they will still be there since we’ll preserve compatibility.)
This feature has a lot more planned: an external option for out-of-release resources,
state=absentfor dependency on resources beingabsent, regular expressions for kinds, names, and others, as well as an option to filter by the chart name.Note: Previously, this annotation used to be called
<name>.dependency.werf.io. You may have heard of it at our presentations.dependency.werf.iois now considered deprecated in favour ofwerf.io/deploy-dependency.Additional details
Beta Was this translation helpful? Give feedback.
All reactions