struct

FunctionAccessRule::TargetFunction

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

Target function selector. Use 'name' for name/pattern/regex matching, 'matchLabels'/'matchExpressions' for label-based selection. Patterns: exact name, glob (prefix*), or regex (/pattern/).

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)
new(*, name : Nil | String = nil, match_labels : Nil | Hash(String, String) = nil, match_expressions : Nil | Array(FunctionAccessRule::TargetFunction::MatchExpressions) = nil)
Source

Instance methods

match_expressions

Select functions by label expressions

match_labels

Select functions by label key-value pairs (AND logic)

name

Function name, glob pattern (* or prefix*), or regex (/pattern/)

Nested types