sources.knative.dev / v1 / ApiServerSource
- object
.spec
- object
.spec .ceOverrides
CloudEventOverrides defines overrides to control the output format and modifications of the event sent to the sink.
- object
.spec .ceOverrides .extensions
Extensions specify what attribute are added or overridden on the outbound event. Each
Extensions
key-value pair are set on the event as an attribute extension independently. - string
.spec .mode
EventMode controls the format of the event.
Reference
sends a dataref event type for the resource under watch.Resource
send the full resource lifecycle event. Defaults toReference
- object
.spec .owner
ResourceOwner is an additional filter to only track resources that are owned by a specific resource type. If ResourceOwner matches Resources[n] then Resources[n] is allowed to pass the ResourceOwner filter.
- string
.spec .owner .apiVersion
APIVersion - the API version of the resource to watch.
- string
.spec .owner .kind
Kind of the resource to watch. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- array required
.spec .resources
Resource are the resources this source will track and send related lifecycle events from the Kubernetes ApiServer, with an optional label selector to help filter.
- string
.spec .resources[] .apiVersion
APIVersion - the API version of the resource to watch.
- string
.spec .resources[] .kind
Kind of the resource to watch. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- object
.spec .resources[] .selector
LabelSelector filters this source to objects to those resources pass the label selector. More info: http://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
- array
.spec .resources[] .selector .matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
- string
.spec .resources[] .selector .matchExpressions[] .key
key is the label key that the selector applies to.
- string
.spec .resources[] .selector .matchExpressions[] .operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
- array
.spec .resources[] .selector .matchExpressions[] .values
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- object
.spec .resources[] .selector .matchLabels
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
- string
.spec .serviceAccountName
ServiceAccountName is the name of the ServiceAccount to use to run this source. Defaults to default if not set.
- object
.spec .sink
Sink is a reference to an object that will resolve to a uri to use as the sink.
- object
.spec .sink .ref
Ref points to an Addressable.
- string
.spec .sink .ref .apiVersion
API version of the referent.
- string
.spec .sink .ref .kind
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
- string
.spec .sink .ref .name
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- string
.spec .sink .ref .namespace
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ This is optional field, it gets defaulted to the object holding it if left out.
- string
.spec .sink .uri
URI can be an absolute URL(non-empty scheme and non-empty host) pointing to the target or a relative URI. Relative URIs will be resolved using the base URI retrieved from Ref.
- string
.spec .sink .CACerts
CACerts is the Certification Authority (CA) certificates in PEM format that the source trusts when sending events to the sink.
- string
.spec .sink .audience
Audience is the OIDC audience. This only needs to be set if the target is not an Addressable and thus the Audience can’t be received from the target itself. If specified, it takes precedence over the target’s Audience.
- object
.spec .namespaceSelector
NamespaceSelector is a label selector to capture the namespaces that should be watched by the source.
- array
.spec .namespaceSelector .matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
- string
.spec .namespaceSelector .matchExpressions[] .key
key is the label key that the selector applies to.
- string
.spec .namespaceSelector .matchExpressions[] .operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
- array
.spec .namespaceSelector .matchExpressions[] .values
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- object
.spec .namespaceSelector .matchLabels
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
- object
.status
- object
.status .annotations
Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards.
- object
.status .auth
Auth provides the relevant information for OIDC authentication.
- string
.status .auth .serviceAccountName
ServiceAccountName is the name of the generated service account used for this components OIDC authentication.
- array
.status .ceAttributes
CloudEventAttributes are the specific attributes that the Source uses as part of its CloudEvents.
- string
.status .ceAttributes[] .source
Source is the CloudEvents source attribute.
- string
.status .ceAttributes[] .type
Type refers to the CloudEvent type attribute.
- array
.status .conditions
Conditions the latest available observations of a resource’s current state.
- string
.status .conditions[] .lastTransitionTime
LastTransitionTime is the last time the condition transitioned from one status to another. We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic differences (all other things held constant).
- string
.status .conditions[] .message
A human readable message indicating details about the transition.
- string
.status .conditions[] .reason
The reason for the condition’s last transition.
- string
.status .conditions[] .severity
Severity with which to treat failures of this type of condition. When this is not specified, it defaults to Error.
- string required
.status .conditions[] .status
Status of the condition, one of True, False, Unknown.
- string required
.status .conditions[] .type
Type of condition.
- integer
.status .observedGeneration
ObservedGeneration is the ‘Generation’ of the Service that was last processed by the controller.
- string
.status .sinkUri
SinkURI is the current active sink URI that has been configured for the Source.
- string
.status .sinkCACerts
CACerts is the Certification Authority (CA) certificates in PEM format that the source trusts when sending events to the sink.
- string
.status .sinkAudience
Audience is the OIDC audience of the sink. This only needs to be set if the target is not an Addressable and thus the Audience can’t be received from the Addressable itself. If the target is an Addressable and specifies an Audience, the target’s Audience takes precedence.
- array
.status .namespaces
Namespaces show the namespaces currently watched by the ApiServerSource