云原生服务中心 OSC-表单控件配置组合示例

时间:2025-02-12 14:54:25

表单控件配置组合示例

csd.yaml文件中配置添加如下配置:
# 配置表单控件descriptors:  spec:    - displayName: Image      description: The docker image name and version of Portworx Enterprise.      path: image      x-descriptors:        - 'urn:alm:descriptor:com.tectonic.ui:text'    - displayName: Size      description: The desired number of member Pods for the etcd cluster.      path: size      x-descriptors:        - 'urn:alm:descriptor:com.tectonic.ui:podCount'

以v1版本的crd.yaml为例:

apiVersion: apiextensions.k8s.io/v1kind: CustomResourceDefinitionmetadata:  name: helmreleases.helm.osc.huawei.comspec:  versions:  - name: v1alpha1    schema:      openAPIV3Schema:        description: HelmRelease is the Schema for the helmreleases API        properties:          apiVersion:            type: string          kind:            type: string          metadata:            type: object          spec:            properties:              image:                type: string              size:                type: string

配置表单控件后,创建实例时,即可通过表单进行实例创建。

support.huaweicloud.com/devg-osc/osc_ss_0049.html