devstar-devcontainer-operator/config/crd/bases/devcontainer.devstar.cn_devcontainerapps.yaml
Mingchen Dai 3cf82cb947
Updated resource creation:
* StatefulSet
* PVC
* Service
* Ingress (TODO: SSH port forwarding)
2024-09-11 08:54:39 +00:00

80 lines
2.7 KiB
YAML

---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.16.1
name: devcontainerapps.devcontainer.devstar.cn
spec:
group: devcontainer.devstar.cn
names:
kind: DevcontainerApp
listKind: DevcontainerAppList
plural: devcontainerapps
singular: devcontainerapp
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: DevcontainerApp is the Schema for the devcontainerapps 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: DevcontainerAppSpec defines the desired state of DevcontainerApp
properties:
ingress:
description: IngressSpec specifies Ingress Controller access point
for DevContainer
properties:
port:
type: integer
required:
- port
type: object
service:
description: ServiceSpec specifies Service for DevContainer
properties:
containerPort:
type: integer
required:
- containerPort
type: object
statefulset:
description: StatefulSetSpec specifies StatefulSet for DevContainer
properties:
image:
type: string
required:
- image
type: object
required:
- ingress
- service
- statefulset
type: object
status:
description: DevcontainerAppStatus defines the observed state of DevcontainerApp
type: object
type: object
served: true
storage: true
subresources:
status: {}