Skip to content

ClusterApplicationProps

Properties for defining a ClusterApplication.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cs-clusterapplication

Initializer

import { ClusterApplicationProps } from '@alicloud/ros-cdk-cs'
const clusterApplicationProps: ClusterApplicationProps = { ... }

Properties

Name Type Description
clusterId string | @alicloud/ros-cdk-core.IResolvable Property clusterId: The ID of the kubernetes cluster.
yamlContent string | @alicloud/ros-cdk-core.IResolvable Property yamlContent: The yaml content of application.
defaultNamespace string | @alicloud/ros-cdk-core.IResolvable Property defaultNamespace: The default namespace for the application, default value is default.
rolePolicy string | @alicloud/ros-cdk-core.IResolvable Property rolePolicy: Before deploying the application, check the policies associated with the roles of the current user.
stage string | @alicloud/ros-cdk-core.IResolvable Property stage: At what stage to run.
validationMode string | @alicloud/ros-cdk-core.IResolvable Property validationMode: Validation modes include: - Basic: basic validation, such as verifying the existence of a cluster.
waitUntil @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | WaitUntilProperty[] Property waitUntil: After starting a creation or update, wait until all conditions are met.

clusterIdRequired

public readonly clusterId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property clusterId: The ID of the kubernetes cluster.


yamlContentRequired

public readonly yamlContent: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property yamlContent: The yaml content of application.


defaultNamespaceOptional

public readonly defaultNamespace: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property defaultNamespace: The default namespace for the application, default value is default.

If a namespace is defined in yaml metadata, its priority is higher than DefaultNamespace. If the DefaultNamespace does not exist, ROS will automatically create it and delete it during the deletion phase.


rolePolicyOptional

public readonly rolePolicy: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property rolePolicy: Before deploying the application, check the policies associated with the roles of the current user.

Valid values: - EnsureAdminRoleAndBinding: Automatically create a role named "ros:application-admin:${user-id}" with administrator permissions and bind it to the current user. - None: Do nothing. The default value is EnsureAdminRoleAndBinding.


stageOptional

public readonly stage: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property stage: At what stage to run.

Valid values: - All: all stages, including create, update, and delete. - Delete: the delete stage. This means that only in the deletion stage of this resource will apply yaml to the cluster. The default is All.


validationModeOptional

public readonly validationMode: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property validationMode: Validation modes include: - Basic: basic validation, such as verifying the existence of a cluster.

Strict: in addition to basic validation, also validate the legality of YamlContent and WaitUntil.


waitUntilOptional

public readonly waitUntil: IResolvable | IResolvable | WaitUntilProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | WaitUntilProperty[]

Property waitUntil: After starting a creation or update, wait until all conditions are met.