Admins have the ability to create resource definitions, the overarching types of resources that exist within your infrastructure. Within the resource catalog, you can define specific resources and the fields that are relevant to that resource type.
Cortex has defined a bunch of common resource types, like s3 buckets and Kafka topics, but you can customize these and create your own definitions. Click Create Resource Definition to begin the workflow.
You’ll be prompted to define a name, type, and description for the resource. Cortex will automatically provide a unique type/identifier for the resource definition based on the name, but you can edit the identifier. This identifier will be used to specify a resource type within a resource's YAML file.
When you select Definition icon, you'll be presented with a menu of icon options. All resources defined as this type will display with the icon you select.
You’ll then be asked to define the JSON schema. This will be used to validate the x-cortex-definition block of a resource’s YAML.
Once you enter the schema, you’ll be brought to a preview page where you can confirm everything you’ve entered. When you select Create resource definition, you’ll be taken to the new resource definition’s home page.
Comments
0 comments
Article is closed for comments.