text
stringlengths 0
662
|
---|
kind: CodeComponent |
metadata: |
name: log4j |
description: Log4j library |
title: Log4j |
tags: |
- logging |
spec: |
type: library |
owner: [eng-raccoon-aws, eng-raccoon-eco] |
service: dumpster-prod |
uri: https://github.com/example/greenhouse-data |
``` |
```yaml |
apiVersion: opencontext.com/v1alpha1 |
kind: CodeComponent |
metadata: |
name: greenhouse-dataset |
description: Greenhouse historical data |
title: Greenhouse data archive |
spec: |
type: other |
otherType: dataset |
owner: [prod-squirrel] |
service: greenhouse |
uri: s3://greenhouse-dataset |
dependsOn: [code-component:greenhouse-data] |
datacenter: [aws] |
``` |
--- |
sidebar_position: 2 |
--- |
# Common to All Kinds |
## Envelope |
### apiVersion and kind (required) |
This is the version of the specification format to be applied to the entity. `apiVersion` is used to allow the format to change over time, and the tuple of `apiVersion` and `kind` will tell the parser how to interpret the contents of the rest of the data. |
OpenContext entities will have an `apiVersion` prefixed with `opencontext.com/` . Early versions of the catalog will be using alpha/beta version, e.g. `opencontext.com/v1alpha1` to signal that the format may still change. Later on we will be using `opencontext.com/v1` and up. |
### metadata (required) |
A structure that contains metadata about the entity, i.e. things that aren鈥檛 directly part of the entity specification itself. See below for more details. |
### spec (varies) |
The actual specification data that describes the entity. |
The precise structure of the `spec` depends on the `apiVersion` and `kind` combination. See below for more details about the specification structure of specific kinds. |
## Metadata |
### name (required) |
The name of the entity. This name is meant for humans and machines. It must conform to the following rules: |
- Unique per kind. The uniqueness is case insensitive. Names may be re-used at a later time if an entity is deleted. |
- Strings of length at least 1, and at most 63 |
- Must consist of sequences of聽`[a-z0-9A-Z]` possibly separated by one of聽`[-_.]` |
### namespace (optional) |
Currently not being used. It is reserved for future use. For now, it is recommended that this is left unset. This means that the entity belongs to the `default` namespace. |
### title (optional) |
:::info Only for display purposes. |
::: |
The display name for the entity to be used in place of name in the UI when available. This does not have a strict formatting requirement so can include special characters and be more explanatory. However, keep this short and try to avoid situations where the title can be confused with another entity. |
### description (optional) |
A human readable description of the entity to be shown in OpenContext. |
### labels (optional) |
These are optional key/value pairs that are attached to the entity. Their use is identical to [Kubernetes Object Labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/). |
### annotations (optional) |
An object with arbitrary non-identifying metadata attached to the entity, identical in use to聽[Kubernetes object annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/). |
Their purpose is mainly, but not limited, to reference into external systems. This could for example be a reference to the git ref the entity was ingested from, to monitoring and logging systems, to PagerDuty schedules, etc. Users may add these to descriptor YAML files, but in addition to this automated systems may also add annotations, either during ingestion into the catalog, or at a later time. |
Both the key and the value are strings, subject to the following restrictions. |
Keys have an optional prefix followed by a slash, and then the name part which is required. The prefix must be a valid lowercase domain name if specified, at most 253 characters in total. The name part must be sequences of聽`[a-zA-Z0-9]`separated by any of聽`[-_.]`, at most 63 characters in total. |
The聽`opencontext.com` prefix is reserved for use by OpenContext core components. |
Values can be of any length, but are limited to being strings. |
#### Annotations in use |
##### github.com/project-slug |