ProductConfig [alauda.io/v1alpha1]

描述
ProductConfig is the Schema for the productconfigs API
类型
object

规格

属性类型描述
apiVersionstring

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

kindstring

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

metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

ProductConfigSpec defines the desired state of ProductConfig

statusobject

ProductConfigStatus defines the observed state of ProductConfig

.spec

描述
ProductConfigSpec defines the desired state of ProductConfig
类型
object
必填
availableVersionbriefdescriptiondisplayNamedisplayUIConfiginstallUIConfiglogoplatformVersionMatchproductResourcetype
属性类型描述
availableVersionstring

AvailableVersion stands for the available version to deploy

briefobject

Brief stands for the product's brief

chartVersionsarray

ChartVersions stands for the charts when deploying, they are optional and will be added to the Prouct CR

commonConfigRefarray

CommonConfigRef stands for the reference from CommonConfig to Product CR

descriptionobject

Description stands for the product's description

displayNameobject

DisplayName stands for the product's display name

displayUIConfigobject

DisplayUIConfig stands for the web UI type when showing product's detail information

installUIConfigobject

InstallUIConfig stands for the web UI config when deploying product

isDisplayboolean

IsDisplay stands for if the product displaying on the products list

logostring

Logo stands for the product logo with base64 encoded data uri

platformVersionMatchstring

PlatformVersionMatch stands for the product need match the platform version

productResourceobject

ProductResource defines the target product CRD type

singleAppobject

SingleAppConfig stands for the config for SignleApp type

subAppobject

SubApp stands for the config for SubApp type

typestring

Type stands for the product's type

upgradeUIConfigarray

UpgradeUIConfig stands for the web UI config when upgrading product

upgradeableVersionsarray

UpgradeableVersions stands for the versions can upgrade from

.spec.brief

描述
Brief stands for the product's brief
类型
object
属性类型描述
enstring

EN stands for text with English

zhstring

ZH stands for text with Simple Chinese

.spec.chartVersions

描述
ChartVersions stands for the charts when deploying, they are optional and will be added to the Prouct CR
类型
array

.spec.chartVersions[]

描述
ChartVersion stands for chart version
类型
object
必填
nameversion
属性类型描述
namestring

Name stands for the chart's name

versionstring

Version stands for the chart's version

.spec.commonConfigRef

描述
CommonConfigRef stands for the reference from CommonConfig to Product CR
类型
array

.spec.commonConfigRef[]

描述
KeysRef stands for key references with specified version
类型
object
必填
keysversionMatch
属性类型描述
keysarray

Keys stands for a set of keys

versionMatchstring

VersionMatch stands for the target version

.spec.commonConfigRef[].keys

描述
Keys stands for a set of keys
类型
array

.spec.commonConfigRef[].keys[]

描述
KeyRef stands for key reference
类型
object
必填
refKeytargetKey
属性类型描述
refKeystring

RefKey stands for source key

targetKeystring

TargetKey stands for target key

.spec.description

描述
Description stands for the product's description
类型
object
属性类型描述
enstring

EN stands for text with English

zhstring

ZH stands for text with Simple Chinese

.spec.displayName

描述
DisplayName stands for the product's display name
类型
object
属性类型描述
enstring

EN stands for text with English

zhstring

ZH stands for text with Simple Chinese

.spec.displayUIConfig

描述
DisplayUIConfig stands for the web UI type when showing product's detail information
类型
object
必填
type
属性类型描述
schemeobject

Scheme defines the dynamic form, used when Type is DynamicForm

typestring

Type defines the web UI type, [InUnderlord is DEPRECATED, use SubApp instead]

.spec.displayUIConfig.scheme

描述
Scheme defines the dynamic form, used when Type is DynamicForm
类型
object

.spec.installUIConfig

描述
InstallUIConfig stands for the web UI config when deploying product
类型
object
必填
type
属性类型描述
schemeobject

Scheme defines the dynamic form, used when Type is DynamicForm

typestring

Type defines the web UI type, [InUnderlord is DEPRECATED, use SubApp instead]

.spec.installUIConfig.scheme

描述
Scheme defines the dynamic form, used when Type is DynamicForm
类型
object

.spec.productResource

描述
ProductResource defines the target product CRD type
类型
object
必填
groupnamesversion
属性类型描述
groupstring

Group stands for the target product's CRD Group

namesobject

Names stands for the target product's CRD's kind name

versionstring

Version stands for the target product's CRD version

.spec.productResource.names

