⎈ k8s knowledge compiler

Variable [page]deterministic

Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.

reference

`apiVersion: admissionregistration.k8s.io/v1`

`import "k8s.io/api/admissionregistration/v1"`

## Variable {#Variable}

Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.

<hr>

<table> <thead><tr><th>Field</th><th>Description</th></tr></thead> <tbody> <tr> <td><code>expression</code>&nbsp;<strong>*</strong><br/><em>string</em></td> <td>expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.</td> </tr> <tr> <td><code>name</code>&nbsp;<strong>*</strong><br/><em>string</em></td> <td>name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`</td> </tr> </tbody> </table>

Sources

reference/kubernetes-api/definitions/variable-v1-admissionregistration.md · docVariable

Related (2)

part_of Variable {#Variable}describes conf=1
api_for Variabledocuments API object conf=1

← all Docs