Class ExtraMapping
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.ExtraMapping
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ExtraMappingBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ExtraMapping extends Object implements io.fabric8.kubernetes.api.builder.Editable<ExtraMappingBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ExtraMapping allows specifying a key and CEL expression to evaluate the keys' value. It is used to create additional mappings and attributes added to a cluster identity from a provided authentication token.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExtraMapping()No args constructor for use in serializationExtraMapping(String key, String valueExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtraMappingBuilderedit()Map<String,Object>getAdditionalProperties()StringgetKey()key is a required field that specifies the string to use as the extra attribute key.StringgetValueExpression()valueExpression is a required field to specify the CEL expression to extract the extra attribute value from a JWT token's claims. valueExpression must produce a string or string array value. "", [], and null are treated as the extra mapping not being present.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetKey(String key)key is a required field that specifies the string to use as the extra attribute key.voidsetValueExpression(String valueExpression)valueExpression is a required field to specify the CEL expression to extract the extra attribute value from a JWT token's claims. valueExpression must produce a string or string array value. "", [], and null are treated as the extra mapping not being present.ExtraMappingBuildertoBuilder()
-
-
-
Method Detail
-
getKey
public String getKey()
key is a required field that specifies the string to use as the extra attribute key.key must be a domain-prefix path (e.g 'example.org/foo'). key must not exceed 510 characters in length. key must contain the '/' character, separating the domain and path characters. key must not be empty.
The domain portion of the key (string of characters prior to the '/') must be a valid RFC1123 subdomain. It must not exceed 253 characters in length. It must start and end with an alphanumeric character. It must only contain lower case alphanumeric characters and '-' or '.'. It must not use the reserved domains, or be subdomains of, "kubernetes.io", "k8s.io", and "openshift.io".
The path portion of the key (string of characters after the '/') must not be empty and must consist of at least one alphanumeric character, percent-encoded octets, '-', '.', '_', '~', '!', '$', '&', ''', '(', ')', '*', '+', ',', ';', '=', and ':'. It must not exceed 256 characters in length.
-
setKey
public void setKey(String key)
key is a required field that specifies the string to use as the extra attribute key.key must be a domain-prefix path (e.g 'example.org/foo'). key must not exceed 510 characters in length. key must contain the '/' character, separating the domain and path characters. key must not be empty.
The domain portion of the key (string of characters prior to the '/') must be a valid RFC1123 subdomain. It must not exceed 253 characters in length. It must start and end with an alphanumeric character. It must only contain lower case alphanumeric characters and '-' or '.'. It must not use the reserved domains, or be subdomains of, "kubernetes.io", "k8s.io", and "openshift.io".
The path portion of the key (string of characters after the '/') must not be empty and must consist of at least one alphanumeric character, percent-encoded octets, '-', '.', '_', '~', '!', '$', '&', ''', '(', ')', '*', '+', ',', ';', '=', and ':'. It must not exceed 256 characters in length.
-
getValueExpression
public String getValueExpression()
valueExpression is a required field to specify the CEL expression to extract the extra attribute value from a JWT token's claims. valueExpression must produce a string or string array value. "", [], and null are treated as the extra mapping not being present. Empty string values within an array are filtered out.CEL expressions have access to the token claims through a CEL variable, 'claims'. 'claims' is a map of claim names to claim values. For example, the 'sub' claim value can be accessed as 'claims.sub'. Nested claims can be accessed using dot notation ('claims.foo.bar').
valueExpression must not exceed 4096 characters in length. valueExpression must not be empty.
-
setValueExpression
public void setValueExpression(String valueExpression)
valueExpression is a required field to specify the CEL expression to extract the extra attribute value from a JWT token's claims. valueExpression must produce a string or string array value. "", [], and null are treated as the extra mapping not being present. Empty string values within an array are filtered out.CEL expressions have access to the token claims through a CEL variable, 'claims'. 'claims' is a map of claim names to claim values. For example, the 'sub' claim value can be accessed as 'claims.sub'. Nested claims can be accessed using dot notation ('claims.foo.bar').
valueExpression must not exceed 4096 characters in length. valueExpression must not be empty.
-
edit
public ExtraMappingBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ExtraMappingBuilder>
-
toBuilder
public ExtraMappingBuilder toBuilder()
-
-