You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
demo-1/config/crd/bases/demo.mashibing.com_apps.yaml

57 lines
2.0 KiB

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
name: apps.demo.mashibing.com
spec:
group: demo.mashibing.com
names:
kind: App
listKind: AppList
plural: apps
singular: app
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: 定义我们CRD的对象 App is the Schema for the apps API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: AppSpec defines the desired state of App
properties:
action:
description: Action 对兑现做什么动作,例如给一个 Hello
type: string
object:
description: Object 对什么操作,例如给一个 World
type: string
type: object
status:
description: AppStatus defines the observed state of App
properties:
result:
description: Result 显示 action+obeject
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}