75 lines
2.7 KiB
YAML
75 lines
2.7 KiB
YAML
---
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.17.2
|
|
name: accessbindings.devops.go17
|
|
spec:
|
|
group: devops.go17
|
|
names:
|
|
kind: AccessBinding
|
|
listKind: AccessBindingList
|
|
plural: accessbindings
|
|
singular: accessbinding
|
|
scope: Namespaced
|
|
versions:
|
|
- name: v1beta1
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: AccessBinding is the Schema for the accessbindings 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: AccessBindingSpec defines the desired state of AccessBinding.
|
|
properties:
|
|
deployment:
|
|
type: string
|
|
namespace:
|
|
description: |-
|
|
Foo is an example field of AccessBinding. Edit accessbinding_types.go to remove/update
|
|
资源的部署信息
|
|
type: string
|
|
type: object
|
|
status:
|
|
description: AccessBindingStatus defines the observed state of AccessBinding.
|
|
properties:
|
|
access_url:
|
|
description: 服务的访问地址, DNS 解析的域名
|
|
type: string
|
|
message:
|
|
description: 最好是通过 k8s event 来发生事件
|
|
type: string
|
|
service_url:
|
|
description: |-
|
|
INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
|
|
Important: Run "make" to regenerate code after modifying this file
|
|
服务的地址 Pod IP:Port, -->Traefic (4层)
|
|
type: string
|
|
stage:
|
|
type: string
|
|
required:
|
|
- stage
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|
|
subresources:
|
|
status: {}
|