logo
Doom
English
简体中文
English
简体中文
logo
Doom
Introduction
Getting Started

Usage

Configuration
Convention
Markdown
MDX
Internationalization
API Documentation
Permission Description Document
Referencing Documents
Deployment

APIs

Advanced API

Event APIs

Search

Log APIs

Aggregation
Search
CodeQualityTaskSummary
Projects

Workload APIs

DaemonSet [apps/v1]
Deployments [apps/v1]

CRDs

ArtifactCleanupRun

Public References

CodeQuality
CodeQualityBranch
📝 Edit this page on GitHub
Previous PageInternationalization
Next PagePermission Description Document

#API Documentation

Based on actual business needs, we generally categorize APIs into two types: Advanced APIs and CRDs (Custom Resource Definitions). Therefore, the directory structure is typically organized as follows:

│── apis
│   ├── advanced-apis # Advanced APIs
│   ├── crds # CRDs
│   └── references # Common References

#TOC

#Advanced APIs

advanced-apis/codeQualityTaskSummary.mdx
# CodeQualityTaskSummary

<OpenAPIPath path="/plugins/v1alpha1/template/codeQuality/task/{task-id}/summary" />

Refer to CodeQualityTaskSummary.

#props

  • path: The path under OpenAPI schema paths
  • pathPrefix: Can be used to override the api.pathPrefix in global configuration
  • openapiPath: Refer to Specifying OpenAPI Path

#CRD

crds/ArtifactCleanupRun.mdx
# ArtifactCleanupRun

<K8sCrd name="artifactcleanupruns.artifacts.katanomi.dev" />

Refer to ArtifactCleanupRun.

#props

  • name: CRD metadata.name
  • crdPath: Similar to Specifying OpenAPI Path, used to specify a particular CRD file

#Common References

references/CodeQuality.mdx
# CodeQuality

<OpenAPIRef schema="v1alpha1.CodeQuality" />

Refer to CodeQuality.

#props

  • schema: The name under OpenAPI schema definitions(v2) or components/schemas(v3)
  • openapiPath: Refer to Specifying OpenAPI Path

#Specifying OpenAPI Path

For the OpenAPIPath and OpenAPIRef components, the default behavior is to search for matches across all OpenAPI definition files. If you need to specify a particular OpenAPI file, you can use the openapiPath property:

<OpenAPIPath
  path="/plugins/v1alpha1/template/codeQuality/task/{task-id}/summary"
  openapiPath="shared/openapis/katanomi.json"
/>