58 lines
1.5 KiB
Smarty
58 lines
1.5 KiB
Smarty
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
name: components.nplus.cloud
|
|
spec:
|
|
group: nplus.cloud
|
|
scope: Namespaced
|
|
names:
|
|
kind: Component
|
|
singular: component
|
|
plural: components
|
|
categories:
|
|
- nplus
|
|
- nscale
|
|
versions:
|
|
- name: v1beta1
|
|
served: true
|
|
storage: true
|
|
additionalPrinterColumns:
|
|
- name: Environment
|
|
type: string
|
|
jsonPath: .metadata.labels.nplus/environment
|
|
priority: 1
|
|
- name: Instance
|
|
type: string
|
|
jsonPath: .metadata.labels.nplus/instance
|
|
- name: Component
|
|
type: string
|
|
jsonPath: .metadata.labels.nplus/component
|
|
- name: Type
|
|
type: string
|
|
jsonPath: .metadata.labels.nplus/type
|
|
- name: Version
|
|
type: string
|
|
jsonPath: .metadata.annotations.nplus/componentVersion
|
|
- name: Status
|
|
type: string
|
|
jsonPath: .status.message
|
|
schema:
|
|
openAPIV3Schema:
|
|
type: object
|
|
properties:
|
|
spec:
|
|
type: object
|
|
x-kubernetes-preserve-unknown-fields: true
|
|
status:
|
|
type: object
|
|
properties:
|
|
message:
|
|
description: Health human readable
|
|
type: string
|
|
id:
|
|
description: Health status id
|
|
type: integer
|
|
updateTimestamp:
|
|
description: Timestamp of last Health Change
|
|
type: string
|