ClusterApplicationProps
Properties for defining a ClusterApplication
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cs-clusterapplication
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcs"
&alicloudroscdkcs.ClusterApplicationProps {
ClusterId: interface{},
YamlContent: interface{},
DefaultNamespace: interface{},
RolePolicy: interface{},
Stage: interface{},
ValidationMode: interface{},
WaitUntil: interface{},
}
Properties
Name | Type | Description |
---|---|---|
ClusterId |
interface{} |
Property clusterId: The ID of the kubernetes cluster. |
YamlContent |
interface{} |
Property yamlContent: The yaml content of application. |
DefaultNamespace |
interface{} |
Property defaultNamespace: The default namespace for the application, default value is default. |
RolePolicy |
interface{} |
Property rolePolicy: Before deploying the application, check the policies associated with the roles of the current user. |
Stage |
interface{} |
Property stage: At what stage to run. |
ValidationMode |
interface{} |
Property validationMode: Validation modes include: - Basic: basic validation, such as verifying the existence of a cluster. |
WaitUntil |
interface{} |
Property waitUntil: After starting a creation or update, wait until all conditions are met. |
ClusterId
Required
ClusterId interface{}
- Type: interface{}
Property clusterId: The ID of the kubernetes cluster.
YamlContent
Required
YamlContent interface{}
- Type: interface{}
Property yamlContent: The yaml content of application.
DefaultNamespace
Optional
DefaultNamespace interface{}
- Type: interface{}
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.
RolePolicy
Optional
RolePolicy interface{}
- Type: interface{}
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.
Stage
Optional
Stage interface{}
- Type: interface{}
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.
ValidationMode
Optional
ValidationMode interface{}
- Type: interface{}
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.
WaitUntil
Optional
WaitUntil interface{}
- Type: interface{}
Property waitUntil: After starting a creation or update, wait until all conditions are met.