struct Kubernetes::Mutation

Overview

Mutation specifies the CEL expression which is used to apply the Mutation.

Included Modules

Defined in:

generated/models/io_k8s_api_admissionregistration_v1alpha1.cr
generated/models/io_k8s_api_admissionregistration_v1beta1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def apply_configuration : ApplyConfiguration | Nil #

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.


def apply_configuration=(apply_configuration : ApplyConfiguration | Nil) #

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.


def json_patch : JSONPatch | Nil #

jsonPatch defines a JSON patch operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.


def json_patch=(json_patch : JSONPatch | Nil) #

jsonPatch defines a JSON patch operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.


def patch_type : String | Nil #

patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.


def patch_type=(patch_type : String | Nil) #

patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.