SubstitutionRule class

A transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup.

A rule contains both filtering logic (which resources are subject to substitution) and substitution logic.

Constructors

SubstitutionRule({String? newValue, String? originalValuePattern, List<GroupKind>? targetGroupKinds, String? targetJsonPath, List<String>? targetNamespaces})
SubstitutionRule.fromJson(Map json_)

Properties

hashCode → int
The hash code for this object.
no setterinherited
newValue ↔ String?
This is the new value to set for any fields that pass the filtering and selection criteria.
getter/setter pair
originalValuePattern ↔ String?
(Filtering parameter) This is a regular expression that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters).
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetGroupKinds ↔ List<GroupKind>?
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".
getter/setter pair
targetJsonPath ↔ String?
This is a JSONPath expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).
getter/setter pair
targetNamespaces ↔ List<String>?
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited