ApplyConfiguration

data class ApplyConfiguration(val expression: String? = null)

ApplyConfiguration defines the desired configuration values of an object.

Constructors

Link copied to clipboard
constructor(expression: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val expression: String? = null

expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: "example" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: