struct
Kubernetes::Mutation
- Kubernetes::Mutation
- Struct
- Value
- Object
Overview
Mutation specifies the CEL expression which is used to apply the Mutation.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_admissionregistration_v1alpha1.crgenerated/models/io_k8s_api_admissionregistration_v1beta1.cr
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#apply_configuration : ApplyConfiguration | Nil
applyConfiguration defines the desired configuration values of an object.
-
#apply_configuration=(apply_configuration : ApplyConfiguration | Nil)
applyConfiguration defines the desired configuration values of an object.
-
#json_patch : JSONPatch | Nil
jsonPatch defines a JSON patch operation to perform a mutation to the object.
-
#json_patch=(json_patch : JSONPatch | Nil)
jsonPatch defines a JSON patch operation to perform a mutation to the object.
-
#patch_type : String | Nil
patchType indicates the patch strategy used.
-
#patch_type=(patch_type : String | Nil)
patchType indicates the patch strategy used.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using structured merge diff. A CEL expression is used to create apply configuration.
applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using structured merge diff. A CEL expression is used to create apply configuration.
jsonPatch defines a JSON patch operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
jsonPatch defines a JSON patch operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.