描述
Names stands for the target product's CRD's kind name
类型
object
必填
kindplural
属性类型描述
categoriesarray

categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like kubectl get all.

kindstring

kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the kind attribute in API calls.

listKindstring

listKind is the serialized kind of the list for this resource. Defaults to "kindList".

pluralstring

plural is the plural name of the resource to serve. The custom resources are served under /apis/<group>/<version>/.../<plural>. Must match the name of the CustomResourceDefinition (in the form <names.plural>.<group>). Must be all lowercase.

shortNamesarray

shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like kubectl get <shortname>. It must be all lowercase.

singularstring

singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased kind.

.spec.productResource.names.categories

描述
categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
类型
array

.spec.productResource.names.categories[]

类型
string

.spec.productResource.names.shortNames

描述
shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
类型
array

.spec.productResource.names.shortNames[]

类型
string

.spec.singleApp

描述
SingleAppConfig stands for the config for SignleApp type
类型
object
必填
entrypoint
属性类型描述
entrypointstring

Entrypoint stands for the entrypoint of standalone app

.spec.subApp

描述
SubApp stands for the config for SubApp type
类型
object
必填
entrypointname
属性类型描述
entrypointstring

Entrypoint stands for the entrypoint of sub app

namestring

Name stands for the name of sub app

.spec.upgradeUIConfig

描述
UpgradeUIConfig stands for the web UI config when upgrading product
类型
array

.spec.upgradeUIConfig[]

描述
VersionedUIConfig stands for the web UI type with special version
类型
object
必填
typeversionMatch
属性类型描述
schemeobject

Scheme defines the dynamic form, used when Type is DynamicForm

typestring

Type defines the web UI type, [InUnderlord is DEPRECATED, use SubApp instead]

versionMatchstring

VersionMatch stands for the target version

.spec.upgradeUIConfig[].scheme

描述
Scheme defines the dynamic form, used when Type is DynamicForm
类型
object

.spec.upgradeableVersions

描述
UpgradeableVersions stands for the versions can upgrade from
类型
array

.spec.upgradeableVersions[]

类型
string

.status

描述
ProductConfigStatus defines the observed state of ProductConfig
类型
object
必填
messagephasereason
属性类型描述
messagestring

Message contains the detail messages about the status

phasestring

Phase stands for the ProductConfig's status

reasonstring

Reason explain why the ProductCongfig in this status

API 端点

可用的 API 端点如下:

  • /apis/alauda.io/v1alpha1/productconfigs
    • DELETE: delete collection of ProductConfig
    • GET: list objects of kind ProductConfig
    • POST: create a new ProductConfig
  • /apis/alauda.io/v1alpha1/productconfigs/{name}
    • DELETE: delete the specified ProductConfig
    • GET: read the specified ProductConfig
    • PATCH: partially update the specified ProductConfig
    • PUT: replace the specified ProductConfig
  • /apis/alauda.io/v1alpha1/productconfigs/{name}/status
    • GET: read status of the specified ProductConfig
    • PATCH: partially update status of the specified ProductConfig
    • PUT: replace status of the specified ProductConfig

/apis/alauda.io/v1alpha1/productconfigs

HTTP 方法
DELETE
描述
delete collection of ProductConfig
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
list objects of kind ProductConfig
HTTP 响应
HTTP 状态码响应体
200 - OKProductConfigList schema
401 - UnauthorizedEmpty
HTTP 方法
POST
描述
create a new ProductConfig
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyProductConfig schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKProductConfig schema
201 - CreatedProductConfig schema
202 - AcceptedProductConfig schema
401 - UnauthorizedEmpty

/apis/alauda.io/v1alpha1/productconfigs/{name}

HTTP 方法
DELETE
描述
delete the specified ProductConfig
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
read the specified ProductConfig
HTTP 响应
HTTP 状态码响应体
200 - OKProductConfig schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update the specified ProductConfig
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKProductConfig schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace the specified ProductConfig
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyProductConfig schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKProductConfig schema
201 - CreatedProductConfig schema
401 - UnauthorizedEmpty

/apis/alauda.io/v1alpha1/productconfigs/{name}/status

HTTP 方法
GET
描述
read status of the specified ProductConfig
HTTP 响应
HTTP 状态码响应体
200 - OKProductConfig schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update status of the specified ProductConfig
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKProductConfig schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace status of the specified ProductConfig
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyProductConfig schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKProductConfig schema
201 - CreatedProductConfig schema
401 - UnauthorizedEmpty