streams kubernetes objects for one or more configured watches
Examples
input:
type: kubernetes
plugin:
watches:
# watch pods in all namespaces
- group: ""
version: v1
kind: Pod
# watch custom resources in specified namespaces
- group: example.com
version: v1alpha1
kind: Foo
namespaces: [default, kube-system]
# watch custom resources that match a label selector
- group: example.com
version: v1apha1
kind: Bar
selector:
matchLabels:
color: blue
matchExpressions:
- key: color
operator: NotIn
values: [green, yellow]
# watch replica sets and reconcile when their pods are modified
- version: v1
kind: ReplicaSet
owns:
- version: v1
kind: Pod
result:
requeue: meta().exists("requeue")
requeue_after: ${!meta("requeue_after).or("")}
Customize the result of a reconciliation request via synchronous responses.
Type: object
A Bloblang query that should return a boolean value indicating whether the input resource should be requeued. An empty string disables this functionality.
Type: string
Default: ""
Specify a duration after which the input resource should be requeued. This is a string value, which allows you to customize it based on resulting payloads and their metadata using interpolation functions. An empty string disables this functionality.
Type: string
Default: ""
A list of watch configurations that specify the set of kubernetes objects to target.
Type: list(object)
Default: []
Required: true
Resource group selector
Type: string
Default: ""
Resource kind selector
Type: string
Default: ""
Required: true
Resource namespace selector. An empty array here indicates cluster scope.
Type: list(string)
Default: []
Specifies an optional list of dependencies to watch. This requires the correct owner references to be present on the dependent objects.
Type: list(object)
Default: []
Dependency group selector
Type: string
Default: ""
Dependency kind selector
Type: string
Default: ""
Required: true
Dependency version selector
Type: string
Default: ""
Required: true
Optional label selector to apply as target filter.
Type: object
Default: {}
List of label match expressions to apply as target filter.
Type: list(object)
Default: {}
Subject of the given expression.
Type: string
Default: ""
Required: true
Operator of the given expression (e.g. Exists
, In
, NotIn
)
Type: string
Default: ""
Required: true
List of values applied to operator in order to evaluate the expression.
Type: string
Default: []
Map of key value label pairs to use as target filter.
Type: map(string)
Default: {}
Resource version selector
Type: string
Default: ""
Required: true
This input adds the following metadata fields to each message:
- deleted (present only if object has been deleted)
- group
- kind
- name
- namespace
- version